Class PollerRequestDTO
- java.lang.Object
-
- org.opennms.netmgt.poller.client.rpc.PollerRequestDTO
-
- All Implemented Interfaces:
RpcRequest,MonitoredService,PollerRequest
public class PollerRequestDTO extends 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(String key, Object value)voidaddAttributes(Map<String,Object> attributes)voidaddTracingInfo(String key, String value)booleanequals(Object other)InetAddressgetAddress()Returns theInetAddressassociated with the serviceList<PollerAttributeDTO>getAttributes()StringgetClassName()StringgetIpAddr()Returns the ipAddr string associated with this monitored service.StringgetLocation()Used to route the request to the appropriate location.Map<String,Object>getMonitorParameters()intgetNodeId()Returns the nodeId of the node that this service is associated with.StringgetNodeLabel()Returns the label of the node that this service is associated with.StringgetNodeLocation()Returns the name of the location of the node that this service is associated with.StringgetServiceName()io.opentracing.SpangetSpan()StringgetSvcName()Returns the svcName associated with this monitored service.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()voidsetAddress(InetAddress address)voidsetAttributes(List<PollerAttributeDTO> attributes)voidsetClassName(String className)voidsetLocation(String location)voidsetNodeId(int nodeId)voidsetNodeLabel(String nodeLabel)voidsetNodeLocation(String nodeLocation)voidsetServiceName(String serviceName)voidsetSystemId(String systemId)voidsetTimeToLiveMs(Long timeToLiveMs)
-
-
-
Method Detail
-
getLocation
public String getLocation()
Description copied from interface:RpcRequestUsed to route the request to the appropriate location.- Specified by:
getLocationin interfaceRpcRequest
-
setLocation
public void setLocation(String location)
-
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
-
getClassName
public String getClassName()
-
setClassName
public void setClassName(String className)
-
getServiceName
public String getServiceName()
-
getSvcName
public 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(String serviceName)
-
getAddress
public InetAddress getAddress()
Description copied from interface:MonitoredServiceReturns theInetAddressassociated with the service- Specified by:
getAddressin interfaceMonitoredService- Returns:
- the
InetAddress
-
setAddress
public void setAddress(InetAddress address)
-
getIpAddr
public 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 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(String nodeLabel)
-
getNodeLocation
public 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(String nodeLocation)
-
getAttributes
public List<PollerAttributeDTO> getAttributes()
-
setAttributes
public void setAttributes(List<PollerAttributeDTO> attributes)
-
getMonitorParameters
public Map<String,Object> getMonitorParameters()
- Specified by:
getMonitorParametersin interfacePollerRequest- Returns:
- a map of configuration parameters for the
ServiceMonitor.
-
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
-
-