Class PollerRequestDTO
- java.lang.Object
-
- org.opennms.netmgt.poller.client.rpc.PollerRequestDTO
-
- All Implemented Interfaces:
RpcRequest
,MonitoredService
,PollerRequest
public class PollerRequestDTO extends java.lang.Object implements RpcRequest, PollerRequest
-
-
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 PollerRequestDTO()
-
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 other)
java.net.InetAddress
getAddress()
Returns theInetAddress
associated with the servicejava.util.List<PollerAttributeDTO>
getAttributes()
java.lang.String
getClassName()
java.lang.String
getIpAddr()
Returns the ipAddr string associated with this monitored service.java.lang.String
getLocation()
Used to route the request to the appropriate location.java.util.Map<java.lang.String,java.lang.Object>
getMonitorParameters()
int
getNodeId()
Returns the nodeId of the node that this service is associated with.java.lang.String
getNodeLabel()
Returns the label of the node that this service is associated with.java.lang.String
getNodeLocation()
Returns the name of the location of the node that this service is associated with.java.lang.String
getServiceName()
io.opentracing.Span
getSpan()
java.lang.String
getSvcName()
Returns the svcName associated with this monitored service.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
setAddress(java.net.InetAddress address)
void
setAttributes(java.util.List<PollerAttributeDTO> attributes)
void
setClassName(java.lang.String className)
void
setLocation(java.lang.String location)
void
setNodeId(int nodeId)
void
setNodeLabel(java.lang.String nodeLabel)
void
setNodeLocation(java.lang.String nodeLocation)
void
setServiceName(java.lang.String serviceName)
void
setSystemId(java.lang.String systemId)
void
setTimeToLiveMs(java.lang.Long timeToLiveMs)
-
-
-
Method Detail
-
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
-
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:RpcRequest
Used to route the request to a particular system at the given location.- Specified by:
getSystemId
in interfaceRpcRequest
-
getClassName
public java.lang.String getClassName()
-
setClassName
public void setClassName(java.lang.String className)
-
getServiceName
public java.lang.String getServiceName()
-
getSvcName
public java.lang.String getSvcName()
Description copied from interface:MonitoredService
Returns the svcName associated with this monitored service.- Specified by:
getSvcName
in interfaceMonitoredService
- Returns:
- the svcName
-
setServiceName
public void setServiceName(java.lang.String serviceName)
-
getAddress
public java.net.InetAddress getAddress()
Description copied from interface:MonitoredService
Returns theInetAddress
associated with the service- Specified by:
getAddress
in interfaceMonitoredService
- Returns:
- the
InetAddress
-
setAddress
public void setAddress(java.net.InetAddress address)
-
getIpAddr
public java.lang.String getIpAddr()
Description copied from interface:MonitoredService
Returns the ipAddr string associated with this monitored service.- Specified by:
getIpAddr
in interfaceMonitoredService
- Returns:
- the ipAddr string
-
getNodeId
public int getNodeId()
Description copied from interface:MonitoredService
Returns the nodeId of the node that this service is associated with.- Specified by:
getNodeId
in interfaceMonitoredService
- Returns:
- the nodeid
-
setNodeId
public void setNodeId(int nodeId)
-
getNodeLabel
public java.lang.String getNodeLabel()
Description copied from interface:MonitoredService
Returns the label of the node that this service is associated with.- Specified by:
getNodeLabel
in interfaceMonitoredService
- Returns:
- the nodelabel
-
setNodeLabel
public void setNodeLabel(java.lang.String nodeLabel)
-
getNodeLocation
public java.lang.String getNodeLocation()
Description copied from interface:MonitoredService
Returns the name of the location of the node that this service is associated with.- Specified by:
getNodeLocation
in interfaceMonitoredService
- Returns:
- the nodelocation
-
setNodeLocation
public void setNodeLocation(java.lang.String nodeLocation)
-
getAttributes
public java.util.List<PollerAttributeDTO> getAttributes()
-
setAttributes
public void setAttributes(java.util.List<PollerAttributeDTO> 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)
-
getMonitorParameters
public java.util.Map<java.lang.String,java.lang.Object> getMonitorParameters()
- Specified by:
getMonitorParameters
in interfacePollerRequest
- Returns:
- a map of configuration parameters for the
ServiceMonitor
.
-
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)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-