public class SnmpProfileMapperImpl extends Object implements SnmpProfileMapper
Constructor and Description |
---|
SnmpProfileMapperImpl() |
SnmpProfileMapperImpl(FilterDao filterDao,
SnmpAgentConfigFactory agentConfigFactory,
LocationAwareSnmpClient locationAwareSnmpClient) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Optional<SnmpAgentConfig>> |
fitProfile(String profileLabel,
InetAddress inetAddress,
String location,
String oid)
Fit a profile with specified IP address and label.
|
SnmpAgentConfigFactory |
getAgentConfigFactory() |
CompletableFuture<Optional<SnmpAgentConfig>> |
getAgentConfigFromProfiles(InetAddress inetAddress,
String location)
Get @
SnmpAgentConfig from SNMP profiles. |
CompletableFuture<Optional<SnmpAgentConfig>> |
getAgentConfigFromProfiles(InetAddress inetAddress,
String location,
String oid)
Get @
SnmpAgentConfig from SNMP profiles. |
FilterDao |
getFilterDao() |
void |
setAgentConfigFactory(SnmpAgentConfigFactory agentConfigFactory) |
void |
setFilterDao(FilterDao filterDao) |
void |
setLocationAwareSnmpClient(LocationAwareSnmpClient locationAwareSnmpClient) |
public SnmpProfileMapperImpl()
public SnmpProfileMapperImpl(FilterDao filterDao, SnmpAgentConfigFactory agentConfigFactory, LocationAwareSnmpClient locationAwareSnmpClient)
public CompletableFuture<Optional<SnmpAgentConfig>> getAgentConfigFromProfiles(InetAddress inetAddress, String location, String oid)
SnmpProfileMapper
SnmpAgentConfig
from SNMP profiles.getAgentConfigFromProfiles
in interface SnmpProfileMapper
inetAddress
- IP address for which agent config need to be retrieved.location
- location of Ip address.oid
- OID with which SNMP get needs to be performed.SnmpAgentConfig
from the matching profile.public CompletableFuture<Optional<SnmpAgentConfig>> getAgentConfigFromProfiles(InetAddress inetAddress, String location)
SnmpProfileMapper
SnmpAgentConfig
from SNMP profiles.getAgentConfigFromProfiles
in interface SnmpProfileMapper
inetAddress
- IP address for which agent config need to be retrieved.location
- location of IP address.SnmpAgentConfig
from the matching profile.public CompletableFuture<Optional<SnmpAgentConfig>> fitProfile(String profileLabel, InetAddress inetAddress, String location, String oid)
SnmpProfileMapper
fitProfile
in interface SnmpProfileMapper
profileLabel
- label of profile with which SNMP profile will be retrieved.inetAddress
- IP address that needs fitting.location
- location of IP address.oid
- OID with which SNMP get needs to be performedSnmpAgentConfig
from the matching profile.public void setLocationAwareSnmpClient(LocationAwareSnmpClient locationAwareSnmpClient)
public SnmpAgentConfigFactory getAgentConfigFactory()
public void setAgentConfigFactory(SnmpAgentConfigFactory agentConfigFactory)
public FilterDao getFilterDao()
public void setFilterDao(FilterDao filterDao)
Copyright © 2020. All rights reserved.