Package org.opennms.netmgt.icmp.proxy
Class PingRequestDTO
- java.lang.Object
-
- org.opennms.netmgt.icmp.proxy.PingRequestDTO
-
- All Implemented Interfaces:
RpcRequest
public class PingRequestDTO extends Object implements RpcRequest
-
-
Field Summary
-
Fields inherited from interface org.opennms.core.rpc.api.RpcRequest
TAG_CLASS_NAME, TAG_DESCRIPTION, TAG_IP_ADDRESS, TAG_NODE_ID, TAG_NODE_LABEL
-
-
Constructor Summary
Constructors Constructor Description PingRequestDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTracingInfo(String key, String value)
boolean
equals(Object o)
InetAddress
getInetAddress()
String
getLocation()
Used to route the request to the appropriate location.int
getPacketSize()
int
getRetries()
io.opentracing.Span
getSpan()
String
getSystemId()
Used to route the request to a particular system at the given location.long
getTimeout()
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
setInetAddress(InetAddress inetAddress)
void
setLocation(String location)
void
setPacketSize(int packetSize)
void
setRetries(int retries)
void
setSystemId(String systemId)
void
setTimeout(long timeoutInMs)
PingRequest
toPingRequest()
-
-
-
Method Detail
-
getLocation
public String getLocation()
Description copied from interface:RpcRequest
Used to route the request to the appropriate location.- Specified by:
getLocation
in interfaceRpcRequest
-
setSystemId
public void setSystemId(String systemId)
-
getSystemId
public String getSystemId()
Description copied from interface:RpcRequest
Used to route the request to a particular system at the given location.- Specified by:
getSystemId
in interfaceRpcRequest
-
getTimeToLiveMs
public Long getTimeToLiveMs()
Description copied from interface:RpcRequest
When using JMS, the request will fail if no response was received in this many milliseconds.- Specified by:
getTimeToLiveMs
in interfaceRpcRequest
-
setLocation
public void setLocation(String location)
-
setPacketSize
public void setPacketSize(int packetSize)
-
setRetries
public void setRetries(int retries)
-
setTimeout
public void setTimeout(long timeoutInMs)
-
setInetAddress
public void setInetAddress(InetAddress inetAddress)
-
getInetAddress
public InetAddress getInetAddress()
-
getRetries
public int getRetries()
-
getTimeout
public long getTimeout()
-
getPacketSize
public int getPacketSize()
-
getTracingInfo
public Map<String,String> getTracingInfo()
Description copied from interface:RpcRequest
RPC clients expose tracing info as tags there by giving more context to each RPC trace. Implementations should add tags defined above if they are available.- Specified by:
getTracingInfo
in interfaceRpcRequest
-
getSpan
public io.opentracing.Span getSpan()
- Specified by:
getSpan
in interfaceRpcRequest
-
toPingRequest
public PingRequest toPingRequest()
-
-