Package de.mud.jta.event

Examples of de.mud.jta.event.OnlineStatus


    } catch (Exception e) {
      error = "Sorry, Could not connect to: "+host+" "+port + "\r\n" +
              "Reason: " + e + "\r\n\r\n";
      error("can't connect: " + e);
    }
    bus.broadcast(new OnlineStatus(true));
  }
View Full Code Here


  }

  /** Disconnect the socket and close the connection. */
  public void disconnect() throws IOException {
    if (debug > 0) error("disconnect()");
    bus.broadcast(new OnlineStatus(false));
    if (socket != null) {
      socket.close();
      in = null;
      out = null;
    }
View Full Code Here

  // XXX Add try around here to catch missing DLL/.so.
  pty = new HandlerPTY();

        if(pty.start(shellCommand) == 0) {
    bus.broadcast(new OnlineStatus(true));
        } else {
    bus.broadcast(new OnlineStatus(false));
        }
      }
      public void disconnect() {
        bus.broadcast(new OnlineStatus(false));
        pty = null;
      }
    });
  }
View Full Code Here

TOP

Related Classes of de.mud.jta.event.OnlineStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.