|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.drjava.RemoteControlClient
public class RemoteControlClient
Client class to remote control an already running instance of DrJava.
Field Summary | |
---|---|
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. |
static int |
REMOTE_CONTROL_TIMEOUT
Time in ms until the client decides the server is not running. |
Constructor Summary | |
---|---|
RemoteControlClient()
|
Method Summary | |
---|---|
static String |
getServerUser()
Return the name of the user running the server, or null if no server is running. |
static boolean |
isServerRunning()
Return true if a DrJava remote control server is running. |
static void |
main(String[] args)
Main method for test purposes. |
static boolean |
openFile(File f)
Tell the existing DrJava instance to open a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static boolean _serverRunning
protected static String _serverUser
public static final int REMOTE_CONTROL_TIMEOUT
Constructor Detail |
---|
public RemoteControlClient()
Method Detail |
---|
public static boolean isServerRunning()
public static String getServerUser()
public static boolean openFile(File f) throws IOException
f
- file, or null to just test if a server is running.
IOException
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |