Package org.opennms.netmgt.config.api
Interface SnmpAgentConfigFactory
-
- All Known Implementing Classes:
ProxySnmpAgentConfigFactory,SnmpPeerFactory
public interface SnmpAgentConfigFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SnmpAgentConfiggetAgentConfig(InetAddress address, String location)getAgentConfigSnmpAgentConfiggetAgentConfigFromProfile(SnmpProfile snmpProfile, InetAddress address)getAgentConfig for a given profileList<SnmpProfile>getProfiles()Get all the SNMP profiles from SNMP Config.booleanremoveFromDefinition(InetAddress ipAddress, String location, String module)Remove an address from the definitions.voidsaveAgentConfigAsDefinition(SnmpAgentConfig snmpAgentConfig, String location, String module)Create definition and merge this definition into Current SNMP Config.voidsaveDefinition(Definition definition)Merge this definition into current config.
-
-
-
Method Detail
-
getAgentConfig
SnmpAgentConfig getAgentConfig(InetAddress address, String location)
getAgentConfig
- Parameters:
address- aInetAddressobject.location- aStringobject.- Returns:
- a
SnmpAgentConfigobject.
-
getAgentConfigFromProfile
SnmpAgentConfig getAgentConfigFromProfile(SnmpProfile snmpProfile, InetAddress address)
getAgentConfig for a given profile
- Parameters:
snmpProfile- a @Definitionobject.address- aInetAddressobject.- Returns:
- a
SnmpAgentConfigobject.
-
saveDefinition
void saveDefinition(Definition definition)
Merge this definition into current config.- Parameters:
definition- Definition that has SNMP parameters associated with a specific IP address or Range.
-
removeFromDefinition
boolean removeFromDefinition(InetAddress ipAddress, String location, String module)
Remove an address from the definitions.- Parameters:
ipAddress- IP address that needs to be removed from definition.location- location at which this ipaddress belongs.module- module from which the definition is getting removed.
-
saveAgentConfigAsDefinition
void saveAgentConfigAsDefinition(SnmpAgentConfig snmpAgentConfig, String location, String module)
Create definition and merge this definition into Current SNMP Config.- Parameters:
snmpAgentConfig- agentConfig that might have succeeded in SNMP walk/get.location- the location that this agent config belongs.module- module from which the definition is getting saved.
-
getProfiles
List<SnmpProfile> getProfiles()
Get all the SNMP profiles from SNMP Config.- Returns:
- a List of snmp profiles.
-
-