Class PollerRequestBuilderImpl
- java.lang.Object
-
- org.opennms.features.apilayer.pollers.PollerRequestBuilderImpl
-
- All Implemented Interfaces:
org.opennms.integration.api.v1.pollers.PollerRequestBuilder
public class PollerRequestBuilderImpl extends Object implements org.opennms.integration.api.v1.pollers.PollerRequestBuilder
Builder implementation forServicePollerClient
.
-
-
Constructor Summary
Constructors Constructor Description PollerRequestBuilderImpl(LocationAwarePollerClient pollerClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<org.opennms.integration.api.v1.pollers.PollerResult>
execute()
org.opennms.integration.api.v1.pollers.PollerRequestBuilder
withAddress(InetAddress address)
org.opennms.integration.api.v1.pollers.PollerRequestBuilder
withAttribute(String key, String value)
org.opennms.integration.api.v1.pollers.PollerRequestBuilder
withAttributes(Map<String,String> attributes)
org.opennms.integration.api.v1.pollers.PollerRequestBuilder
withPollerClassName(String className)
org.opennms.integration.api.v1.pollers.PollerRequestBuilder
withServiceName(String serviceName)
org.opennms.integration.api.v1.pollers.PollerRequestBuilder
withTimeToLive(Long ttlInMs)
-
-
-
Constructor Detail
-
PollerRequestBuilderImpl
public PollerRequestBuilderImpl(LocationAwarePollerClient pollerClient)
-
-
Method Detail
-
withPollerClassName
public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withPollerClassName(String className)
- Specified by:
withPollerClassName
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
withAddress
public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withAddress(InetAddress address)
- Specified by:
withAddress
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
withServiceName
public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withServiceName(String serviceName)
- Specified by:
withServiceName
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
withAttribute
public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withAttribute(String key, String value)
- Specified by:
withAttribute
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
withAttributes
public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withAttributes(Map<String,String> attributes)
- Specified by:
withAttributes
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
withTimeToLive
public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withTimeToLive(Long ttlInMs)
- Specified by:
withTimeToLive
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
execute
public CompletableFuture<org.opennms.integration.api.v1.pollers.PollerResult> execute()
- Specified by:
execute
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
-