Class CollectorRequestBuilderImpl
- java.lang.Object
-
- org.opennms.features.apilayer.collectors.CollectorRequestBuilderImpl
-
- All Implemented Interfaces:
org.opennms.integration.api.v1.collectors.CollectorRequestBuilder
public class CollectorRequestBuilderImpl extends java.lang.Object implements org.opennms.integration.api.v1.collectors.CollectorRequestBuilder
-
-
Constructor Summary
Constructors Constructor Description CollectorRequestBuilderImpl(LocationAwareCollectorClient locationAwareCollectorClient, CollectionAgentFactory collectionAgentFactory, org.opennms.integration.api.v1.dao.NodeDao nodeDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<org.opennms.integration.api.v1.collectors.CollectionSet>
execute()
org.opennms.integration.api.v1.collectors.CollectorRequestBuilder
withAttribute(java.lang.String key, java.lang.Object value)
org.opennms.integration.api.v1.collectors.CollectorRequestBuilder
withAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
org.opennms.integration.api.v1.collectors.CollectorRequestBuilder
withCollectorClassName(java.lang.String className)
org.opennms.integration.api.v1.collectors.CollectorRequestBuilder
withRequest(org.opennms.integration.api.v1.collectors.CollectionRequest request)
org.opennms.integration.api.v1.collectors.CollectorRequestBuilder
withTimeToLive(java.lang.Long ttlInMs)
-
-
-
Constructor Detail
-
CollectorRequestBuilderImpl
public CollectorRequestBuilderImpl(LocationAwareCollectorClient locationAwareCollectorClient, CollectionAgentFactory collectionAgentFactory, org.opennms.integration.api.v1.dao.NodeDao nodeDao)
-
-
Method Detail
-
withRequest
public org.opennms.integration.api.v1.collectors.CollectorRequestBuilder withRequest(org.opennms.integration.api.v1.collectors.CollectionRequest request)
- Specified by:
withRequest
in interfaceorg.opennms.integration.api.v1.collectors.CollectorRequestBuilder
-
withCollectorClassName
public org.opennms.integration.api.v1.collectors.CollectorRequestBuilder withCollectorClassName(java.lang.String className)
- Specified by:
withCollectorClassName
in interfaceorg.opennms.integration.api.v1.collectors.CollectorRequestBuilder
-
withTimeToLive
public org.opennms.integration.api.v1.collectors.CollectorRequestBuilder withTimeToLive(java.lang.Long ttlInMs)
- Specified by:
withTimeToLive
in interfaceorg.opennms.integration.api.v1.collectors.CollectorRequestBuilder
-
withAttribute
public org.opennms.integration.api.v1.collectors.CollectorRequestBuilder withAttribute(java.lang.String key, java.lang.Object value)
- Specified by:
withAttribute
in interfaceorg.opennms.integration.api.v1.collectors.CollectorRequestBuilder
-
withAttributes
public org.opennms.integration.api.v1.collectors.CollectorRequestBuilder withAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
- Specified by:
withAttributes
in interfaceorg.opennms.integration.api.v1.collectors.CollectorRequestBuilder
-
execute
public java.util.concurrent.CompletableFuture<org.opennms.integration.api.v1.collectors.CollectionSet> execute()
- Specified by:
execute
in interfaceorg.opennms.integration.api.v1.collectors.CollectorRequestBuilder
-
-