Package org.opennms.netmgt.snmp
Interface SnmpProfileMapper
-
- All Known Implementing Classes:
SnmpProfileMapperImpl
public interface SnmpProfileMapper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Optional<SnmpAgentConfig>>fitProfile(String label, InetAddress inetAddress, String location, String oid)Fit a profile with specified IP address and label.CompletableFuture<Optional<SnmpAgentConfig>>getAgentConfigFromProfiles(InetAddress inetAddress, String location)Get @SnmpAgentConfigfrom SNMP profiles.CompletableFuture<Optional<SnmpAgentConfig>>getAgentConfigFromProfiles(InetAddress inetAddress, String location, String oid)Get @SnmpAgentConfigfrom SNMP profiles.
-
-
-
Method Detail
-
getAgentConfigFromProfiles
CompletableFuture<Optional<SnmpAgentConfig>> getAgentConfigFromProfiles(InetAddress inetAddress, String location, String oid)
Get @SnmpAgentConfigfrom SNMP profiles.- Parameters:
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.- Returns:
- snmpAgentConfig, a @
SnmpAgentConfigfrom the matching profile.
-
getAgentConfigFromProfiles
CompletableFuture<Optional<SnmpAgentConfig>> getAgentConfigFromProfiles(InetAddress inetAddress, String location)
Get @SnmpAgentConfigfrom SNMP profiles.- Parameters:
inetAddress- IP address for which agent config need to be retrieved.location- location of IP address.- Returns:
- snmpAgentConfig, a @
SnmpAgentConfigfrom the matching profile.
-
fitProfile
CompletableFuture<Optional<SnmpAgentConfig>> fitProfile(String label, InetAddress inetAddress, String location, String oid)
Fit a profile with specified IP address and label. If no label is specified, it will try to find first matching profile.- Parameters:
label- 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 performed- Returns:
- snmpAgentConfig, a @
SnmpAgentConfigfrom the matching profile.
-
-