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 Object implements MonitoredService
-
-
Constructor Summary
Constructors Constructor Description MockMonitoredService(int nodeId, String nodeLabel, String nodeLocation, InetAddress inetAddress, String svcName)
MockMonitoredService(int nodeId, String nodeLabel, InetAddress inetAddress, String svcName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetAddress
getAddress()
Returns theInetAddress
associated with the serviceString
getIpAddr()
Returns the ipAddr string associated with this monitored 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.String
getNodeLocation()
Returns the name of the location of the node that this service is associated with.String
getSvcName()
Returns the svcName associated with this monitored service.void
setNodeLabel(String nodeLabel)
-
-
-
Constructor Detail
-
MockMonitoredService
public MockMonitoredService(int nodeId, String nodeLabel, InetAddress inetAddress, String svcName)
-
MockMonitoredService
public MockMonitoredService(int nodeId, String nodeLabel, String nodeLocation, InetAddress inetAddress, String svcName)
-
-
Method Detail
-
getSvcName
public String getSvcName()
Description copied from interface:MonitoredService
Returns the svcName associated with this monitored service.- Specified by:
getSvcName
in interfaceMonitoredService
- Returns:
- the svcName
-
getIpAddr
public String getIpAddr()
Description copied from interface:MonitoredService
Returns the ipAddr string associated with this monitored service.- Specified by:
getIpAddr
in interfaceMonitoredService
- Returns:
- the ipAddr string
-
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 interfaceMonitoredService
- 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 interfaceMonitoredService
- Returns:
- the nodelabel
-
setNodeLabel
public void setNodeLabel(String nodeLabel)
-
getNodeLocation
public String getNodeLocation()
Description copied from interface:MonitoredService
Returns the name of the location of the node that this service is associated with.- Specified by:
getNodeLocation
in interfaceMonitoredService
- Returns:
- the nodelocation
-
getAddress
public InetAddress getAddress()
Description copied from interface:MonitoredService
Returns theInetAddress
associated with the service- Specified by:
getAddress
in interfaceMonitoredService
- Returns:
- the
InetAddress
-
-