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 void
addAttribute(java.lang.String key, java.lang.Object value)
void
addAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
void
addTracingInfo(java.lang.String key, java.lang.String value)
boolean
equals(java.lang.Object obj)
CollectionAgent
getAgent()
java.util.List<CollectionAttributeDTO>
getAttributes()
java.lang.Boolean
getAttributesNeedUnmarshaling()
java.lang.String
getClassName()
java.lang.String
getLocation()
Used to route the request to the appropriate location.java.util.Map<java.lang.String,java.lang.Object>
getParameters(ServiceCollector collector)
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
setAgent(CollectionAgent agent)
void
setAttributes(java.util.List<CollectionAttributeDTO> attributes)
void
setAttributesNeedUnmarshaling(java.lang.Boolean attributesNeedUnmarshaling)
void
setClassName(java.lang.String className)
void
setLocation(java.lang.String location)
void
setSystemId(java.lang.String systemId)
void
setTimeToLiveMs(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: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
-
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:RpcRequest
When using JMS, the request will fail if no response was received in this many milliseconds.- Specified by:
getTimeToLiveMs
in interfaceRpcRequest
-
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)
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-