public class MockMonitoredService extends Object implements MonitoredService
| Constructor and Description |
|---|
MockMonitoredService(int nodeId,
String nodeLabel,
InetAddress inetAddress,
String svcName) |
MockMonitoredService(int nodeId,
String nodeLabel,
String nodeLocation,
InetAddress inetAddress,
String svcName) |
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getAddress()
Returns the
InetAddress associated with the service |
String |
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) |
public MockMonitoredService(int nodeId,
String nodeLabel,
InetAddress inetAddress,
String svcName)
public MockMonitoredService(int nodeId,
String nodeLabel,
String nodeLocation,
InetAddress inetAddress,
String svcName)
public String getSvcName()
MonitoredServicegetSvcName in interface MonitoredServicepublic String getIpAddr()
MonitoredServicegetIpAddr in interface MonitoredServicepublic int getNodeId()
MonitoredServicegetNodeId in interface MonitoredServicepublic String getNodeLabel()
MonitoredServicegetNodeLabel in interface MonitoredServicepublic void setNodeLabel(String nodeLabel)
public String getNodeLocation()
MonitoredServicegetNodeLocation in interface MonitoredServicepublic InetAddress getAddress()
MonitoredServiceInetAddress associated with the servicegetAddress in interface MonitoredServiceInetAddressCopyright © 2020. All rights reserved.