Class DetectorRequestBuilderImpl
- java.lang.Object
-
- org.opennms.netmgt.provision.detector.client.rpc.DetectorRequestBuilderImpl
-
- All Implemented Interfaces:
DetectorRequestBuilder
public class DetectorRequestBuilderImpl extends Object implements DetectorRequestBuilder
-
-
Constructor Summary
Constructors Constructor Description DetectorRequestBuilderImpl(LocationAwareDetectorClientRpcImpl client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Boolean>
execute()
Builds theDetectorRequestDTO
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)
-
-
-
Constructor Detail
-
DetectorRequestBuilderImpl
public DetectorRequestBuilderImpl(LocationAwareDetectorClientRpcImpl client)
-
-
Method Detail
-
withLocation
public DetectorRequestBuilder withLocation(String location)
- Specified by:
withLocation
in interfaceDetectorRequestBuilder
-
withSystemId
public DetectorRequestBuilder withSystemId(String systemId)
- Specified by:
withSystemId
in interfaceDetectorRequestBuilder
-
withClassName
public DetectorRequestBuilder withClassName(String className)
- Specified by:
withClassName
in interfaceDetectorRequestBuilder
-
withServiceName
public DetectorRequestBuilder withServiceName(String serviceName)
- Specified by:
withServiceName
in interfaceDetectorRequestBuilder
-
withAddress
public DetectorRequestBuilder withAddress(InetAddress address)
- Specified by:
withAddress
in interfaceDetectorRequestBuilder
-
withAttributes
public DetectorRequestBuilder withAttributes(Map<String,String> attributes)
- Specified by:
withAttributes
in interfaceDetectorRequestBuilder
-
withAttribute
public DetectorRequestBuilder withAttribute(String key, String value)
- Specified by:
withAttribute
in interfaceDetectorRequestBuilder
-
withNodeId
public DetectorRequestBuilder withNodeId(Integer nodeId)
- Specified by:
withNodeId
in interfaceDetectorRequestBuilder
-
withParentSpan
public DetectorRequestBuilder withParentSpan(io.opentracing.Span span)
- Specified by:
withParentSpan
in interfaceDetectorRequestBuilder
-
withPreDetectCallback
public DetectorRequestBuilder withPreDetectCallback(PreDetectCallback preDetectCallback)
- Specified by:
withPreDetectCallback
in interfaceDetectorRequestBuilder
-
execute
public CompletableFuture<Boolean> execute()
Builds theDetectorRequestDTO
and executes the requested detector via the RPC client.- Specified by:
execute
in interfaceDetectorRequestBuilder
-
-