public final class JMXDataCollectionConfigFactory extends Object
| Constructor and Description |
|---|
JMXDataCollectionConfigFactory(InputStream stream)
Constructor for JMXDataCollectionConfigFactory.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<Attrib>> |
getAttributeMap(String cName,
String aSysoid,
String anAddress)
This method returns the list of MIB objects associated with a particular
system object id, IP address, and ifType for the specified collection.
|
static JMXDataCollectionConfigFactory |
getInstance()
Return the singleton instance of this factory.
|
JmxCollection |
getJmxCollection(String collectionName) |
Map<String,BeanInfo> |
getMBeanInfo(String cName)
getMBeanInfo
|
List<String> |
getRRAList(String cName)
Retrieves configured list of RoundRobin Archive statements.
|
String |
getRrdPath()
getRrdPath
|
RrdRepository |
getRrdRepository(String collectionName)
Retrieves the configured path to the RRD file repository.
|
int |
getStep(String cName)
Retrieves configured RRD step size.
|
static void |
init()
Load the config from the default config file and create the singleton
instance of this factory.
|
static void |
reload()
Reload the config from the default config file
|
static void |
setInstance(JMXDataCollectionConfigFactory singleton)
setInstance
|
public JMXDataCollectionConfigFactory(InputStream stream)
Constructor for JMXDataCollectionConfigFactory.
stream - a InputStream object.public static void init()
throws IOException
IOException - Thrown if the specified config file cannot be readpublic static void reload()
throws IOException
IOException - Thrown if the specified config file cannot be read/loadedpublic static JMXDataCollectionConfigFactory getInstance()
IllegalStateException - Thrown if the factory has not yet been initialized.public static void setInstance(JMXDataCollectionConfigFactory singleton)
setInstance
singleton - a JMXDataCollectionConfigFactory object.public Map<String,List<Attrib>> getAttributeMap(String cName, String aSysoid, String anAddress)
cName - name of the data collection from which to retrieve oid
information.aSysoid - system object id to look up in the collectionanAddress - IP address to look up in the collectionpublic JmxCollection getJmxCollection(String collectionName)
public int getStep(String cName)
cName - Name of the data collectionpublic List<String> getRRAList(String cName)
cName - Name of the data collectionpublic RrdRepository getRrdRepository(String collectionName)
collectionName - a String object.Copyright © 2015. All rights reserved.