Package org.opennms.netmgt.icmp.proxy
Class PingSweepRequestDTO
- java.lang.Object
-
- org.opennms.netmgt.icmp.proxy.PingSweepRequestDTO
-
- All Implemented Interfaces:
RpcRequest
public class PingSweepRequestDTO 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 PingSweepRequestDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIpRange(IPRangeDTO range)
void
addTracingInfo(java.lang.String key, java.lang.String value)
boolean
equals(java.lang.Object obj)
java.util.List<IPRangeDTO>
getIpRanges()
java.lang.String
getLocation()
Used to route the request to the appropriate location.int
getPacketSize()
double
getPacketsPerSecond()
io.opentracing.Span
getSpan()
java.lang.String
getSystemId()
Used to route the request to a particular system at the given location.java.lang.Long
getTimeToLiveMs()
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.int
hashCode()
void
setIpRanges(java.util.List<IPRangeDTO> ipRanges)
void
setLocation(java.lang.String location)
void
setPacketSize(int packetSize)
void
setPacketsPerSecond(double packetsPerSecond)
void
setSystemId(java.lang.String systemId)
-
-
-
Method Detail
-
getLocation
public java.lang.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(java.lang.String systemId)
-
getSystemId
public java.lang.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
-
setLocation
public void setLocation(java.lang.String location)
-
getPacketSize
public int getPacketSize()
-
setPacketSize
public void setPacketSize(int packetSize)
-
getPacketsPerSecond
public double getPacketsPerSecond()
-
setPacketsPerSecond
public void setPacketsPerSecond(double packetsPerSecond)
-
getIpRanges
public java.util.List<IPRangeDTO> getIpRanges()
-
addIpRange
public void addIpRange(IPRangeDTO range)
-
setIpRanges
public void setIpRanges(java.util.List<IPRangeDTO> ipRanges)
-
getTracingInfo
public java.util.Map<java.lang.String,java.lang.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
-
addTracingInfo
public void addTracingInfo(java.lang.String key, java.lang.String value)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getTimeToLiveMs
public java.lang.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
-
-