Class AbstractSNMPRequestBuilder<T>
- java.lang.Object
-
- org.opennms.netmgt.snmp.proxy.common.AbstractSNMPRequestBuilder<T>
-
- All Implemented Interfaces:
SNMPRequestBuilder<T>
- Direct Known Subclasses:
SNMPMultiGetBuilder
,SNMPSingleGetBuilder
,SNMPWalkBuilder
,SNMPWalkWithTrackerBuilder
public abstract class AbstractSNMPRequestBuilder<T> extends Object implements SNMPRequestBuilder<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractSNMPRequestBuilder(LocationAwareSnmpClientRpcImpl client, SnmpAgentConfig agent, List<SnmpGetRequestDTO> gets, List<SnmpWalkRequestDTO> walks)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CompletableFuture<T>
execute()
protected abstract T
processResponse(SnmpMultiResponseDTO response)
SNMPRequestBuilder<T>
withDescription(String description)
SNMPRequestBuilder<T>
withLocation(String location)
SNMPRequestBuilder<T>
withSystemId(String systemId)
SNMPRequestBuilder<T>
withTimeToLive(long duration, TimeUnit unit)
SNMPRequestBuilder<T>
withTimeToLive(Long ttlInMs)
-
-
-
Constructor Detail
-
AbstractSNMPRequestBuilder
public AbstractSNMPRequestBuilder(LocationAwareSnmpClientRpcImpl client, SnmpAgentConfig agent, List<SnmpGetRequestDTO> gets, List<SnmpWalkRequestDTO> walks)
-
-
Method Detail
-
withLocation
public SNMPRequestBuilder<T> withLocation(String location)
- Specified by:
withLocation
in interfaceSNMPRequestBuilder<T>
-
withSystemId
public SNMPRequestBuilder<T> withSystemId(String systemId)
- Specified by:
withSystemId
in interfaceSNMPRequestBuilder<T>
-
withDescription
public SNMPRequestBuilder<T> withDescription(String description)
- Specified by:
withDescription
in interfaceSNMPRequestBuilder<T>
-
withTimeToLive
public SNMPRequestBuilder<T> withTimeToLive(Long ttlInMs)
- Specified by:
withTimeToLive
in interfaceSNMPRequestBuilder<T>
-
withTimeToLive
public SNMPRequestBuilder<T> withTimeToLive(long duration, TimeUnit unit)
- Specified by:
withTimeToLive
in interfaceSNMPRequestBuilder<T>
-
execute
public CompletableFuture<T> execute()
- Specified by:
execute
in interfaceSNMPRequestBuilder<T>
-
processResponse
protected abstract T processResponse(SnmpMultiResponseDTO response)
-
-