Package org.opennms.netmgt.dao.mock
Class MockDataCollectionConfigDao
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.MockDataCollectionConfigDao
-
- All Implemented Interfaces:
DataCollectionConfigDao
public class MockDataCollectionConfigDao extends java.lang.Object implements DataCollectionConfigDao
-
-
Field Summary
-
Fields inherited from interface org.opennms.netmgt.config.api.DataCollectionConfigDao
ALL_IF_ATTRIBUTES, NODE_ATTRIBUTES
-
-
Constructor Summary
Constructors Constructor Description MockDataCollectionConfigDao()
-
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.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()
-
-
-
Method Detail
-
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
-
-