KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > serverless > ServerAdminCommand


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.jms.serverless;
8
9 import java.io.Serializable JavaDoc;
10 import java.util.List JavaDoc;
11 import java.util.ArrayList JavaDoc;
12
13 /**
14  * TO_DO: change the name to GroupStateChange ?
15  *
16  * @author Ovidiu Feodorov <ovidiu@jboss.org>
17  * @version $Revision: 1.1 $ $Date: 2004/04/15 22:54:19 $
18  *
19  **/

20 class ServerAdminCommand implements Serializable JavaDoc {
21
22     static final long serialVersionUID = 33480310721131848L;
23
24     public static final String JavaDoc ADD_QUEUE_RECEIVER = "ADD_QUEUE_RECEIVER";
25     public static final String JavaDoc REMOVE_QUEUE_RECEIVER = "REMOVE_QUEUE_RECEIVER";
26
27     private String JavaDoc comm;
28     private List JavaDoc args;
29
30     public ServerAdminCommand(String JavaDoc comm, List JavaDoc args) {
31         this.comm = comm;
32         this.args = args;
33     }
34
35     public ServerAdminCommand(String JavaDoc comm, String JavaDoc arg1, String JavaDoc arg2, String JavaDoc arg3) {
36         this(comm, new ArrayList JavaDoc());
37         args.add(arg1);
38         args.add(arg2);
39         args.add(arg3);
40     }
41
42     public String JavaDoc getCommand() {
43         return comm;
44     }
45
46     public Object JavaDoc get(int i) {
47         return args.get(i);
48     }
49
50 }
51
Popular Tags