Package org.opennms.netmgt.poller.mock
Class MockMonitoredService
- java.lang.Object
-
- org.opennms.netmgt.poller.mock.MockMonitoredService
-
- All Implemented Interfaces:
MonitoredService
public class MockMonitoredService extends java.lang.Object implements MonitoredService
-
-
Constructor Summary
Constructors Constructor Description MockMonitoredService(int nodeId, java.lang.String nodeLabel, java.lang.String nodeLocation, java.net.InetAddress inetAddress, java.lang.String svcName)MockMonitoredService(int nodeId, java.lang.String nodeLabel, java.net.InetAddress inetAddress, java.lang.String svcName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.InetAddressgetAddress()Returns theInetAddressassociated with the servicejava.lang.StringgetIpAddr()Returns the ipAddr string associated with this monitored service.intgetNodeId()Returns the nodeId of the node that this service is associated with.java.lang.StringgetNodeLabel()Returns the label of the node that this service is associated with.java.lang.StringgetNodeLocation()Returns the name of the location of the node that this service is associated with.java.lang.StringgetSvcName()Returns the svcName associated with this monitored service.voidsetNodeLabel(java.lang.String nodeLabel)
-
-
-
Constructor Detail
-
MockMonitoredService
public MockMonitoredService(int nodeId, java.lang.String nodeLabel, java.net.InetAddress inetAddress, java.lang.String svcName)
-
MockMonitoredService
public MockMonitoredService(int nodeId, java.lang.String nodeLabel, java.lang.String nodeLocation, java.net.InetAddress inetAddress, java.lang.String svcName)
-
-
Method Detail
-
getSvcName
public java.lang.String getSvcName()
Description copied from interface:MonitoredServiceReturns the svcName associated with this monitored service.- Specified by:
getSvcNamein interfaceMonitoredService- Returns:
- the svcName
-
getIpAddr
public java.lang.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 java.lang.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
-
setNodeLabel
public void setNodeLabel(java.lang.String nodeLabel)
-
getNodeLocation
public java.lang.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
-
getAddress
public java.net.InetAddress getAddress()
Description copied from interface:MonitoredServiceReturns theInetAddressassociated with the service- Specified by:
getAddressin interfaceMonitoredService- Returns:
- the
InetAddress
-
-