Class SimpleMonitoredService
- java.lang.Object
-
- org.opennms.netmgt.poller.support.SimpleMonitoredService
-
- All Implemented Interfaces:
MonitoredService
public class SimpleMonitoredService extends Object implements MonitoredService
The Class SimpleMonitoredService.- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description SimpleMonitoredService(InetAddress ipAddress, int nodeId, String nodeLabel, String svcName)Instantiates a new simple monitored service.SimpleMonitoredService(InetAddress ipAddress, int nodeId, String nodeLabel, String svcName, String location)SimpleMonitoredService(InetAddress ipAddress, String svcName)Instantiates a new simple monitored service.SimpleMonitoredService(InetAddress ipAddress, String svcName, String location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetAddressgetAddress()Returns theInetAddressassociated with the serviceStringgetIpAddr()Returns the ipAddr string associated with this monitored service.intgetNodeId()Returns the nodeId of the node that this service is associated with.StringgetNodeLabel()Returns the label of the node that this service is associated with.StringgetNodeLocation()Returns the name of the location of the node that this service is associated with.StringgetSvcName()Returns the svcName associated with this monitored service.
-
-
-
Constructor Detail
-
SimpleMonitoredService
public SimpleMonitoredService(InetAddress ipAddress, int nodeId, String nodeLabel, String svcName, String location)
-
SimpleMonitoredService
public SimpleMonitoredService(InetAddress ipAddress, int nodeId, String nodeLabel, String svcName)
Instantiates a new simple monitored service.- Parameters:
ipAddress- the IP addressnodeId- the node idnodeLabel- the node labelsvcName- the service name
-
SimpleMonitoredService
public SimpleMonitoredService(InetAddress ipAddress, String svcName)
Instantiates a new simple monitored service.- Parameters:
ipAddress- the IP addresssvcName- the service name
-
SimpleMonitoredService
public SimpleMonitoredService(InetAddress ipAddress, String svcName, String location)
-
-
Method Detail
-
getSvcName
public String getSvcName()
Description copied from interface:MonitoredServiceReturns the svcName associated with this monitored service.- Specified by:
getSvcNamein interfaceMonitoredService- Returns:
- the svcName
-
getIpAddr
public String getIpAddr()
Description copied from interface:MonitoredServiceReturns the ipAddr string associated with this monitored service.- Specified by:
getIpAddrin interfaceMonitoredService- Returns:
- the ipAddr string
-
getNodeId
public int getNodeId()
Description copied from interface:MonitoredServiceReturns the nodeId of the node that this service is associated with.- Specified by:
getNodeIdin interfaceMonitoredService- Returns:
- the nodeid
-
getNodeLabel
public String getNodeLabel()
Description copied from interface:MonitoredServiceReturns the label of the node that this service is associated with.- Specified by:
getNodeLabelin interfaceMonitoredService- Returns:
- the nodelabel
-
getAddress
public InetAddress getAddress()
Description copied from interface:MonitoredServiceReturns theInetAddressassociated with the service- Specified by:
getAddressin interfaceMonitoredService- Returns:
- the
InetAddress
-
getNodeLocation
public String getNodeLocation()
Description copied from interface:MonitoredServiceReturns the name of the location of the node that this service is associated with.- Specified by:
getNodeLocationin interfaceMonitoredService- Returns:
- the nodelocation
-
-