1 package net.sf.snmpadaptor4j.api;
2
3 import java.net.InetAddress;
4
5 /**
6 * Factory of facades to SNMP API.
7 * @author <a href="http://fr.linkedin.com/in/jpminetti/">Jean-Philippe MINETTI</a>
8 */
9 public interface SnmpApiFactory {
10
11 /**
12 * Creates and returns a new instance of SNMP daemon.
13 * @param configuration Configuration settings of SNMP daemon.
14 * @param snmpMib SNMP <b>M</b>anagement <b>I</b>nformation <b>B</b>ase (MIB).
15 * @return New instance of SNMP daemon.
16 */
17 SnmpDaemon newSnmpDaemon (SnmpDaemonConfiguration configuration, SnmpMib snmpMib);
18
19 /**
20 * Creates and returns a new instance of SNMP trap sender.
21 * @param agentAddress IP address of SNMP agent (must be a local address of the host).
22 * @param managerAddress IP address of SNMP manager responsible of traps handling.
23 * @param managerPort UDP port of SNMP manager responsible of traps handling.
24 * @param managerVersion Protocol version of SNMP manager.
25 * @param managerCommunity Community of SNMP manager.
26 * @return New instance of SNMP trap sender.
27 */
28 SnmpTrapSender newSnmpTrapSender (InetAddress agentAddress, String managerAddress, int managerPort, int managerVersion, String managerCommunity);
29
30 }