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