|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.NSClientDataCollectionConfigFactory
public class NSClientDataCollectionConfigFactory
| Field Summary | |
|---|---|
protected boolean |
initialized
Boolean indicating if the init() method has been called. |
protected static long |
m_lastModified
Timestamp of the nsclient collection config, used to know when to reload from disk. |
| Constructor Summary | |
|---|---|
NSClientDataCollectionConfigFactory(Reader rdr)
|
|
NSClientDataCollectionConfigFactory(String configFile)
|
|
| Method Summary | |
|---|---|
static NsclientDatacollectionConfig |
getConfig()
|
static NSClientDataCollectionConfigFactory |
getInstance()
Singleton static call to get the only instance that should exist |
NsclientCollection |
getNSClientCollection(String collectionName)
|
List |
getRRAList(String cName)
|
String |
getRrdPath()
|
RrdRepository |
getRrdRepository(String collectionName)
|
int |
getStep(String cName)
|
static void |
init()
Be sure to call this method before calling getInstance(). |
void |
reload()
|
static void |
setConfig(NsclientDatacollectionConfig m_config)
|
static void |
setInstance(NSClientDataCollectionConfigFactory instance)
|
protected void |
updateFromFile()
Reload the nsclient-datacollection-config.xml file if it has been changed since we last read it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean initialized
protected static long m_lastModified
| Constructor Detail |
|---|
public NSClientDataCollectionConfigFactory(String configFile)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
public NSClientDataCollectionConfigFactory(Reader rdr)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException| Method Detail |
|---|
public static void init()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationExceptionpublic static NSClientDataCollectionConfigFactory getInstance()
IllegalStateException - if init has not been calledpublic static void setInstance(NSClientDataCollectionConfigFactory instance)
public void reload()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected void updateFromFile()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationExceptionpublic static NsclientDatacollectionConfig getConfig()
public static void setConfig(NsclientDatacollectionConfig m_config)
public NsclientCollection getNSClientCollection(String collectionName)
public RrdRepository getRrdRepository(String collectionName)
public int getStep(String cName)
public List getRRAList(String cName)
public String getRrdPath()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||