|
||||||||||
| 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
NSClientDataCollectionConfigFactory class.
| 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)
Deprecated. |
|
NSClientDataCollectionConfigFactory(String configFile)
Constructor for NSClientDataCollectionConfigFactory. |
|
| Method Summary | |
|---|---|
static NsclientDatacollectionConfig |
getConfig()
getConfig |
static NSClientDataCollectionConfigFactory |
getInstance()
Singleton static call to get the only instance that should exist |
NsclientCollection |
getNSClientCollection(String collectionName)
getNSClientCollection |
List<String> |
getRRAList(String cName)
getRRAList |
String |
getRrdPath()
getRrdPath |
RrdRepository |
getRrdRepository(String collectionName)
getRrdRepository |
int |
getStep(String cName)
getStep |
static void |
init()
Be sure to call this method before calling getInstance(). |
void |
reload()
reload |
static void |
setConfig(NsclientDatacollectionConfig config)
setConfig |
static void |
setInstance(NSClientDataCollectionConfigFactory instance)
setInstance |
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
Constructor for NSClientDataCollectionConfigFactory.
configFile - a String object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
IOException - if any.
@Deprecated
public NSClientDataCollectionConfigFactory(Reader rdr)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
Constructor for NSClientDataCollectionConfigFactory.
rdr - a Reader object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.| Method Detail |
|---|
public static void init()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException - if any.
FileNotFoundException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.public static NSClientDataCollectionConfigFactory getInstance()
IllegalStateException - if init has not been calledpublic static void setInstance(NSClientDataCollectionConfigFactory instance)
setInstance
instance - a NSClientDataCollectionConfigFactory object.
public void reload()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reload
IOException - if any.
FileNotFoundException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
protected void updateFromFile()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.public static NsclientDatacollectionConfig getConfig()
getConfig
NsclientDatacollectionConfig object.public static void setConfig(NsclientDatacollectionConfig config)
setConfig
m_config - a NsclientDatacollectionConfig object.public NsclientCollection getNSClientCollection(String collectionName)
getNSClientCollection
collectionName - a String object.
NsclientCollection object.public RrdRepository getRrdRepository(String collectionName)
getRrdRepository
collectionName - a String object.
RrdRepository object.public int getStep(String cName)
getStep
cName - a String object.
public List<String> getRRAList(String cName)
getRRAList
cName - a String object.
List object.public String getRrdPath()
getRrdPath
String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||