Class CollectorRequestDTO
- java.lang.Object
-
- org.opennms.netmgt.collection.client.rpc.CollectorRequestDTO
-
- All Implemented Interfaces:
RpcRequest
public class CollectorRequestDTO 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 CollectorRequestDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(java.lang.String key, java.lang.Object value)voidaddAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)voidaddTracingInfo(java.lang.String key, java.lang.String value)booleanequals(java.lang.Object obj)CollectionAgentgetAgent()java.util.List<CollectionAttributeDTO>getAttributes()java.lang.BooleangetAttributesNeedUnmarshaling()java.lang.StringgetClassName()java.lang.StringgetLocation()Used to route the request to the appropriate location.java.util.Map<java.lang.String,java.lang.Object>getParameters(ServiceCollector collector)io.opentracing.SpangetSpan()java.lang.StringgetSystemId()Used to route the request to a particular system at the given location.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()voidsetAgent(CollectionAgent agent)voidsetAttributes(java.util.List<CollectionAttributeDTO> attributes)voidsetAttributesNeedUnmarshaling(java.lang.Boolean attributesNeedUnmarshaling)voidsetClassName(java.lang.String className)voidsetLocation(java.lang.String location)voidsetSystemId(java.lang.String systemId)voidsetTimeToLiveMs(java.lang.Long timeToLiveMs)
-
-
-
Method Detail
-
getAgent
public CollectionAgent getAgent()
-
setAgent
public void setAgent(CollectionAgent agent)
-
setLocation
public void setLocation(java.lang.String location)
-
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
-
setClassName
public void setClassName(java.lang.String className)
-
getClassName
public java.lang.String getClassName()
-
setTimeToLiveMs
public void setTimeToLiveMs(java.lang.Long timeToLiveMs)
-
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)
-
getAttributesNeedUnmarshaling
public java.lang.Boolean getAttributesNeedUnmarshaling()
-
setAttributesNeedUnmarshaling
public void setAttributesNeedUnmarshaling(java.lang.Boolean attributesNeedUnmarshaling)
-
getAttributes
public java.util.List<CollectionAttributeDTO> getAttributes()
-
setAttributes
public void setAttributes(java.util.List<CollectionAttributeDTO> attributes)
-
addAttribute
public void addAttribute(java.lang.String key, java.lang.Object value)
-
addAttributes
public void addAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
-
getParameters
public java.util.Map<java.lang.String,java.lang.Object> getParameters(ServiceCollector collector)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-