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 java.lang.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 java.util.concurrent.CompletableFuture<org.opennms.integration.api.v1.pollers.PollerResult>
execute()
org.opennms.integration.api.v1.pollers.PollerRequestBuilder
withAddress(java.net.InetAddress address)
org.opennms.integration.api.v1.pollers.PollerRequestBuilder
withAttribute(java.lang.String key, java.lang.String value)
org.opennms.integration.api.v1.pollers.PollerRequestBuilder
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
org.opennms.integration.api.v1.pollers.PollerRequestBuilder
withPollerClassName(java.lang.String className)
org.opennms.integration.api.v1.pollers.PollerRequestBuilder
withServiceName(java.lang.String serviceName)
org.opennms.integration.api.v1.pollers.PollerRequestBuilder
withTimeToLive(java.lang.Long ttlInMs)
-
-
-
Constructor Detail
-
PollerRequestBuilderImpl
public PollerRequestBuilderImpl(LocationAwarePollerClient pollerClient)
-
-
Method Detail
-
withPollerClassName
public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withPollerClassName(java.lang.String className)
- Specified by:
withPollerClassName
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
withAddress
public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withAddress(java.net.InetAddress address)
- Specified by:
withAddress
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
withServiceName
public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withServiceName(java.lang.String serviceName)
- Specified by:
withServiceName
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
withAttribute
public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withAttribute(java.lang.String key, java.lang.String value)
- Specified by:
withAttribute
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
withAttributes
public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
- Specified by:
withAttributes
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
withTimeToLive
public org.opennms.integration.api.v1.pollers.PollerRequestBuilder withTimeToLive(java.lang.Long ttlInMs)
- Specified by:
withTimeToLive
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
execute
public java.util.concurrent.CompletableFuture<org.opennms.integration.api.v1.pollers.PollerResult> execute()
- Specified by:
execute
in interfaceorg.opennms.integration.api.v1.pollers.PollerRequestBuilder
-
-