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
 File getResourceDir(RrdRepository repository)
          getResourceDir
 String getResourceTypeName()
          getResourceTypeName
 String getServiceName()
          getServiceName
 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 ServiceParameters object.
Returns:
a boolean.

visit

public void visit(CollectionSetVisitor visitor)

visit

Specified by:
visit in interface CollectionResource
Parameters:
visitor - a 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


Copyright © 2011. All Rights Reserved.