Example #1
0
  /**
   * Start
   *
   * @exception Throwable Thrown if an error occurs
   */
  public void start() throws Throwable {
    if (eis != null) eis.stop();

    eis = new EISServer(hostName, port, maxConnections);
    eis.start();

    Thread t = new Thread(eis);
    t.start();
  }
Example #2
0
  /**
   * Stop
   *
   * @exception Throwable Thrown if an error occurs
   */
  public void stop() throws Throwable {
    if (eis != null) eis.stop();

    eis = null;
  }