| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
RemoteConsole
A remote console listens on a port for a remote login to a running Juno system server.
| Field Summary | 
| Fields inherited from class java.lang.Thread | 
| MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY | 
| Constructor Summary | |
| RemoteConsole(Juno system,
              boolean echo,
              int port)Construct a remote console to listen for users trying to connect to Juno. | |
| RemoteConsole(Juno system,
              boolean echo,
              Socket clientSocket,
              PrintWriter junoLog,
              int sessionCount)Construct a remote console for a single remote user. | |
| Method Summary | |
|  void | errPrintln(String str)Write a String followed by a newline to console error output location. | 
|  boolean | isEchoInput()Query what kind of console this is. | 
|  boolean | isGUI()Query what kind of console this is. | 
|  boolean | isRemote()Query what kind of console this is. | 
|  void | print(String str)Write a String to console socket. | 
|  void | println(String str)Write a String followed by a newline to console socket. | 
|  String | readLine(String promptString)Read a line (terminated by a newline) from console socket. | 
|  void | run()Action when the thread for this session starts. | 
| Methods inherited from class java.lang.Thread | 
| activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public RemoteConsole(Juno system,
                     boolean echo,
                     int port)
system - the Juno system setting up this console.echo - whether or not input should be echoed.port - the port on which to listen for requests.
public RemoteConsole(Juno system,
                     boolean echo,
                     Socket clientSocket,
                     PrintWriter junoLog,
                     int sessionCount)
system - the Juno system to which the user is connecting.echo - whether or not input should be echoed.clientSocket - the socket for the user's connectionjunoLog - track all user i/osessionCount - this session's number| Method Detail | 
public void errPrintln(String str)
errPrintln in interface OutputInterfacestr - - the String to writepublic boolean isEchoInput()
isEchoInput in interface OutputInterfacepublic boolean isGUI()
isGUI in interface OutputInterfacepublic boolean isRemote()
isRemote in interface OutputInterfacepublic void print(String str)
str - - the string to writepublic void println(String str)
println in interface OutputInterfacestr - - the string to writepublic String readLine(String promptString)
readLine in interface InputInterfacepromptString - output string to prompt for input
public void run()
run in interface Runnable| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||