1 7 package org.jboss.jms.serverless; 8 9 import java.io.Serializable ; 10 import java.util.List ; 11 import java.util.ArrayList ; 12 13 20 class ServerAdminCommand implements Serializable { 21 22 static final long serialVersionUID = 33480310721131848L; 23 24 public static final String ADD_QUEUE_RECEIVER = "ADD_QUEUE_RECEIVER"; 25 public static final String REMOVE_QUEUE_RECEIVER = "REMOVE_QUEUE_RECEIVER"; 26 27 private String comm; 28 private List args; 29 30 public ServerAdminCommand(String comm, List args) { 31 this.comm = comm; 32 this.args = args; 33 } 34 35 public ServerAdminCommand(String comm, String arg1, String arg2, String arg3) { 36 this(comm, new ArrayList ()); 37 args.add(arg1); 38 args.add(arg2); 39 args.add(arg3); 40 } 41 42 public String getCommand() { 43 return comm; 44 } 45 46 public Object get(int i) { 47 return args.get(i); 48 } 49 50 } 51 | Popular Tags |