Package org.opennms.netmgt.dao.support
Class FrameRelayStorageStrategy
- java.lang.Object
-
- org.opennms.netmgt.collection.support.IndexStorageStrategy
-
- org.opennms.netmgt.dao.support.FrameRelayStorageStrategy
-
- All Implemented Interfaces:
StorageStrategy
public class FrameRelayStorageStrategy extends IndexStorageStrategy
This class use the new implementation of SnmpStorageStrategy extending the new IndexStorageStrategy from opennms-services- Author:
- Alejandro Galue
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.collection.support.IndexStorageStrategy
m_storageStrategyService
-
-
Constructor Summary
Constructors Constructor Description FrameRelayStorageStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInterfaceName(String nodeId, String ifIndex)
getInterfaceNameString
getResourceNameFromIndex(CollectionResource resource)
This functions translate resourceIndex into a "unique" and "non-variable" name that could be identify a resource, as described earlier.-
Methods inherited from class org.opennms.netmgt.collection.support.IndexStorageStrategy
getRelativePathForAttribute, getResourceTypeName, setParameters, setResourceTypeName, setStorageStrategyService
-
-
-
-
Method Detail
-
getResourceNameFromIndex
public String getResourceNameFromIndex(CollectionResource resource)
This functions translate resourceIndex into a "unique" and "non-variable" name that could be identify a resource, as described earlier. This method could be expensive because it could require send SNMP queries and make complicated functions to build the name. So you must try to call it only when is necessary.- Specified by:
getResourceNameFromIndex
in interfaceStorageStrategy
- Overrides:
getResourceNameFromIndex
in classIndexStorageStrategy
- Parameters:
resource
- aCollectionResource
object- Returns:
- a
String
object.
-
-