|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.DataCollectionConfigFactory
public final class DataCollectionConfigFactory
This class is the main repository for SNMP data collection configuration information used by the SNMP service monitor. When this class is loaded it reads the SNMP data collection configuration into memory.
The implementation of DataCollectionConfig interface has been moved to DefaultDataCollectionConfigDao.
| Constructor Summary | |
|---|---|
DataCollectionConfigFactory()
|
|
| Method Summary | |
|---|---|
static DataCollectionConfig |
getInstance()
Return the singleton instance of this factory. |
static void |
init()
Load the config from the default config file and create the singleton instance of this factory. |
static void |
main(String[] args)
|
static void |
reload()
Reload the config from the default config file |
static void |
setInstance(DataCollectionConfig instance)
setInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataCollectionConfigFactory()
| Method Detail |
|---|
public static void setInstance(DataCollectionConfig instance)
setInstance
instance - a DataCollectionConfig object.
public static void init()
throws IOException
IOException - Thrown if the specified config file cannot be read
IOException - if any.
public static void reload()
throws IOException
IOException - Thrown if the specified config file cannot be read
IOException - if any.public static DataCollectionConfig getInstance()
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||