Interface StorageStrategy
-
- All Known Implementing Classes:
FrameRelayStorageStrategy
,HostFileSystemStorageStrategy
,IndexStorageStrategy
,JexlIndexStorageStrategy
,ObjectNameStorageStrategy
,SiblingColumnStorageStrategy
,XmlStorageStrategy
public interface StorageStrategy
StorageStrategy interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourcePath
getRelativePathForAttribute(ResourcePath resourceParent, java.lang.String resource)
getRelativePathForAttributejava.lang.String
getResourceNameFromIndex(CollectionResource resource)
This functions translate resourceIndex into a "unique" and "non-variable" name that could be identify a resource, as described earlier.void
setParameters(java.util.List<Parameter> parameterCollection)
setParametersvoid
setResourceTypeName(java.lang.String name)
setResourceTypeNamevoid
setStorageStrategyService(StorageStrategyService agent)
Add to a strategy the possibility to get additional information using SNMP when is necessary.
-
-
-
Method Detail
-
getRelativePathForAttribute
ResourcePath getRelativePathForAttribute(ResourcePath resourceParent, java.lang.String resource)
getRelativePathForAttribute
- Parameters:
resourceParent
- aString
object.resource
- aString
object.- Returns:
- a
Path
object.
-
setResourceTypeName
void setResourceTypeName(java.lang.String name)
setResourceTypeName
- Parameters:
name
- aString
object.
-
getResourceNameFromIndex
java.lang.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.- Parameters:
resource
- aCollectionResource
object- Returns:
- a
String
object.
-
setStorageStrategyService
void setStorageStrategyService(StorageStrategyService agent)
Add to a strategy the possibility to get additional information using SNMP when is necessary. There are complex tables on some MIBs where indexes depends on indexes from other tables (indirect indexing). For this kind of resources we must send some additional SNMP queries to build a unique name.- Parameters:
agent
- aorg.opennms.netmgt.config.StorageStrategyService
object.
-
setParameters
void setParameters(java.util.List<Parameter> parameterCollection) throws java.lang.IllegalArgumentException
setParameters
- Parameters:
parameterCollection
- aList
object.- Throws:
java.lang.IllegalArgumentException
-
-