public class PollerRequestDTO extends Object implements RpcRequest, PollerRequest
TAG_CLASS_NAME, TAG_DESCRIPTION, TAG_IP_ADDRESS, TAG_NODE_ID, TAG_NODE_LABEL
Constructor and Description |
---|
PollerRequestDTO() |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String key,
Object value) |
void |
addAttributes(Map<String,Object> attributes) |
void |
addTracingInfo(String key,
String value) |
boolean |
equals(Object other) |
InetAddress |
getAddress()
Returns the
InetAddress associated with the service |
List<PollerAttributeDTO> |
getAttributes() |
String |
getClassName() |
String |
getIpAddr()
Returns the ipAddr string associated with this monitored service.
|
String |
getLocation()
Used to route the request to the appropriate location.
|
Map<String,Object> |
getMonitorParameters() |
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 |
getServiceName() |
io.opentracing.Span |
getSpan() |
String |
getSvcName()
Returns the svcName associated with this monitored service.
|
String |
getSystemId()
Used to route the request to a particular system at the given location.
|
Long |
getTimeToLiveMs()
When using JMS, the request will fail if no response was received in this
many milliseconds.
|
Map<String,String> |
getTracingInfo()
RPC clients expose tracing info as tags there by giving more context to each RPC trace.
|
int |
hashCode() |
void |
setAddress(InetAddress address) |
void |
setAttributes(List<PollerAttributeDTO> attributes) |
void |
setClassName(String className) |
void |
setLocation(String location) |
void |
setNodeId(int nodeId) |
void |
setNodeLabel(String nodeLabel) |
void |
setNodeLocation(String nodeLocation) |
void |
setServiceName(String serviceName) |
void |
setSystemId(String systemId) |
void |
setTimeToLiveMs(Long timeToLiveMs) |
public String getLocation()
RpcRequest
getLocation
in interface RpcRequest
public void setLocation(String location)
public void setSystemId(String systemId)
public String getSystemId()
RpcRequest
getSystemId
in interface RpcRequest
public String getClassName()
public void setClassName(String className)
public String getServiceName()
public String getSvcName()
MonitoredService
getSvcName
in interface MonitoredService
public void setServiceName(String serviceName)
public InetAddress getAddress()
MonitoredService
InetAddress
associated with the servicegetAddress
in interface MonitoredService
InetAddress
public void setAddress(InetAddress address)
public String getIpAddr()
MonitoredService
getIpAddr
in interface MonitoredService
public int getNodeId()
MonitoredService
getNodeId
in interface MonitoredService
public void setNodeId(int nodeId)
public String getNodeLabel()
MonitoredService
getNodeLabel
in interface MonitoredService
public void setNodeLabel(String nodeLabel)
public String getNodeLocation()
MonitoredService
getNodeLocation
in interface MonitoredService
public void setNodeLocation(String nodeLocation)
public List<PollerAttributeDTO> getAttributes()
public void setAttributes(List<PollerAttributeDTO> attributes)
public Map<String,Object> getMonitorParameters()
getMonitorParameters
in interface PollerRequest
ServiceMonitor
.public void setTimeToLiveMs(Long timeToLiveMs)
public Long getTimeToLiveMs()
RpcRequest
getTimeToLiveMs
in interface RpcRequest
public Map<String,String> getTracingInfo()
RpcRequest
getTracingInfo
in interface RpcRequest
public io.opentracing.Span getSpan()
getSpan
in interface RpcRequest
Copyright © 2021. All rights reserved.