Class PollerRequestDTO

    • Constructor Detail

      • PollerRequestDTO

        public PollerRequestDTO()
    • 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 interface RpcRequest
      • 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 interface RpcRequest
      • 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 interface MonitoredService
        Returns:
        the svcName
      • setServiceName

        public void setServiceName​(java.lang.String serviceName)
      • getAddress

        public java.net.InetAddress getAddress()
        Description copied from interface: MonitoredService
        Returns the InetAddress associated with the service
        Specified by:
        getAddress in interface MonitoredService
        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 interface MonitoredService
        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 interface MonitoredService
        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 interface MonitoredService
        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 interface MonitoredService
        Returns:
        the nodelocation
      • setNodeLocation

        public void setNodeLocation​(java.lang.String nodeLocation)
      • 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 interface PollerRequest
        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 interface RpcRequest
      • 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 interface RpcRequest
      • getSpan

        public io.opentracing.Span getSpan()
        Specified by:
        getSpan in interface RpcRequest
      • addTracingInfo

        public void addTracingInfo​(java.lang.String key,
                                   java.lang.String value)
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object