Class SnmpRequestDTO
- java.lang.Object
-
- org.opennms.netmgt.snmp.proxy.common.SnmpRequestDTO
-
- All Implemented Interfaces:
RpcRequest
public class SnmpRequestDTO 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 SnmpRequestDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTracingInfo(String key, String value)booleanequals(Object obj)SnmpAgentConfiggetAgent()StringgetDescription()List<SnmpGetRequestDTO>getGetRequests()StringgetLocation()Used to route the request to the appropriate location.io.opentracing.SpangetSpan()StringgetSystemId()Used to route the request to a particular system at the given location.LonggetTimeToLive()LonggetTimeToLiveMs()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.List<SnmpWalkRequestDTO>getWalkRequest()inthashCode()voidsetAgent(SnmpAgentConfig agent)voidsetDescription(String description)voidsetGetRequests(List<SnmpGetRequestDTO> gets)voidsetLocation(String location)voidsetSystemId(String systemId)voidsetTimeToLive(Long timeToLive)voidsetWalkRequests(List<SnmpWalkRequestDTO> walks)
-
-
-
Method Detail
-
getLocation
public String getLocation()
Description copied from interface:RpcRequestUsed to route the request to the appropriate location.- Specified by:
getLocationin interfaceRpcRequest
-
setLocation
public void setLocation(String location)
-
setSystemId
public void setSystemId(String systemId)
-
getSystemId
public 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(List<SnmpGetRequestDTO> gets)
-
getGetRequests
public List<SnmpGetRequestDTO> getGetRequests()
-
setWalkRequests
public void setWalkRequests(List<SnmpWalkRequestDTO> walks)
-
getWalkRequest
public List<SnmpWalkRequestDTO> getWalkRequest()
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getTimeToLive
public Long getTimeToLive()
-
setTimeToLive
public void setTimeToLive(Long timeToLive)
-
getTimeToLiveMs
public 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 Map<String,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
-
-