org.opennms.netmgt.config
Class DataCollectionConfigFactory

java.lang.Object
  extended by org.opennms.netmgt.config.DataCollectionConfigFactory

public final 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.

Version:
$Id: $
Author:
Weave , OpenNMS , Weave , OpenNMS

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

DataCollectionConfigFactory

public DataCollectionConfigFactory()
Method Detail

setInstance

public static void setInstance(DataCollectionConfig instance)

setInstance

Parameters:
instance - a DataCollectionConfig 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 read
IOException - 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 read
IOException - if any.

getInstance

public static DataCollectionConfig getInstance()
Return the singleton instance of this factory.

Returns:
The current factory instance.

main

public static void main(String[] args)


Copyright © 2011. All Rights Reserved.