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.
Constructor and Description |
---|
DataCollectionConfigFactory() |
Modifier and Type | Method and 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 file
|
static void |
setInstance(DataCollectionConfigDao instance)
setInstance
|
public static void setInstance(DataCollectionConfigDao instance)
setInstance
instance
- a DataCollectionConfigDao
object.public static void init() throws IOException
IOException
- Thrown if the specified config file cannot be readIOException
- if any.public static void reload() throws IOException
IOException
- Thrown if the specified config file cannot be readIOException
- if any.public static DataCollectionConfigDao getInstance()
public static void main(String[] args)
Copyright © 2021. All rights reserved.