public class FactoryBasedSnmpConfigDao extends Object implements SnmpConfigDao, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
FactoryBasedSnmpConfigDao() |
Modifier and Type | Method and Description |
---|---|
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
|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
- if any.public SnmpAgentConfig getAgentConfig(InetAddress agentAddress)
getAgentConfig
getAgentConfig
in interface SnmpAgentConfigFactory
getAgentConfig
in interface SnmpConfigDao
agentAddress
- a InetAddress
object.SnmpAgentConfig
object.public SnmpConfiguration getDefaults()
getDefaults
getDefaults
in interface SnmpConfigDao
SnmpConfiguration
object.public void saveAsDefaults(SnmpConfiguration newDefaults)
saveAsDefaults
saveAsDefaults
in interface SnmpConfigDao
newDefaults
- a SnmpConfiguration
object.public void saveOrUpdate(SnmpAgentConfig newConfig)
saveOrUpdate
saveOrUpdate
in interface SnmpConfigDao
newConfig
- a SnmpAgentConfig
object.public void define(SnmpEventInfo info)
Copyright © 2015. All rights reserved.