Class XmlStorageStrategy
- java.lang.Object
-
- org.opennms.netmgt.collection.support.IndexStorageStrategy
-
- org.opennms.protocols.xml.collector.XmlStorageStrategy
-
- All Implemented Interfaces:
StorageStrategy
public class XmlStorageStrategy extends IndexStorageStrategy
The Class XML StorageStrategy.- Author:
- Alejandro Galue
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.collection.support.IndexStorageStrategy
m_storageStrategyService
-
-
Constructor Summary
Constructors Constructor Description XmlStorageStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetResourceNameFromIndex(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)
Description copied from class:IndexStorageStrategyThis 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:
getResourceNameFromIndexin interfaceStorageStrategy- Overrides:
getResourceNameFromIndexin classIndexStorageStrategy- Parameters:
resource- aCollectionResourceobject- Returns:
- a
Stringobject.
-
-