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 StorageStrategyresourceParent - a String object.instance - a String object.Path object.public final void setResourceTypeName(String name)
setResourceTypeName
setResourceTypeName in interface StorageStrategyname - a String object.public final String getResourceTypeName()
getResourceTypeName
String object.public String getResourceNameFromIndex(CollectionResource resource)
getResourceNameFromIndex in interface StorageStrategyresource - a CollectionResource objectString object.public final void setStorageStrategyService(StorageStrategyService agent)
setStorageStrategyService in interface StorageStrategyagent - a org.opennms.netmgt.config.StorageStrategyService object.public void setParameters(List<Parameter> parameterCollection) throws IllegalArgumentException
setParameters
setParameters in interface StorageStrategyparameterCollection - a List object.IllegalArgumentExceptionCopyright © 2020. All rights reserved.