Package org.opennms.netmgt.config
Class DataCollectionConfigFactory
- java.lang.Object
-
- org.opennms.netmgt.config.DataCollectionConfigFactory
-
public abstract class DataCollectionConfigFactory extends Object
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.
- Author:
- Weave
-
-
Constructor Summary
Constructors Constructor Description DataCollectionConfigFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataCollectionConfigDao
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 filestatic void
setInstance(DataCollectionConfigDao instance)
setInstance
-
-
-
Method Detail
-
setInstance
public static void setInstance(DataCollectionConfigDao instance)
setInstance
- Parameters:
instance
- aDataCollectionConfigDao
object.
-
init
public static void init() throws IOException
Load the config from the default config file and create the singleton instance of this factory.- Throws:
IOException
- Thrown if the specified config file cannot be readIOException
- if any.
-
reload
public static void reload() throws IOException
Reload the config from the default config file- Throws:
IOException
- Thrown if the specified config file cannot be readIOException
- if any.
-
getInstance
public static DataCollectionConfigDao getInstance()
Return the singleton instance of this factory.- Returns:
- The current factory instance.
-
main
public static void main(String[] args)
-
-