public class IndexStorageStrategy extends Object implements StorageStrategy
Modifier and Type | Field and Description |
---|---|
protected StorageStrategyService |
m_storageStrategyService |
Constructor and Description |
---|
IndexStorageStrategy() |
Modifier and Type | Method and Description |
---|---|
ResourcePath |
getRelativePathForAttribute(ResourcePath resourceParent,
String instance)
getRelativePathForAttribute
|
String |
getResourceNameFromIndex(CollectionResource resource)
This functions translate resourceIndex into a "unique" and "non-variable" name that could be identify
a resource, as described earlier.
|
String |
getResourceTypeName()
getResourceTypeName
|
void |
setParameters(List<Parameter> parameterCollection)
setParameters
|
void |
setResourceTypeName(String name)
setResourceTypeName
|
void |
setStorageStrategyService(StorageStrategyService agent)
Add to a strategy the possibility to get additional information using SNMP when is necessary.
|
protected StorageStrategyService m_storageStrategyService
public final ResourcePath getRelativePathForAttribute(ResourcePath resourceParent, String instance)
getRelativePathForAttribute
getRelativePathForAttribute
in interface StorageStrategy
resourceParent
- a String
object.instance
- a String
object.Path
object.public final void setResourceTypeName(String name)
setResourceTypeName
setResourceTypeName
in interface StorageStrategy
name
- a String
object.public final String getResourceTypeName()
getResourceTypeName
String
object.public String getResourceNameFromIndex(CollectionResource resource)
getResourceNameFromIndex
in interface StorageStrategy
resource
- a CollectionResource
objectString
object.public final void setStorageStrategyService(StorageStrategyService agent)
setStorageStrategyService
in interface StorageStrategy
agent
- a org.opennms.netmgt.config.StorageStrategyService
object.public void setParameters(List<Parameter> parameterCollection) throws IllegalArgumentException
setParameters
setParameters
in interface StorageStrategy
parameterCollection
- a List
object.IllegalArgumentException
Copyright © 2021. All rights reserved.