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 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 CompletableFuture<org.opennms.integration.api.v1.collectors.CollectionSet>
execute()
org.opennms.integration.api.v1.collectors.CollectorRequestBuilder
withAttribute(String key, Object value)
org.opennms.integration.api.v1.collectors.CollectorRequestBuilder
withAttributes(Map<String,Object> attributes)
org.opennms.integration.api.v1.collectors.CollectorRequestBuilder
withCollectorClassName(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(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(String className)
- Specified by:
withCollectorClassName
in interfaceorg.opennms.integration.api.v1.collectors.CollectorRequestBuilder
-
withTimeToLive
public org.opennms.integration.api.v1.collectors.CollectorRequestBuilder withTimeToLive(Long ttlInMs)
- Specified by:
withTimeToLive
in interfaceorg.opennms.integration.api.v1.collectors.CollectorRequestBuilder
-
withAttribute
public org.opennms.integration.api.v1.collectors.CollectorRequestBuilder withAttribute(String key, Object value)
- Specified by:
withAttribute
in interfaceorg.opennms.integration.api.v1.collectors.CollectorRequestBuilder
-
withAttributes
public org.opennms.integration.api.v1.collectors.CollectorRequestBuilder withAttributes(Map<String,Object> attributes)
- Specified by:
withAttributes
in interfaceorg.opennms.integration.api.v1.collectors.CollectorRequestBuilder
-
execute
public CompletableFuture<org.opennms.integration.api.v1.collectors.CollectionSet> execute()
- Specified by:
execute
in interfaceorg.opennms.integration.api.v1.collectors.CollectorRequestBuilder
-
-