KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jmx > snmp > SnmpEngineFactory


1 /*
2  * @(#)file SnmpEngineFactory.java
3  * @(#)author Sun Microsystems, Inc.
4  * @(#)version 1.12
5  * @(#)date 08/02/09
6  *
7  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
8  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
9  *
10  */

11 package com.sun.jmx.snmp;
12
13 /**
14  * This <CODE>SnmpEngineFactory</CODE> is instantiating an <CODE>SnmpEngine</CODE> containing :
15  * <ul>
16  * <li> Message Processing Sub System + V1, V2 et V3 Message Processing Models</li>
17  * <li> Security Sub System + User based Security Model (Id 3)</li>
18  * <li> Access Control Sub System + Ip Acl + User based Access Control Model. See <CODE> IpAcl </CODE> and <CODE> UserAcl </CODE>.</li>
19  * </ul>
20  *
21  * <p><b>This API is a Sun Microsystems internal API and is subject
22  * to change without notice.</b></p>
23  * @since 1.5
24  */

25 public interface SnmpEngineFactory {
26     /**
27      * The engine instantiation method.
28      * @param p The parameters used to instantiate a new engine.
29      * @throws IllegalArgumentException Throwed if one of the configuration file file doesn't exist (Acl files, security file).
30      * @return The newly created SnmpEngine.
31      */

32     public SnmpEngine createEngine(SnmpEngineParameters p);
33     
34     /**
35      * The engine instantiation method.
36      * @param p The parameters used to instantiate a new engine.
37      * @param ipacl The Ip ACL to pass to the Access Control Model.
38      * @throws IllegalArgumentException Throwed if one of the configuration
39      * file file doesn't exist (Acl files, security file).
40      * @return The newly created SnmpEngine.
41      */

42     public SnmpEngine createEngine(SnmpEngineParameters p,
43                    InetAddressAcl ipacl);
44 }
45
Popular Tags