org.opennms.netmgt.config
Class SnmpConfigManager

java.lang.Object
  extended by org.opennms.netmgt.config.SnmpConfigManager

public class SnmpConfigManager
extends Object

This class handles merging a new Definition into the current running SNMP Configuration.

Author:
Constructor Summary
SnmpConfigManager(org.opennms.netmgt.config.snmp.SnmpConfig config)
           
 
Method Summary
protected  org.opennms.netmgt.config.MergeableDefinition findDefMatchingAttributes(org.opennms.netmgt.config.snmp.Definition eventDef)
          This method is used to find a definition with then current config that matches the attributes of a Definition.
 org.opennms.netmgt.config.snmp.SnmpConfig getConfig()
           
 void mergeIntoConfig(org.opennms.netmgt.config.snmp.Definition eventDef)
          This is the exposed method for moving the data from a configureSNMP event into the SnmpConfig from SnmpPeerFactory.
 void optimizeAllDefs()
          Optimize all definitions in the current configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpConfigManager

public SnmpConfigManager(org.opennms.netmgt.config.snmp.SnmpConfig config)
Method Detail

getConfig

public org.opennms.netmgt.config.snmp.SnmpConfig getConfig()

mergeIntoConfig

public void mergeIntoConfig(org.opennms.netmgt.config.snmp.Definition eventDef)
This is the exposed method for moving the data from a configureSNMP event into the SnmpConfig from SnmpPeerFactory.

Parameters:
config -

findDefMatchingAttributes

protected org.opennms.netmgt.config.MergeableDefinition findDefMatchingAttributes(org.opennms.netmgt.config.snmp.Definition eventDef)
This method is used to find a definition with then current config that matches the attributes of a Definition.

Parameters:
eventDef -
Returns:

optimizeAllDefs

public void optimizeAllDefs()
Optimize all definitions in the current configuration.



Copyright ? 2008. All Rights Reserved.