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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getAvailableDataCollectionGroups()
java.util.List<java.lang.String>
getAvailableMibGroups()
java.util.List<java.lang.String>
getAvailableSystemDefs()
java.lang.String
getConfigDirectory()
java.util.Map<java.lang.String,ResourceType>
getConfiguredResourceTypes()
getConfiguredResourceTypesjava.util.Date
getLastUpdate()
java.util.List<MibObject>
getMibObjectList(java.lang.String cName, java.lang.String aSysoid, java.lang.String anAddress, int ifType)
getMibObjectListjava.util.List<MibObjProperty>
getMibObjProperties(java.lang.String cName, java.lang.String aSysoid, java.lang.String anAddress)
getMibObjPropertiesDatacollectionConfig
getRootDataCollection()
getRootDataCollectionjava.util.List<java.lang.String>
getRRAList(java.lang.String collectionName)
getRRAListjava.lang.String
getRrdPath()
getRrdPathRrdRepository
getRrdRepository(java.lang.String collectionName)
getRrdRepositoryjava.lang.String
getSnmpStorageFlag(java.lang.String collectionName)
getSnmpStorageFlagint
getStep(java.lang.String collectionName)
getStepvoid
reload()
void
setConfigDirectory(java.lang.String configDirectory)
protected DatacollectionConfig
translateConfig(DatacollectionConfig config)
translateConfig-
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(java.lang.String configDirectory)
-
getConfigDirectory
public java.lang.String getConfigDirectory()
-
getSnmpStorageFlag
public java.lang.String getSnmpStorageFlag(java.lang.String collectionName)
Description copied from interface:DataCollectionConfigDao
getSnmpStorageFlag
- Specified by:
getSnmpStorageFlag
in interfaceDataCollectionConfigDao
- Parameters:
collectionName
- aString
object.- Returns:
- a
String
object.
-
getMibObjectList
public java.util.List<MibObject> getMibObjectList(java.lang.String cName, java.lang.String aSysoid, java.lang.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 java.util.List<MibObjProperty> getMibObjProperties(java.lang.String cName, java.lang.String aSysoid, java.lang.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 java.util.Map<java.lang.String,ResourceType> getConfiguredResourceTypes()
Description copied from interface:DataCollectionConfigDao
getConfiguredResourceTypes
- Specified by:
getConfiguredResourceTypes
in interfaceDataCollectionConfigDao
- Returns:
- a
Map
object.
-
getRrdRepository
public RrdRepository getRrdRepository(java.lang.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(java.lang.String collectionName)
Description copied from interface:DataCollectionConfigDao
getStep
- Specified by:
getStep
in interfaceDataCollectionConfigDao
- Parameters:
collectionName
- aString
object.- Returns:
- a int.
-
getRRAList
public java.util.List<java.lang.String> getRRAList(java.lang.String collectionName)
Description copied from interface:DataCollectionConfigDao
getRRAList
- Specified by:
getRRAList
in interfaceDataCollectionConfigDao
- Parameters:
collectionName
- aString
object.- Returns:
- a
List
object.
-
getRrdPath
public java.lang.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 java.util.List<java.lang.String> getAvailableDataCollectionGroups()
- Specified by:
getAvailableDataCollectionGroups
in interfaceDataCollectionConfigDao
-
getAvailableSystemDefs
public java.util.List<java.lang.String> getAvailableSystemDefs()
- Specified by:
getAvailableSystemDefs
in interfaceDataCollectionConfigDao
-
getAvailableMibGroups
public java.util.List<java.lang.String> getAvailableMibGroups()
- Specified by:
getAvailableMibGroups
in interfaceDataCollectionConfigDao
-
reload
public void reload()
- Specified by:
reload
in interfaceDataCollectionConfigDao
-
getLastUpdate
public java.util.Date getLastUpdate()
- Specified by:
getLastUpdate
in interfaceDataCollectionConfigDao
-
-