org.opennms.netmgt.poller.remote
Class PolledService

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

public class PolledService
extends java.lang.Object
implements MonitoredService, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
PolledService(org.opennms.netmgt.model.OnmsMonitoredService monitoredService, java.util.Map monitorConfiguration, OnmsPollModel pollModel)
           
 
Method Summary
 java.net.InetAddress getAddress()
          Returns the InetAddress associated with the service
 java.lang.String getIpAddr()
          Returns the ipAddr string associated with this monitored service
 java.util.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
 java.lang.String getNodeLabel()
          Returns the label of the node that this service is associated with
 OnmsPollModel getPollModel()
           
 java.lang.Integer getServiceId()
           
 java.lang.String getSvcName()
          Returns the svcName associated with this monitored service
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolledService

public PolledService(org.opennms.netmgt.model.OnmsMonitoredService monitoredService,
                     java.util.Map monitorConfiguration,
                     OnmsPollModel pollModel)
Method Detail

getServiceId

public java.lang.Integer getServiceId()

getAddress

public java.net.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 java.lang.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 java.lang.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 java.lang.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 java.util.Map getMonitorConfiguration()

getPollModel

public OnmsPollModel getPollModel()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007. All Rights Reserved.