public class SimpleMonitoredService extends Object implements MonitoredService
Constructor and 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) |
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.
|
public SimpleMonitoredService(InetAddress ipAddress, int nodeId, String nodeLabel, String svcName, String location)
public SimpleMonitoredService(InetAddress ipAddress, int nodeId, String nodeLabel, String svcName)
ipAddress
- the IP addressnodeId
- the node idnodeLabel
- the node labelsvcName
- the service namepublic SimpleMonitoredService(InetAddress ipAddress, String svcName)
ipAddress
- the IP addresssvcName
- the service namepublic SimpleMonitoredService(InetAddress ipAddress, String svcName, String location)
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 InetAddress getAddress()
MonitoredService
InetAddress
associated with the servicegetAddress
in interface MonitoredService
InetAddress
public String getNodeLocation()
MonitoredService
getNodeLocation
in interface MonitoredService
Copyright © 2021. All rights reserved.