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 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 List<String>
getAvailableDataCollectionGroups()
List<String>
getAvailableMibGroups()
List<String>
getAvailableSystemDefs()
Map<String,ResourceType>
getConfiguredResourceTypes()
getConfiguredResourceTypesDate
getLastUpdate()
List<MibObject>
getMibObjectList(String cName, String aSysoid, String anAddress, int ifType)
getMibObjectListList<MibObjProperty>
getMibObjProperties(String cName, String aSysoid, String anAddress)
getMibObjPropertiesDatacollectionConfig
getRootDataCollection()
getRootDataCollectionList<String>
getRRAList(String collectionName)
getRRAListString
getRrdPath()
getRrdPathRrdRepository
getRrdRepository(String collectionName)
getRrdRepositoryString
getSnmpStorageFlag(String collectionName)
getSnmpStorageFlagint
getStep(String collectionName)
getStepvoid
reload()
-
-
-
Method Detail
-
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
-
-