⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 startscript.java

📁 一个类似于openJMS分布在ObjectWeb之下的JMS消息中间件。
💻 JAVA
字号:
/* * Copyright (C) 2001 - 2004 ScalAgent Distributed Technologies * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or any later version. *  * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. *  * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 * USA. * * Initial developer(s): ScalAgent Distributed Technologies * Contributor(s): */package fr.dyade.aaa.admin.script;import java.lang.*;import java.io.*;import java.util.*;import fr.dyade.aaa.admin.cmd.*;import fr.dyade.aaa.agent.conf.*;/** * StartScript contain a StartAdminCmd vector and a ServerDesc hashtable. * It permits to start networks, servers and services. * * @see fr.dyade.aaa.agent.AgentAdmin * @see fr.dyade.aaa.agent.AgentServer * @see StartAdminCmd * @see A3CMLConfig * @see fr.dyade.aaa.agent.ServerDesc */public class StartScript implements Serializable {  /** vector of StartAdminCmd */  private Vector commands = null;  /** hashtable of server description */  public Hashtable serverDesc = null; /**  * StartScript  *  * @see AgentAdmin  */  public StartScript() {    commands = new Vector();    serverDesc = new Hashtable();  }  public void add(StartAdminCmd cmd) {    commands.addElement(cmd);  }  public boolean remove(StartAdminCmd cmd) {    return commands.removeElement(cmd);  }  public boolean contains(StartAdminCmd cmd) {    return commands.contains(cmd);  }  public Enumeration elements() {    return commands.elements();  }  public int size() {    return commands.size();  }  public Object elementAt(int i)     throws ArrayIndexOutOfBoundsException {    return commands.elementAt(i);  }  public String toString() {    StringBuffer strBuf = new StringBuffer();    strBuf.append(getClass().getName());    strBuf.append("@");    strBuf.append(Integer.toHexString(hashCode()));    strBuf.append("(commands=");    strBuf.append(commands);    strBuf.append(",serverDesc=");    strBuf.append(serverDesc);    strBuf.append(")");    return strBuf.toString();  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -