org.opennms.netmgt.poller.remote
Class PolledService

java.lang.Object
  extended by org.opennms.netmgt.poller.remote.PolledService
All Implemented Interfaces:
Serializable, MonitoredService

public class PolledService
extends Object
implements MonitoredService, Serializable

Author:
Mathew Brozowski
See Also:
Serialized Form

Constructor Summary
PolledService(OnmsMonitoredService monitoredService, Map monitorConfiguration, OnmsPollModel pollModel)
           
 
Method Summary
 InetAddress getAddress()
          Returns the InetAddress associated with the service
 String getIpAddr()
          Returns the ipAddr string associated with this monitored service
 Map getMonitorConfiguration()
           
 NetworkInterface getNetInterface()
          Returns the Netinterface object for this service.
 int getNodeId()
          Returns the nodeId of the node that this service is associated with
 String getNodeLabel()
          Returns the label of the node that this service is associated with
 OnmsPollModel getPollModel()
           
 Integer getServiceId()
           
 String getSvcName()
          Returns the svcName associated with this monitored service
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolledService

public PolledService(OnmsMonitoredService monitoredService,
                     Map monitorConfiguration,
                     OnmsPollModel pollModel)
Method Detail

getServiceId

public Integer getServiceId()

getAddress

public InetAddress getAddress()
Description copied from interface: MonitoredService
Returns the InetAddress associated with the service

Specified by:
getAddress in interface MonitoredService
Returns:
the InetAddress

getIpAddr

public String getIpAddr()
Description copied from interface: MonitoredService
Returns the ipAddr string associated with this monitored service

Specified by:
getIpAddr in interface MonitoredService
Returns:
the ipAddr string

getNetInterface

public NetworkInterface getNetInterface()
Description copied from interface: MonitoredService
Returns the Netinterface object for this service. This netinterface object is guarenteed to be the same each time init or poll is called

Specified by:
getNetInterface in interface MonitoredService
Returns:
the Netinterface

getNodeId

public int getNodeId()
Description copied from interface: MonitoredService
Returns the nodeId of the node that this service is associated with

Specified by:
getNodeId in interface MonitoredService
Returns:
the nodeid

getNodeLabel

public String getNodeLabel()
Description copied from interface: MonitoredService
Returns the label of the node that this service is associated with

Specified by:
getNodeLabel in interface MonitoredService
Returns:
the nodelabel

getSvcName

public String getSvcName()
Description copied from interface: MonitoredService
Returns the svcName associated with this monitored service

Specified by:
getSvcName in interface MonitoredService
Returns:
the svcName

getMonitorConfiguration

public Map getMonitorConfiguration()

getPollModel

public OnmsPollModel getPollModel()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009. All Rights Reserved.