org.opennms.netmgt.poller
Class LatencyCollectionResource

java.lang.Object
  extended by org.opennms.netmgt.poller.LatencyCollectionResource
All Implemented Interfaces:
CollectionResource, ResourceIdentifier

public class LatencyCollectionResource
extends Object
implements CollectionResource

Author:
Alejandro Galue

Constructor Summary
LatencyCollectionResource(String serviceName, String ipAddress)
           
 
Method Summary
 String getInstance()
          Returns the name of the instance this CollectionResource represents.
 String getLabel()
          Returns a unique label for each resource depending on resource type.
 String getOwnerName()
           
 File getResourceDir(RrdRepository repository)
           
 String getResourceTypeName()
          Returns a string which indicates what type of resource.
 int getType()
          Returns something like an ifType; is (but not sure if it should be) -1 for non interface type collections, otherwise the SNMP type of the interface.
 boolean rescanNeeded()
           
 boolean shouldPersist(ServiceParameters params)
           
 String toString()
           
 void visit(CollectionSetVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LatencyCollectionResource

public LatencyCollectionResource(String serviceName,
                                 String ipAddress)
Method Detail

getInstance

public String getInstance()
Description copied from interface: CollectionResource
Returns the name of the instance this CollectionResource represents. For node level resources, this will be null to indicate the default instance. For interface level resources, some label unique to the node (ifIndex probably) For Generic resources (e.g. the SNMP GenericIndexResource), this will be some identifying label, probably the index in the table

Specified by:
getInstance in interface CollectionResource
Returns:

getLabel

public String getLabel()
Description copied from interface: CollectionResource
Returns a unique label for each resource depending on resource type. This label is the same label used when constructing the resource ID.

Specified by:
getLabel in interface CollectionResource

getResourceTypeName

public String getResourceTypeName()
Description copied from interface: CollectionResource
Returns a string which indicates what type of resource. Will be one of "node" for the node level resource "if" for network interface resources "*" for all other resource types defined in the relevant config files, e.g. hrStorage

Specified by:
getResourceTypeName in interface CollectionResource
Returns:

getType

public int getType()
Description copied from interface: CollectionResource
Returns something like an ifType; is (but not sure if it should be) -1 for non interface type collections, otherwise the SNMP type of the interface. Relates to ifType in datacollection-config.xml

Specified by:
getType in interface CollectionResource
Returns:

rescanNeeded

public boolean rescanNeeded()
Specified by:
rescanNeeded in interface CollectionResource

shouldPersist

public boolean shouldPersist(ServiceParameters params)
Specified by:
shouldPersist in interface CollectionResource

visit

public void visit(CollectionSetVisitor visitor)
Specified by:
visit in interface CollectionResource

getOwnerName

public String getOwnerName()
Specified by:
getOwnerName in interface ResourceIdentifier

getResourceDir

public File getResourceDir(RrdRepository repository)
Specified by:
getResourceDir in interface ResourceIdentifier

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009. All Rights Reserved.