org.opennms.netmgt.collectd
Class GenericIndexResource

java.lang.Object
  extended by org.opennms.netmgt.collectd.SnmpCollectionResource
      extended by org.opennms.netmgt.collectd.GenericIndexResource
All Implemented Interfaces:
CollectionResource, ResourceIdentifier

public class GenericIndexResource
extends SnmpCollectionResource

GenericIndexResource class.

Version:
$Id: $
Author:
ranger

Constructor Summary
GenericIndexResource(ResourceType def, String name, SnmpInstId inst)
          Constructor for GenericIndexResource.
 
Method Summary
 String getInstance()
          getInstance
 String getLabel()
          getLabel
 File getResourceDir(RrdRepository repository)
          getResourceDir
 String getResourceTypeName()
          getResourceTypeName
 int getType()
          getType
 boolean shouldPersist(ServiceParameters params)
          shouldPersist
 String toString()
          toString
 
Methods inherited from class org.opennms.netmgt.collectd.SnmpCollectionResource
getCollectionAgent, getGroups, getOwnerName, getResourceType, log, rescanNeeded, setAttributeValue, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericIndexResource

public GenericIndexResource(ResourceType def,
                            String name,
                            SnmpInstId inst)

Constructor for GenericIndexResource.

Parameters:
def - a ResourceType object.
name - a String object.
inst - a SnmpInstId object.
Method Detail

getResourceDir

public File getResourceDir(RrdRepository repository)

getResourceDir

Specified by:
getResourceDir in interface ResourceIdentifier
Specified by:
getResourceDir in class SnmpCollectionResource
Parameters:
repository - a RrdRepository object.
Returns:
a File object.

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.

getType

public int getType()

getType

Specified by:
getType in interface CollectionResource
Specified by:
getType in class SnmpCollectionResource
Returns:
a int.

shouldPersist

public boolean shouldPersist(ServiceParameters params)

shouldPersist

Specified by:
shouldPersist in interface CollectionResource
Specified by:
shouldPersist in class SnmpCollectionResource
Parameters:
params - a ServiceParameters object.
Returns:
a boolean.

getResourceTypeName

public String getResourceTypeName()

getResourceTypeName

Returns:
a String object.

getInstance

public String getInstance()

getInstance

Returns:
a String object.

getLabel

public String getLabel()

getLabel

Returns:
a String object.


Copyright © 2011. All Rights Reserved.