Class SnmpRequestDTO
- java.lang.Object
-
- org.opennms.netmgt.snmp.proxy.common.SnmpRequestDTO
-
- All Implemented Interfaces:
RpcRequest
public class SnmpRequestDTO 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 SnmpRequestDTO()
-
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 obj)SnmpAgentConfiggetAgent()java.lang.StringgetDescription()java.util.List<SnmpGetRequestDTO>getGetRequests()java.lang.StringgetLocation()Used to route the request to the appropriate location.io.opentracing.SpangetSpan()java.lang.StringgetSystemId()Used to route the request to a particular system at the given location.java.lang.LonggetTimeToLive()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.java.util.List<SnmpWalkRequestDTO>getWalkRequest()inthashCode()voidsetAgent(SnmpAgentConfig agent)voidsetDescription(java.lang.String description)voidsetGetRequests(java.util.List<SnmpGetRequestDTO> gets)voidsetLocation(java.lang.String location)voidsetSystemId(java.lang.String systemId)voidsetTimeToLive(java.lang.Long timeToLive)voidsetWalkRequests(java.util.List<SnmpWalkRequestDTO> walks)
-
-
-
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
-
setLocation
public void setLocation(java.lang.String location)
-
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
-
getAgent
public SnmpAgentConfig getAgent()
-
setAgent
public void setAgent(SnmpAgentConfig agent)
-
setGetRequests
public void setGetRequests(java.util.List<SnmpGetRequestDTO> gets)
-
getGetRequests
public java.util.List<SnmpGetRequestDTO> getGetRequests()
-
setWalkRequests
public void setWalkRequests(java.util.List<SnmpWalkRequestDTO> walks)
-
getWalkRequest
public java.util.List<SnmpWalkRequestDTO> getWalkRequest()
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getTimeToLive
public java.lang.Long getTimeToLive()
-
setTimeToLive
public void setTimeToLive(java.lang.Long timeToLive)
-
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
-
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)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-