Search in sources :

Example 1 with DefaultSnmpConfigurationFactory

use of com.btisystems.pronx.ems.core.snmp.DefaultSnmpConfigurationFactory in project onos by opennetworkinglab.

the class DefaultSnmpController method activate.

@Activate
public void activate(ComponentContext context) {
    factoryMap = Maps.newHashMap();
    factoryMap.put(SnmpConstants.version2c, new SnmpSessionFactory(new DefaultSnmpConfigurationFactory(new V2cSnmpConfiguration())));
    factoryMap.put(SnmpConstants.version3, new SnmpSessionFactory(new DefaultSnmpConfigurationFactory(new V3SnmpConfiguration())));
    log.info("Started");
}
Also used : ISnmpSessionFactory(com.btisystems.pronx.ems.core.snmp.ISnmpSessionFactory) SnmpSessionFactory(com.btisystems.pronx.ems.core.snmp.SnmpSessionFactory) DefaultSnmpConfigurationFactory(com.btisystems.pronx.ems.core.snmp.DefaultSnmpConfigurationFactory) V2cSnmpConfiguration(com.btisystems.pronx.ems.core.snmp.V2cSnmpConfiguration) Activate(org.osgi.service.component.annotations.Activate)

Aggregations

DefaultSnmpConfigurationFactory (com.btisystems.pronx.ems.core.snmp.DefaultSnmpConfigurationFactory)1 ISnmpSessionFactory (com.btisystems.pronx.ems.core.snmp.ISnmpSessionFactory)1 SnmpSessionFactory (com.btisystems.pronx.ems.core.snmp.SnmpSessionFactory)1 V2cSnmpConfiguration (com.btisystems.pronx.ems.core.snmp.V2cSnmpConfiguration)1 Activate (org.osgi.service.component.annotations.Activate)1