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()
RpcRequestgetLocation in interface RpcRequestpublic void setLocation(String location)
public void setSystemId(String systemId)
public String getSystemId()
RpcRequestgetSystemId in interface RpcRequestpublic String getClassName()
public void setClassName(String className)
public String getServiceName()
public String getSvcName()
MonitoredServicegetSvcName in interface MonitoredServicepublic void setServiceName(String serviceName)
public InetAddress getAddress()
MonitoredServiceInetAddress associated with the servicegetAddress in interface MonitoredServiceInetAddresspublic void setAddress(InetAddress address)
public String getIpAddr()
MonitoredServicegetIpAddr in interface MonitoredServicepublic int getNodeId()
MonitoredServicegetNodeId in interface MonitoredServicepublic void setNodeId(int nodeId)
public String getNodeLabel()
MonitoredServicegetNodeLabel in interface MonitoredServicepublic void setNodeLabel(String nodeLabel)
public String getNodeLocation()
MonitoredServicegetNodeLocation in interface MonitoredServicepublic void setNodeLocation(String nodeLocation)
public List<PollerAttributeDTO> getAttributes()
public void setAttributes(List<PollerAttributeDTO> attributes)
public Map<String,Object> getMonitorParameters()
getMonitorParameters in interface PollerRequestServiceMonitor.public void setTimeToLiveMs(Long timeToLiveMs)
public Long getTimeToLiveMs()
RpcRequestgetTimeToLiveMs in interface RpcRequestpublic Map<String,String> getTracingInfo()
RpcRequestgetTracingInfo in interface RpcRequestpublic io.opentracing.Span getSpan()
getSpan in interface RpcRequestCopyright © 2022. All rights reserved.