net.sf.snmpadaptor4j.api.opennms
Class OpennmsSnmpApiFactory

java.lang.Object
  extended by net.sf.snmpadaptor4j.api.opennms.OpennmsSnmpApiFactory
All Implemented Interfaces:
SnmpApiFactory

public final class OpennmsSnmpApiFactory
extends Object
implements SnmpApiFactory

Factory of facades to joesnmp API.

Author:
Jean-Philippe MINETTI

Constructor Summary
OpennmsSnmpApiFactory()
          Constructor.
 
Method Summary
 SnmpDaemon newSnmpDaemon(SnmpDaemonConfiguration configuration, SnmpMib snmpMib)
          Creates and returns a new instance of SNMP daemon.
 SnmpTrapSender newSnmpTrapSender(InetAddress agentAddress, String managerAddress, int managerPort, int managerVersion, String managerCommunity)
          Creates and returns a new instance of SNMP trap sender.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpennmsSnmpApiFactory

public OpennmsSnmpApiFactory()
Constructor.

Method Detail

newSnmpDaemon

public SnmpDaemon newSnmpDaemon(SnmpDaemonConfiguration configuration,
                                SnmpMib snmpMib)
Description copied from interface: SnmpApiFactory
Creates and returns a new instance of SNMP daemon.

Specified by:
newSnmpDaemon in interface SnmpApiFactory
Parameters:
configuration - Configuration settings of SNMP daemon.
snmpMib - SNMP Management Information Base (MIB).
Returns:
New instance of SNMP daemon.

newSnmpTrapSender

public SnmpTrapSender newSnmpTrapSender(InetAddress agentAddress,
                                        String managerAddress,
                                        int managerPort,
                                        int managerVersion,
                                        String managerCommunity)
Description copied from interface: SnmpApiFactory
Creates and returns a new instance of SNMP trap sender.

Specified by:
newSnmpTrapSender in interface SnmpApiFactory
Parameters:
agentAddress - IP address of SNMP agent (must be a local address of the host).
managerAddress - IP address of SNMP manager responsible of traps handling.
managerPort - UDP port of SNMP manager responsible of traps handling.
managerVersion - Protocol version of SNMP manager.
managerCommunity - Community of SNMP manager.
Returns:
New instance of SNMP trap sender.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012-2013 snmpAdaptor4j. All Rights Reserved.