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 java.lang.Object implements SNMPRequestBuilder<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractSNMPRequestBuilder(LocationAwareSnmpClientRpcImpl client, SnmpAgentConfig agent, java.util.List<SnmpGetRequestDTO> gets, java.util.List<SnmpWalkRequestDTO> walks)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<T>
execute()
protected abstract T
processResponse(SnmpMultiResponseDTO response)
SNMPRequestBuilder<T>
withDescription(java.lang.String description)
SNMPRequestBuilder<T>
withLocation(java.lang.String location)
SNMPRequestBuilder<T>
withSystemId(java.lang.String systemId)
SNMPRequestBuilder<T>
withTimeToLive(long duration, java.util.concurrent.TimeUnit unit)
SNMPRequestBuilder<T>
withTimeToLive(java.lang.Long ttlInMs)
-
-
-
Constructor Detail
-
AbstractSNMPRequestBuilder
public AbstractSNMPRequestBuilder(LocationAwareSnmpClientRpcImpl client, SnmpAgentConfig agent, java.util.List<SnmpGetRequestDTO> gets, java.util.List<SnmpWalkRequestDTO> walks)
-
-
Method Detail
-
withLocation
public SNMPRequestBuilder<T> withLocation(java.lang.String location)
- Specified by:
withLocation
in interfaceSNMPRequestBuilder<T>
-
withSystemId
public SNMPRequestBuilder<T> withSystemId(java.lang.String systemId)
- Specified by:
withSystemId
in interfaceSNMPRequestBuilder<T>
-
withDescription
public SNMPRequestBuilder<T> withDescription(java.lang.String description)
- Specified by:
withDescription
in interfaceSNMPRequestBuilder<T>
-
withTimeToLive
public SNMPRequestBuilder<T> withTimeToLive(java.lang.Long ttlInMs)
- Specified by:
withTimeToLive
in interfaceSNMPRequestBuilder<T>
-
withTimeToLive
public SNMPRequestBuilder<T> withTimeToLive(long duration, java.util.concurrent.TimeUnit unit)
- Specified by:
withTimeToLive
in interfaceSNMPRequestBuilder<T>
-
execute
public java.util.concurrent.CompletableFuture<T> execute()
- Specified by:
execute
in interfaceSNMPRequestBuilder<T>
-
processResponse
protected abstract T processResponse(SnmpMultiResponseDTO response)
-
-