コード例 #1
0
 public void stopAll() {
   try {
     stopAllInner();
   } catch (Throwable t) {
     Globals.onException(t);
   }
 }
コード例 #2
0
  public void spawn(
      int processes,
      int maxHeap,
      String frameworkCode,
      ArrayList<ServerInfo> logins,
      String[] args) {

    try {
      for (int i = 0; i < processes; i++) {
        int termPort = 44445 + i;
        Params.setTerminationPort(args, termPort);
        spawnInner(processes, i, maxHeap, frameworkCode, logins, args, termPort);
      }

      iActiveServers = processes;
      this.logins = logins;
    } catch (Exception e) {
      Globals.onException(e);
    }
  }