edu.rice.cs.drjava
Class RemoteControlServer.RCServerThread
java.lang.Object
java.lang.Thread
edu.rice.cs.drjava.RemoteControlServer.RCServerThread
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- RemoteControlServer
public static class RemoteControlServer.RCServerThread
- extends Thread
Thread class for the server.
Method Summary |
protected void |
finalize()
|
void |
run()
Main method of the thread. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
_frame
protected MainFrame _frame
- Main frame access so the server can open files, etc.
socket
protected DatagramSocket socket
- Socket used.
RemoteControlServer.RCServerThread
public RemoteControlServer.RCServerThread(MainFrame frame)
throws IOException
- Create a new server thread.
- Parameters:
frame
- main frame
- Throws:
IOException
RemoteControlServer.RCServerThread
public RemoteControlServer.RCServerThread(String name,
MainFrame frame)
throws IOException
- Create a new server thread with a specified name.
- Parameters:
name
- thread nameframe
- main frame
- Throws:
IOException
run
public void run()
- Main method of the thread. It loops indefinitely, waiting for queries.
Since this is a daemon thread, it will get shut down at the end.
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
finalize
protected void finalize()
- Overrides:
finalize
in class Object