Class LocationAwareSnmpClientRpcImpl
- java.lang.Object
-
- org.opennms.netmgt.snmp.proxy.common.LocationAwareSnmpClientRpcImpl
-
- All Implemented Interfaces:
LocationAwareSnmpClient
,org.springframework.beans.factory.InitializingBean
public class LocationAwareSnmpClientRpcImpl extends Object implements LocationAwareSnmpClient, org.springframework.beans.factory.InitializingBean
Location-aware SNMP client that builds aSnmpRequestDTO
and delegates the request to either a local, or a remote @{link SnmpRequestExecutor}.- Author:
- jwhite
-
-
Constructor Summary
Constructors Constructor Description LocationAwareSnmpClientRpcImpl()
LocationAwareSnmpClientRpcImpl(RpcClientFactory rpcClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
CompletableFuture<SnmpMultiResponseDTO>
execute(SnmpRequestDTO request)
SNMPRequestBuilder<SnmpValue>
get(SnmpAgentConfig agent, String oid)
SNMPRequestBuilder<List<SnmpValue>>
get(SnmpAgentConfig agent, String... oids)
SNMPRequestBuilder<List<SnmpValue>>
get(SnmpAgentConfig agent, List<SnmpObjId> oids)
SNMPRequestBuilder<SnmpValue>
get(SnmpAgentConfig agent, SnmpObjId oid)
SNMPRequestBuilder<List<SnmpValue>>
get(SnmpAgentConfig agent, SnmpObjId... oids)
SNMPRequestBuilder<List<SnmpResult>>
walk(SnmpAgentConfig agent, String... oids)
SNMPRequestBuilder<List<SnmpResult>>
walk(SnmpAgentConfig agent, List<SnmpObjId> oids)
SNMPRequestBuilder<CollectionTracker>
walk(SnmpAgentConfig agent, CollectionTracker tracker)
SNMPRequestBuilder<List<SnmpResult>>
walk(SnmpAgentConfig agent, SnmpObjId... oids)
-
-
-
Constructor Detail
-
LocationAwareSnmpClientRpcImpl
public LocationAwareSnmpClientRpcImpl()
-
LocationAwareSnmpClientRpcImpl
public LocationAwareSnmpClientRpcImpl(RpcClientFactory rpcClientFactory)
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
walk
public SNMPRequestBuilder<List<SnmpResult>> walk(SnmpAgentConfig agent, String... oids)
- Specified by:
walk
in interfaceLocationAwareSnmpClient
-
walk
public SNMPRequestBuilder<List<SnmpResult>> walk(SnmpAgentConfig agent, SnmpObjId... oids)
- Specified by:
walk
in interfaceLocationAwareSnmpClient
-
walk
public SNMPRequestBuilder<List<SnmpResult>> walk(SnmpAgentConfig agent, List<SnmpObjId> oids)
- Specified by:
walk
in interfaceLocationAwareSnmpClient
-
walk
public SNMPRequestBuilder<CollectionTracker> walk(SnmpAgentConfig agent, CollectionTracker tracker)
- Specified by:
walk
in interfaceLocationAwareSnmpClient
-
get
public SNMPRequestBuilder<SnmpValue> get(SnmpAgentConfig agent, String oid)
- Specified by:
get
in interfaceLocationAwareSnmpClient
-
get
public SNMPRequestBuilder<SnmpValue> get(SnmpAgentConfig agent, SnmpObjId oid)
- Specified by:
get
in interfaceLocationAwareSnmpClient
-
get
public SNMPRequestBuilder<List<SnmpValue>> get(SnmpAgentConfig agent, String... oids)
- Specified by:
get
in interfaceLocationAwareSnmpClient
-
get
public SNMPRequestBuilder<List<SnmpValue>> get(SnmpAgentConfig agent, SnmpObjId... oids)
- Specified by:
get
in interfaceLocationAwareSnmpClient
-
get
public SNMPRequestBuilder<List<SnmpValue>> get(SnmpAgentConfig agent, List<SnmpObjId> oids)
- Specified by:
get
in interfaceLocationAwareSnmpClient
-
execute
public CompletableFuture<SnmpMultiResponseDTO> execute(SnmpRequestDTO request)
-
-