1 22 package fr.dyade.aaa.admin.script; 23 24 import java.lang.*; 25 import java.io.*; 26 import java.util.*; 27 import fr.dyade.aaa.admin.cmd.*; 28 import fr.dyade.aaa.agent.conf.*; 29 30 40 public class StartScript implements Serializable { 41 42 private Vector commands = null; 43 44 public Hashtable serverDesc = null; 45 46 51 public StartScript() { 52 commands = new Vector(); 53 serverDesc = new Hashtable(); 54 } 55 56 public void add(StartAdminCmd cmd) { 57 commands.addElement(cmd); 58 } 59 60 public boolean remove(StartAdminCmd cmd) { 61 return commands.removeElement(cmd); 62 } 63 64 public boolean contains(StartAdminCmd cmd) { 65 return commands.contains(cmd); 66 } 67 68 public Enumeration elements() { 69 return commands.elements(); 70 } 71 72 public int size() { 73 return commands.size(); 74 } 75 76 public Object elementAt(int i) 77 throws ArrayIndexOutOfBoundsException { 78 return commands.elementAt(i); 79 } 80 81 public String toString() { 82 StringBuffer strBuf = new StringBuffer (); 83 strBuf.append(getClass().getName()); 84 strBuf.append("@"); 85 strBuf.append(Integer.toHexString(hashCode())); 86 strBuf.append("(commands="); 87 strBuf.append(commands); 88 strBuf.append(",serverDesc="); 89 strBuf.append(serverDesc); 90 strBuf.append(")"); 91 return strBuf.toString(); 92 } 93 94 } 95 | Popular Tags |