public class DetectorRequestDTO extends Object implements DetectRequest, RpcRequest
TAG_CLASS_NAME, TAG_DESCRIPTION, TAG_IP_ADDRESS, TAG_NODE_ID, TAG_NODE_LABEL
Constructor and Description |
---|
DetectorRequestDTO() |
Modifier and Type | Method and Description |
---|---|
void |
addDetectorAttribute(String key,
String value) |
void |
addDetectorAttributes(Map<String,String> attributes) |
void |
addRuntimeAttribute(String key,
String value) |
void |
addRuntimeAttributes(Map<String,String> attributes) |
void |
addTracingInfo(String key,
String value) |
boolean |
equals(Object obj) |
InetAddress |
getAddress() |
Map<String,String> |
getAttributeMap() |
String |
getClassName() |
List<DetectorAttributeDTO> |
getDetectorAttributes() |
String |
getLocation()
Used to route the request to the appropriate location.
|
Map<String,String> |
getRuntimeAttributes() |
io.opentracing.Span |
getSpan() |
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 |
preDetect() |
void |
setAddress(InetAddress address) |
void |
setClassName(String className) |
void |
setDetectorAttributes(List<DetectorAttributeDTO> attributes) |
void |
setLocation(String location) |
void |
setPreDetectCallback(PreDetectCallback preDetectCallback) |
void |
setRuntimeAttributes(List<DetectorAttributeDTO> attributes) |
void |
setSpan(io.opentracing.Span span) |
void |
setSystemId(String systemId) |
void |
setTimeToLiveMs(Long timeToLive) |
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 List<DetectorAttributeDTO> getDetectorAttributes()
public void setDetectorAttributes(List<DetectorAttributeDTO> attributes)
public void setRuntimeAttributes(List<DetectorAttributeDTO> attributes)
public Map<String,String> getRuntimeAttributes()
getRuntimeAttributes
in interface DetectRequest
public String getClassName()
public void setClassName(String className)
public InetAddress getAddress()
getAddress
in interface DetectRequest
public void setAddress(InetAddress address)
public Long getTimeToLiveMs()
RpcRequest
getTimeToLiveMs
in interface RpcRequest
public void setTimeToLiveMs(Long timeToLive)
public Map<String,String> getTracingInfo()
RpcRequest
getTracingInfo
in interface RpcRequest
public io.opentracing.Span getSpan()
getSpan
in interface RpcRequest
public void setSpan(io.opentracing.Span span)
public void setPreDetectCallback(PreDetectCallback preDetectCallback)
public void preDetect()
preDetect
in interface PreDetectCallback
Copyright © 2020. All rights reserved.