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 java.lang.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 voidaddTracingInfo(java.lang.String key, java.lang.String value)booleanequals(java.lang.Object o)java.net.InetAddressgetInetAddress()java.lang.StringgetLocation()Used to route the request to the appropriate location.intgetPacketSize()intgetRetries()io.opentracing.SpangetSpan()java.lang.StringgetSystemId()Used to route the request to a particular system at the given location.longgetTimeout()java.lang.LonggetTimeToLiveMs()When using JMS, the request will fail if no response was received in this many milliseconds.java.util.Map<java.lang.String,java.lang.String>getTracingInfo()RPC clients expose tracing info as tags there by giving more context to each RPC trace.inthashCode()voidsetInetAddress(java.net.InetAddress inetAddress)voidsetLocation(java.lang.String location)voidsetPacketSize(int packetSize)voidsetRetries(int retries)voidsetSystemId(java.lang.String systemId)voidsetTimeout(long timeoutInMs)PingRequesttoPingRequest()
-
-
-
Method Detail
-
getLocation
public java.lang.String getLocation()
Description copied from interface:RpcRequestUsed to route the request to the appropriate location.- Specified by:
getLocationin interfaceRpcRequest
-
setSystemId
public void setSystemId(java.lang.String systemId)
-
getSystemId
public java.lang.String getSystemId()
Description copied from interface:RpcRequestUsed to route the request to a particular system at the given location.- Specified by:
getSystemIdin interfaceRpcRequest
-
getTimeToLiveMs
public java.lang.Long getTimeToLiveMs()
Description copied from interface:RpcRequestWhen using JMS, the request will fail if no response was received in this many milliseconds.- Specified by:
getTimeToLiveMsin interfaceRpcRequest
-
setLocation
public void setLocation(java.lang.String location)
-
setPacketSize
public void setPacketSize(int packetSize)
-
setRetries
public void setRetries(int retries)
-
setTimeout
public void setTimeout(long timeoutInMs)
-
setInetAddress
public void setInetAddress(java.net.InetAddress inetAddress)
-
getInetAddress
public java.net.InetAddress getInetAddress()
-
getRetries
public int getRetries()
-
getTimeout
public long getTimeout()
-
getPacketSize
public int getPacketSize()
-
getTracingInfo
public java.util.Map<java.lang.String,java.lang.String> getTracingInfo()
Description copied from interface:RpcRequestRPC 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:
getTracingInfoin interfaceRpcRequest
-
getSpan
public io.opentracing.Span getSpan()
- Specified by:
getSpanin interfaceRpcRequest
-
addTracingInfo
public void addTracingInfo(java.lang.String key, java.lang.String value)
-
toPingRequest
public PingRequest toPingRequest()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-