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 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 other)java.net.InetAddressgetAddress()Returns theInetAddressassociated with the servicejava.util.List<PollerAttributeDTO>getAttributes()java.lang.StringgetClassName()java.lang.StringgetIpAddr()Returns the ipAddr string associated with this monitored service.java.lang.StringgetLocation()Used to route the request to the appropriate location.java.util.Map<java.lang.String,java.lang.Object>getMonitorParameters()intgetNodeId()Returns the nodeId of the node that this service is associated with.java.lang.StringgetNodeLabel()Returns the label of the node that this service is associated with.java.lang.StringgetNodeLocation()Returns the name of the location of the node that this service is associated with.java.lang.StringgetServiceName()io.opentracing.SpangetSpan()java.lang.StringgetSvcName()Returns the svcName associated with this monitored service.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()voidsetAddress(java.net.InetAddress address)voidsetAttributes(java.util.List<PollerAttributeDTO> attributes)voidsetClassName(java.lang.String className)voidsetLocation(java.lang.String location)voidsetNodeId(int nodeId)voidsetNodeLabel(java.lang.String nodeLabel)voidsetNodeLocation(java.lang.String nodeLocation)voidsetServiceName(java.lang.String serviceName)voidsetSystemId(java.lang.String systemId)voidsetTimeToLiveMs(java.lang.Long timeToLiveMs)
-
-
-
Method Detail
-
getLocation
public java.lang.String getLocation()
Description copied from interface:RpcRequestUsed to route the request to the appropriate location.- Specified by:
getLocationin 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:RpcRequestUsed to route the request to a particular system at the given location.- Specified by:
getSystemIdin 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:MonitoredServiceReturns the svcName associated with this monitored service.- Specified by:
getSvcNamein interfaceMonitoredService- Returns:
- the svcName
-
setServiceName
public void setServiceName(java.lang.String serviceName)
-
getAddress
public java.net.InetAddress getAddress()
Description copied from interface:MonitoredServiceReturns theInetAddressassociated with the service- Specified by:
getAddressin interfaceMonitoredService- Returns:
- the
InetAddress
-
setAddress
public void setAddress(java.net.InetAddress address)
-
getIpAddr
public java.lang.String getIpAddr()
Description copied from interface:MonitoredServiceReturns the ipAddr string associated with this monitored service.- Specified by:
getIpAddrin interfaceMonitoredService- Returns:
- the ipAddr string
-
getNodeId
public int getNodeId()
Description copied from interface:MonitoredServiceReturns the nodeId of the node that this service is associated with.- Specified by:
getNodeIdin interfaceMonitoredService- Returns:
- the nodeid
-
setNodeId
public void setNodeId(int nodeId)
-
getNodeLabel
public java.lang.String getNodeLabel()
Description copied from interface:MonitoredServiceReturns the label of the node that this service is associated with.- Specified by:
getNodeLabelin interfaceMonitoredService- Returns:
- the nodelabel
-
setNodeLabel
public void setNodeLabel(java.lang.String nodeLabel)
-
getNodeLocation
public java.lang.String getNodeLocation()
Description copied from interface:MonitoredServiceReturns the name of the location of the node that this service is associated with.- Specified by:
getNodeLocationin 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:
getMonitorParametersin 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: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)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-