org.opennms.netmgt.dao
Class FactoryBasedSnmpConfigDao

java.lang.Object
  extended by org.opennms.netmgt.dao.FactoryBasedSnmpConfigDao
All Implemented Interfaces:
SnmpAgentConfigFactory, SnmpConfigDao, org.springframework.beans.factory.InitializingBean

public class FactoryBasedSnmpConfigDao
extends Object
implements SnmpConfigDao, org.springframework.beans.factory.InitializingBean

DefaultSnmpConfigDao

Version:
$Id: $
Author:
brozow

Constructor Summary
FactoryBasedSnmpConfigDao()
           
 
Method Summary
 void afterPropertiesSet()
          afterPropertiesSet
 void define(SnmpEventInfo info)
           
 SnmpAgentConfig getAgentConfig(InetAddress agentAddress)
          getAgentConfig
 SnmpConfiguration getDefaults()
          getDefaults
 void saveAsDefaults(SnmpConfiguration newDefaults)
          saveAsDefaults
 void saveOrUpdate(SnmpAgentConfig newConfig)
          saveOrUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryBasedSnmpConfigDao

public FactoryBasedSnmpConfigDao()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception

afterPropertiesSet

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception - if any.

getAgentConfig

public SnmpAgentConfig getAgentConfig(InetAddress agentAddress)

getAgentConfig

Specified by:
getAgentConfig in interface SnmpAgentConfigFactory
Specified by:
getAgentConfig in interface SnmpConfigDao
Parameters:
agentAddress - a InetAddress object.
Returns:
a SnmpAgentConfig object.

getDefaults

public SnmpConfiguration getDefaults()

getDefaults

Specified by:
getDefaults in interface SnmpConfigDao
Returns:
a SnmpConfiguration object.

saveAsDefaults

public void saveAsDefaults(SnmpConfiguration newDefaults)

saveAsDefaults

Specified by:
saveAsDefaults in interface SnmpConfigDao
Parameters:
newDefaults - a SnmpConfiguration object.

saveOrUpdate

public void saveOrUpdate(SnmpAgentConfig newConfig)

saveOrUpdate

Specified by:
saveOrUpdate in interface SnmpConfigDao
Parameters:
newConfig - a SnmpAgentConfig object.

define

public void define(SnmpEventInfo info)


Copyright © 2011. All Rights Reserved.