Crossfire JXClient, Trunk
|
Public Member Functions | |
ScanManagerConfig | copy (String newname) |
boolean | equals (Object o) |
ResultLogConfig | getInitialResultLogConfig () |
String | getName () |
DirectoryScannerConfig | getScan (String name) |
DirectoryScannerConfig[] | getScanList () |
int | hashCode () |
DirectoryScannerConfig | putScan (DirectoryScannerConfig scan) |
DirectoryScannerConfig | removeScan (String name) |
ScanManagerConfig () | |
ScanManagerConfig (String name) | |
void | setInitialResultLogConfig (ResultLogConfig initialLogConfig) |
void | setName (String name) |
void | setScanList (DirectoryScannerConfig[] scans) |
String | toString () |
Private Member Functions | |
ScanManagerConfig (String name, boolean allowsNull) | |
Object[] | toArray () |
Static Private Member Functions | |
static ScanManagerConfig | copy (String newname, ScanManagerConfig other) |
Private Attributes | |
final Map< String, DirectoryScannerConfig > | directoryScanners |
ResultLogConfig | initialResultLogConfig |
String | name |
The ScanManagerConfig
Java Bean is used to model the configuration of the {ScanManagerMXBean}. The { com.sun.jmx.examples.scandir.ScanManagerMXBean ScanManagerMXBean} will use this configuration to initialize the { com.sun.jmx.examples.scandir.ResultLogManagerMXBean ResultLogManagerMXBean} and create the { com.sun.jmx.examples.scandir.DirectoryScannerMXBean DirectoryScannerMXBeans} This class is annotated for XML binding.
Definition at line 72 of file ScanManagerConfig.java.
com.sun.jmx.examples.scandir.config.ScanManagerConfig.ScanManagerConfig | ( | ) |
Creates a new instance of ScanManagerConfig.
You should not use this constructor directly, but use ScanManagerConfig(String) instead.
This constructor is tagged deprecated so that the compiler will generate a warning if it is used by mistake.
Definition at line 111 of file ScanManagerConfig.java.
com.sun.jmx.examples.scandir.config.ScanManagerConfig.ScanManagerConfig | ( | String | name | ) |
Creates a new instance of ScanManagerConfig.
name | The name of the configuration which usually corresponds to the value of the name=
ObjectName
|
Definition at line 123 of file ScanManagerConfig.java.
References name().
|
private |
Definition at line 128 of file ScanManagerConfig.java.
References name(), and com.sun.jmx.examples.scandir.config.ResultLogConfig.setMemoryMaxRecords().
ScanManagerConfig com.sun.jmx.examples.scandir.config.ScanManagerConfig.copy | ( | String | newname | ) |
Creates a copy of this object, with the specified name.
newname | the name of the copy. |
Definition at line 292 of file ScanManagerConfig.java.
Referenced by com.sun.jmx.examples.scandir.ScanDirConfig.load(), com.sun.jmx.examples.scandir.ScanDirConfig.preRegister(), and com.sun.jmx.examples.scandir.ScanDirConfig.setConfiguration().
|
staticprivate |
Definition at line 299 of file ScanManagerConfig.java.
References com.sun.jmx.examples.scandir.config.ScanManagerConfig.name, and com.sun.jmx.examples.scandir.config.XmlConfigUtils.xmlClone().
boolean com.sun.jmx.examples.scandir.config.ScanManagerConfig.equals | ( | Object | o | ) |
Definition at line 147 of file ScanManagerConfig.java.
References com.sun.jmx.examples.scandir.config.ScanManagerConfig.directoryScanners, and com.sun.jmx.examples.scandir.config.ScanManagerConfig.toArray().
ResultLogConfig com.sun.jmx.examples.scandir.config.ScanManagerConfig.getInitialResultLogConfig | ( | ) |
Gets the initial Result Log Configuration.
Definition at line 275 of file ScanManagerConfig.java.
String com.sun.jmx.examples.scandir.config.ScanManagerConfig.getName | ( | ) |
Gets the name of this configuration. The name of the configuration usually corresponds to the value of the
key of the
of the {ScanDirConfigMXBean} which owns this configuration. The name of this configuration.
Definition at line 173 of file ScanManagerConfig.java.
References name().
Referenced by com.sun.jmx.examples.scandir.ScanDirConfig.guessConfigName(), com.sun.jmx.examples.scandir.ScanDirConfig.load(), com.sun.jmx.examples.scandir.ScanDirConfig.preRegister(), and com.sun.jmx.examples.scandir.ScanDirConfig.setConfiguration().
DirectoryScannerConfig com.sun.jmx.examples.scandir.config.ScanManagerConfig.getScan | ( | String | name | ) |
Get a directory scanner by its name.
name | The name of the directory scanner. This is the value returned by {}. The named DirectoryScannerConfig |
Definition at line 233 of file ScanManagerConfig.java.
References name().
Referenced by com.sun.jmx.examples.scandir.ScanDirConfigTest.testAddDirectoryScanner(), and com.sun.jmx.examples.scandir.DirectoryScannerTest.testGetRootDirectory().
DirectoryScannerConfig [] com.sun.jmx.examples.scandir.config.ScanManagerConfig.getScanList | ( | ) |
Gets the list of Directory Scanner configured by this configuration. From each element in this list, the ScanManagerMXBean will create, initialize, and register a {}. The list of Directory Scanner configured by this configuration.
Definition at line 207 of file ScanManagerConfig.java.
int com.sun.jmx.examples.scandir.config.ScanManagerConfig.hashCode | ( | ) |
Definition at line 157 of file ScanManagerConfig.java.
References name().
DirectoryScannerConfig com.sun.jmx.examples.scandir.config.ScanManagerConfig.putScan | ( | DirectoryScannerConfig | scan | ) |
Adds a directory scanner to the list.
If a directory scanner configuration by that name already exists in the list, it will be replaced by the given scan.
scan | The DirectoryScannerConfig
|
Definition at line 248 of file ScanManagerConfig.java.
Referenced by com.sun.jmx.examples.scandir.ScanDirConfig.addDirectoryScanner(), com.sun.jmx.examples.scandir.ScanDirConfigTest.testGetXmlConfigString(), com.sun.jmx.examples.scandir.ScanDirConfigTest.testLoad(), com.sun.jmx.examples.scandir.config.XmlConfigUtilsTest.testReadFromFile(), com.sun.jmx.examples.scandir.ScanDirConfigTest.testSave(), and com.sun.jmx.examples.scandir.config.XmlConfigUtilsTest.testWriteToFile().
DirectoryScannerConfig com.sun.jmx.examples.scandir.config.ScanManagerConfig.removeScan | ( | String | name | ) |
Removes the named directory scanner from the list.
name | The name of the directory scanner. This is the value returned by {}. The removed DirectoryScannerConfig , or null if there was no directory scanner by that name in the list. |
Definition at line 266 of file ScanManagerConfig.java.
References name().
Referenced by com.sun.jmx.examples.scandir.ScanDirConfig.removeDirectoryScanner(), com.sun.jmx.examples.scandir.ScanDirConfigTest.testAddNotificationListener(), com.sun.jmx.examples.scandir.ScanDirConfigTest.testLoad(), and com.sun.jmx.examples.scandir.ScanDirConfigTest.testSave().
void com.sun.jmx.examples.scandir.config.ScanManagerConfig.setInitialResultLogConfig | ( | ResultLogConfig | initialLogConfig | ) |
Sets the initial Result Log Configuration.
initialLogConfig | The initial Result Log Configuration. |
Definition at line 283 of file ScanManagerConfig.java.
Referenced by com.sun.jmx.examples.scandir.ScanManager.applyCurrentResultLogConfig().
void com.sun.jmx.examples.scandir.config.ScanManagerConfig.setName | ( | String | name | ) |
Sets the name of this configuration. The name of the configuration usually corresponds to the value of the
key of the
of the {ScanDirConfigMXBean} which owns this configuration. Once set this value cannot change.
name | The name of this configuration. |
Definition at line 187 of file ScanManagerConfig.java.
References name().
void com.sun.jmx.examples.scandir.config.ScanManagerConfig.setScanList | ( | DirectoryScannerConfig[] | scans | ) |
Sets the list of Directory Scanner configured by this configuration. From each element in this list, the ScanManagerMXBean will create, initialize, and register a {}. scans The list of Directory Scanner configured by this configuration.
Definition at line 219 of file ScanManagerConfig.java.
|
private |
Definition at line 138 of file ScanManagerConfig.java.
References name().
Referenced by com.sun.jmx.examples.scandir.config.ScanManagerConfig.equals().
String com.sun.jmx.examples.scandir.config.ScanManagerConfig.toString | ( | ) |
Definition at line 253 of file ScanManagerConfig.java.
References com.sun.jmx.examples.scandir.config.XmlConfigUtils.toString().
Referenced by com.sun.jmx.examples.scandir.ScanDirConfigTest.testGetXmlConfigString().
|
private |
A set of DirectoryScannerConfig objects indexed by their names.
Definition at line 82 of file ScanManagerConfig.java.
Referenced by com.sun.jmx.examples.scandir.config.ScanManagerConfig.equals().
|
private |
The initial Result Log configuration.
Definition at line 87 of file ScanManagerConfig.java.
|
private |
Holds value of property name. The name of the configuration usually corresponds to the value of the
key of the
of the {ScanDirConfigMXBean} which owns this configuration.
Definition at line 97 of file ScanManagerConfig.java.
Referenced by com.sun.jmx.examples.scandir.config.ScanManagerConfig.copy().