Package org.opennms.netmgt.config
Class DefaultDataCollectionConfigDao
- java.lang.Object
-
- org.opennms.core.xml.AbstractJaxbConfigDao<DatacollectionConfig,DatacollectionConfig>
-
- org.opennms.netmgt.config.DefaultDataCollectionConfigDao
-
- All Implemented Interfaces:
DataCollectionConfigDao
,org.springframework.beans.factory.InitializingBean
public class DefaultDataCollectionConfigDao extends AbstractJaxbConfigDao<DatacollectionConfig,DatacollectionConfig> implements DataCollectionConfigDao
DefaultDataCollectionConfigDaoThis 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 SNNMP data collection configuration into memory.
- Author:
- Alejandro Galue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
AbstractJaxbConfigDao.JaxbReloadCallback
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
-
Fields inherited from interface org.opennms.netmgt.config.api.DataCollectionConfigDao
ALL_IF_ATTRIBUTES, NODE_ATTRIBUTES
-
-
Constructor Summary
Constructors Constructor Description DefaultDataCollectionConfigDao()
-
Method Summary
-
Methods inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
addOnReloadedCallback, afterPropertiesSet, getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, setConfigResource, setReloadCheckInterval
-
-
-
-
Method Detail
-
translateConfig
protected DatacollectionConfig translateConfig(DatacollectionConfig config)
Description copied from class:AbstractJaxbConfigDao
translateConfig
- Specified by:
translateConfig
in classAbstractJaxbConfigDao<DatacollectionConfig,DatacollectionConfig>
- Parameters:
config
- a K object.- Returns:
- a V object.
-
setConfigDirectory
public void setConfigDirectory(String configDirectory)
-
getConfigDirectory
public String getConfigDirectory()
-
getSnmpStorageFlag
public String getSnmpStorageFlag(String collectionName)
Description copied from interface:DataCollectionConfigDao
getSnmpStorageFlag
- Specified by:
getSnmpStorageFlag
in interfaceDataCollectionConfigDao
- Parameters:
collectionName
- aString
object.- Returns:
- a
String
object.
-
getMibObjectList
public List<MibObject> getMibObjectList(String cName, String aSysoid, String anAddress, int ifType)
Description copied from interface:DataCollectionConfigDao
getMibObjectList
- Specified by:
getMibObjectList
in interfaceDataCollectionConfigDao
- Parameters:
cName
- aString
object.aSysoid
- aString
object.anAddress
- aString
object.ifType
- a int.- Returns:
- a
List
object.
-
getMibObjProperties
public List<MibObjProperty> getMibObjProperties(String cName, String aSysoid, String anAddress)
Description copied from interface:DataCollectionConfigDao
getMibObjProperties
- Specified by:
getMibObjProperties
in interfaceDataCollectionConfigDao
- Parameters:
cName
- aString
object.aSysoid
- aString
object.anAddress
- aString
object.- Returns:
- a
List
object.
-
getConfiguredResourceTypes
public Map<String,ResourceType> getConfiguredResourceTypes()
Description copied from interface:DataCollectionConfigDao
getConfiguredResourceTypes
- Specified by:
getConfiguredResourceTypes
in interfaceDataCollectionConfigDao
- Returns:
- a
Map
object.
-
getRrdRepository
public RrdRepository getRrdRepository(String collectionName)
Description copied from interface:DataCollectionConfigDao
getRrdRepository
- Specified by:
getRrdRepository
in interfaceDataCollectionConfigDao
- Parameters:
collectionName
- aString
object.- Returns:
- a
RrdRepository
object.
-
getStep
public int getStep(String collectionName)
Description copied from interface:DataCollectionConfigDao
getStep
- Specified by:
getStep
in interfaceDataCollectionConfigDao
- Parameters:
collectionName
- aString
object.- Returns:
- a int.
-
getRRAList
public List<String> getRRAList(String collectionName)
Description copied from interface:DataCollectionConfigDao
getRRAList
- Specified by:
getRRAList
in interfaceDataCollectionConfigDao
- Parameters:
collectionName
- aString
object.- Returns:
- a
List
object.
-
getRrdPath
public String getRrdPath()
Description copied from interface:DataCollectionConfigDao
getRrdPath
- Specified by:
getRrdPath
in interfaceDataCollectionConfigDao
- Returns:
- a
String
object.
-
getRootDataCollection
public DatacollectionConfig getRootDataCollection()
Description copied from interface:DataCollectionConfigDao
getRootDataCollection
- Specified by:
getRootDataCollection
in interfaceDataCollectionConfigDao
- Returns:
- a
DatacollectionConfig
object.
-
getAvailableDataCollectionGroups
public List<String> getAvailableDataCollectionGroups()
- Specified by:
getAvailableDataCollectionGroups
in interfaceDataCollectionConfigDao
-
getAvailableSystemDefs
public List<String> getAvailableSystemDefs()
- Specified by:
getAvailableSystemDefs
in interfaceDataCollectionConfigDao
-
getAvailableMibGroups
public List<String> getAvailableMibGroups()
- Specified by:
getAvailableMibGroups
in interfaceDataCollectionConfigDao
-
reload
public void reload()
- Specified by:
reload
in interfaceDataCollectionConfigDao
-
getLastUpdate
public Date getLastUpdate()
- Specified by:
getLastUpdate
in interfaceDataCollectionConfigDao
-
-