public class DetectorRequestBuilderImpl extends Object implements DetectorRequestBuilder
Constructor and Description |
---|
DetectorRequestBuilderImpl(LocationAwareDetectorClientRpcImpl client) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Boolean> |
execute()
Builds the
DetectorRequestDTO and executes the requested detector
via the RPC client. |
DetectorRequestBuilder |
withAddress(InetAddress address) |
DetectorRequestBuilder |
withAttribute(String key,
String value) |
DetectorRequestBuilder |
withAttributes(Map<String,String> attributes) |
DetectorRequestBuilder |
withClassName(String className) |
DetectorRequestBuilder |
withLocation(String location) |
DetectorRequestBuilder |
withNodeId(Integer nodeId) |
DetectorRequestBuilder |
withParentSpan(io.opentracing.Span span) |
DetectorRequestBuilder |
withPreDetectCallback(PreDetectCallback preDetectCallback) |
DetectorRequestBuilder |
withServiceName(String serviceName) |
DetectorRequestBuilder |
withSystemId(String systemId) |
public DetectorRequestBuilderImpl(LocationAwareDetectorClientRpcImpl client)
public DetectorRequestBuilder withLocation(String location)
withLocation
in interface DetectorRequestBuilder
public DetectorRequestBuilder withSystemId(String systemId)
withSystemId
in interface DetectorRequestBuilder
public DetectorRequestBuilder withClassName(String className)
withClassName
in interface DetectorRequestBuilder
public DetectorRequestBuilder withServiceName(String serviceName)
withServiceName
in interface DetectorRequestBuilder
public DetectorRequestBuilder withAddress(InetAddress address)
withAddress
in interface DetectorRequestBuilder
public DetectorRequestBuilder withAttributes(Map<String,String> attributes)
withAttributes
in interface DetectorRequestBuilder
public DetectorRequestBuilder withAttribute(String key, String value)
withAttribute
in interface DetectorRequestBuilder
public DetectorRequestBuilder withNodeId(Integer nodeId)
withNodeId
in interface DetectorRequestBuilder
public DetectorRequestBuilder withParentSpan(io.opentracing.Span span)
withParentSpan
in interface DetectorRequestBuilder
public DetectorRequestBuilder withPreDetectCallback(PreDetectCallback preDetectCallback)
withPreDetectCallback
in interface DetectorRequestBuilder
public CompletableFuture<Boolean> execute()
DetectorRequestDTO
and executes the requested detector
via the RPC client.execute
in interface DetectorRequestBuilder
Copyright © 2020. All rights reserved.