|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.HttpCollectionConfigFactory
public class HttpCollectionConfigFactory
HttpCollectionConfigFactory class.
| Field Summary | |
|---|---|
protected boolean |
initialized
Boolean indicating if the init() method has been called. |
protected static long |
m_lastModified
Timestamp of the http collection config, used to know when to reload from disk. |
| Constructor Summary | |
|---|---|
HttpCollectionConfigFactory(InputStream stream)
Constructor for HttpCollectionConfigFactory. |
|
HttpCollectionConfigFactory(Reader rdr)
Deprecated. |
|
HttpCollectionConfigFactory(String configFile)
Constructor for HttpCollectionConfigFactory. |
|
| Method Summary | |
|---|---|
static HttpDatacollectionConfig |
getConfig()
getConfig |
HttpCollection |
getHttpCollection(String collectionName)
getHttpCollection |
static HttpCollectionConfigFactory |
getInstance()
Singleton static call to get the only instance that should exist |
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(HttpDatacollectionConfig m_config)
setConfig |
static void |
setInstance(HttpCollectionConfigFactory instance)
setInstance |
protected void |
updateFromFile()
Reload the http-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 HttpCollectionConfigFactory(String configFile)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
Constructor for HttpCollectionConfigFactory.
configFile - a String object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
IOException - if any.
@Deprecated
public HttpCollectionConfigFactory(Reader rdr)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
Constructor for HttpCollectionConfigFactory.
rdr - a Reader object.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
public HttpCollectionConfigFactory(InputStream stream)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
Constructor for HttpCollectionConfigFactory.
stream - a InputStream 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 HttpCollectionConfigFactory getInstance()
IllegalStateException - if init has not been calledpublic static void setInstance(HttpCollectionConfigFactory instance)
setInstance
instance - a HttpCollectionConfigFactory 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 HttpDatacollectionConfig getConfig()
getConfig
HttpDatacollectionConfig object.public static void setConfig(HttpDatacollectionConfig m_config)
setConfig
m_config - a HttpDatacollectionConfig object.public HttpCollection getHttpCollection(String collectionName)
getHttpCollection
collectionName - a String object.
HttpCollection 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 | |||||||||