| java.lang.Object edu.rice.cs.drjava.RemoteControlClient
RemoteControlClient | public class RemoteControlClient (Code) | | Client class to remote control an already running instance of DrJava.
|
Field Summary | |
public static int | REMOTE_CONTROL_TIMEOUT Time in ms until the client decides the server is not running. | protected static boolean | _serverRunning true if a DrJava remote control server is running. | protected static String | _serverUser Contains the name of the user running the server, or is null if no server is running. |
Method Summary | |
public static String | getServerUser() Return the name of the user running the server, or null if no server is running. | public static boolean | isServerRunning() Return true if a DrJava remote control server is running. | public static void | main(String[] args) Main method for test purposes. | public static boolean | openFile(File f) Tell the existing DrJava instance to open a file.
Parameters: f - file, or null to just test if a server is running. |
REMOTE_CONTROL_TIMEOUT | public static int REMOTE_CONTROL_TIMEOUT(Code) | | Time in ms until the client decides the server is not running.
|
_serverRunning | protected static boolean _serverRunning(Code) | | true if a DrJava remote control server is running.
|
_serverUser | protected static String _serverUser(Code) | | Contains the name of the user running the server, or is null if no server is running.
|
getServerUser | public static String getServerUser()(Code) | | Return the name of the user running the server, or null if no server is running.
user name or null |
isServerRunning | public static boolean isServerRunning()(Code) | | Return true if a DrJava remote control server is running.
true if running |
main | public static void main(String[] args)(Code) | | Main method for test purposes.
|
openFile | public static boolean openFile(File f) throws IOException(Code) | | Tell the existing DrJava instance to open a file.
Parameters: f - file, or null to just test if a server is running. true if file could be opened |
|
|