Class DetectorRequestDTO

    • Constructor Detail

      • DetectorRequestDTO

        public DetectorRequestDTO()
    • Method Detail

      • getLocation

        public 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​(String location)
      • setSystemId

        public void setSystemId​(String systemId)
      • getSystemId

        public 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
      • addDetectorAttribute

        public void addDetectorAttribute​(String key,
                                         String value)
      • addDetectorAttributes

        public void addDetectorAttributes​(Map<String,​String> attributes)
      • addRuntimeAttribute

        public void addRuntimeAttribute​(String key,
                                        String value)
      • addRuntimeAttributes

        public void addRuntimeAttributes​(Map<String,​String> attributes)
      • getRuntimeAttributes

        public Map<String,​String> getRuntimeAttributes()
        Specified by:
        getRuntimeAttributes in interface DetectRequest
        Returns:
        additional attributes stored outside of the detector's configuration that may be required when running the detector.
      • getClassName

        public String getClassName()
      • setClassName

        public void setClassName​(String className)
      • getAddress

        public InetAddress getAddress()
        Specified by:
        getAddress in interface DetectRequest
        Returns:
        the address of the host against with the detector should be invoked.
      • setAddress

        public void setAddress​(InetAddress address)
      • getTimeToLiveMs

        public 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
      • setTimeToLiveMs

        public void setTimeToLiveMs​(Long timeToLive)
      • getTracingInfo

        public Map<String,​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
      • setSpan

        public void setSpan​(io.opentracing.Span span)
      • addTracingInfo

        public void addTracingInfo​(String key,
                                   String value)
      • setPreDetectCallback

        public void setPreDetectCallback​(PreDetectCallback preDetectCallback)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object