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

LatencyCollectionResource class.

Version:
$Id: $
Author:
Alejandro Galue

Constructor Summary
LatencyCollectionResource(String serviceName, String ipAddress)
          Constructor for LatencyCollectionResource.
 
Method Summary
 String getInstance()
          getInstance
 String getIpAddress()
          getIpAddress
 String getLabel()
          getLabel
 String getOwnerName()
          getOwnerName
 String getParent()
          Returns the name of the parent resource.
 File getResourceDir(RrdRepository repository)
          getResourceDir
 String getResourceTypeName()
          getResourceTypeName
 String getServiceName()
          getServiceName
 TimeKeeper getTimeKeeper()
          Returns a not-null time tracker instance when this resource requires to use a special timestamp when updating RRDs/JRBs.
 int getType()
          getType
 boolean rescanNeeded()
          rescanNeeded
 boolean shouldPersist(ServiceParameters params)
          shouldPersist
 String toString()
          
 void visit(CollectionSetVisitor visitor)
          visit
 
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)

Constructor for LatencyCollectionResource.

Parameters:
serviceName - a String object.
ipAddress - a String object.
Method Detail

getInstance

public String getInstance()

getInstance

Specified by:
getInstance in interface CollectionResource
Returns:
a String object.

getServiceName

public String getServiceName()

getServiceName

Returns:
a String object.

getIpAddress

public String getIpAddress()

getIpAddress

Returns:
a String object.

getLabel

public String getLabel()

getLabel

Specified by:
getLabel in interface CollectionResource
Returns:
a String object.

getResourceTypeName

public String getResourceTypeName()

getResourceTypeName

Specified by:
getResourceTypeName in interface CollectionResource
Returns:
a String object.

getType

public int getType()

getType

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

rescanNeeded

public boolean rescanNeeded()

rescanNeeded

Specified by:
rescanNeeded in interface CollectionResource
Returns:
a boolean.

shouldPersist

public boolean shouldPersist(ServiceParameters params)

shouldPersist

Specified by:
shouldPersist in interface CollectionResource
Parameters:
params - a org.opennms.netmgt.collectd.ServiceParameters object.
Returns:
a boolean.

visit

public void visit(CollectionSetVisitor visitor)

visit

Specified by:
visit in interface CollectionResource
Parameters:
visitor - a org.opennms.netmgt.collectd.CollectionSetVisitor object.

getOwnerName

public String getOwnerName()

getOwnerName

Specified by:
getOwnerName in interface ResourceIdentifier
Returns:
a String object.

getResourceDir

public File getResourceDir(RrdRepository repository)

getResourceDir

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

toString

public String toString()

Overrides:
toString in class Object

getParent

public String getParent()
Description copied from interface: CollectionResource
Returns the name of the parent resource.

Specified by:
getParent in interface CollectionResource
Returns:
a String object.

getTimeKeeper

public TimeKeeper getTimeKeeper()
Description copied from interface: CollectionResource
Returns a not-null time tracker instance when this resource requires to use a special timestamp when updating RRDs/JRBs. If the resource doesn't need a special time tracker it should return null.

Specified by:
getTimeKeeper in interface CollectionResource
Returns:
a TimeKeeper object.


Copyright © 2011. All Rights Reserved.