org.opennms.netmgt.dao.support
Class FrameRelayStorageStrategy

java.lang.Object
  extended by org.opennms.netmgt.dao.support.IndexStorageStrategy
      extended by 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.dao.support.IndexStorageStrategy
m_storageStrategyService
 
Constructor Summary
FrameRelayStorageStrategy()
           
 
Method Summary
 String getInterfaceName(String nodeId, String ifIndex)
          getInterfaceName
 String 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.dao.support.IndexStorageStrategy
getRelativePathForAttribute, getResourceTypeName, log, setParameters, setResourceTypeName, setStorageStrategyService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameRelayStorageStrategy

public FrameRelayStorageStrategy()
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 interface StorageStrategy
Overrides:
getResourceNameFromIndex in class IndexStorageStrategy
Parameters:
resource - a CollectionResource object
Returns:
a String object.

getInterfaceName

public String getInterfaceName(String nodeId,
                               String ifIndex)

getInterfaceName

Parameters:
nodeId - a String object.
ifIndex - a String object.
Returns:
a String object.


Copyright © 2011. All Rights Reserved.