public class MockMonitoredService extends Object implements MonitoredService
Constructor and Description |
---|
MockMonitoredService(int nodeId,
String nodeLabel,
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.
|
NetworkInterface<InetAddress> |
getNetInterface()
Returns the
NetworkInterface object for this 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 |
getSvcName()
Returns the svcName associated with this monitored service.
|
String |
getSvcUrl()
Returns a URL representation of the service to monitor and its parameters.
|
void |
setNodeLabel(String nodeLabel) |
public MockMonitoredService(int nodeId, String nodeLabel, InetAddress inetAddress, String svcName) throws UnknownHostException
UnknownHostException
public String getSvcName()
MonitoredService
getSvcName
in interface MonitoredService
public String getIpAddr()
MonitoredService
getIpAddr
in interface MonitoredService
public int getNodeId()
MonitoredService
getNodeId
in interface MonitoredService
public String getNodeLabel()
MonitoredService
getNodeLabel
in interface MonitoredService
public void setNodeLabel(String nodeLabel)
public NetworkInterface<InetAddress> getNetInterface()
MonitoredService
NetworkInterface
object for this service. This NetworkInterface
object is
guaranteed to be the same each time init or poll is called.getNetInterface
in interface MonitoredService
NetworkInterface
public InetAddress getAddress()
MonitoredService
InetAddress
associated with the servicegetAddress
in interface MonitoredService
InetAddress
public String getSvcUrl()
MonitoredService
getSvcUrl
in interface MonitoredService
Copyright © 2017. All rights reserved.