1 package net.sf.snmpadaptor4j;
2
3 import java.util.Map;
4 import javax.management.ObjectName;
5
6 /**
7 * Objects containing the context of an application.
8 * <p>
9 * SnmpAdaptor4j may be used by an application server. In this case you will inform the SNMP adapter to each deployment of a new application.
10 * </p>
11 * @author <a href="http://fr.linkedin.com/in/jpminetti/">Jean-Philippe MINETTI</a>
12 */
13 public interface SnmpAppContext {
14
15 /**
16 * Returns the default root OID containing the attributes of the application.
17 * @return Default root OID.
18 */
19 String getDefaultRootOid ();
20
21 /**
22 * Returns the map of root OIDs where the attributes of the application will stay.
23 * @return Map of root OIDs (never <code>NULL</code> but can be empty).
24 */
25 Map<String, String> getRootOidMap ();
26
27 /**
28 * Returns the map of MBean OIDs.
29 * @return Map of MBean OIDs (never <code>NULL</code> but can be empty).
30 */
31 Map<ObjectName, String> getMBeanOidMap ();
32
33 }