| java.lang.Object org.columba.core.main.SessionController
SessionController | public class SessionController (Code) | | Contains the logic necessary to search for running Columba sessions and
pass command line arguments to it or to start a new session.
|
Method Summary | |
protected static int | deserializePortNumber() Reads a stored port number from the file ".auth" in the config directory. | public static void | passToRunningSessionAndExit(String[] args) Tries to connect to a running ColumbaServer using a new ColumbaClient. | protected static void | serializePortNumber(int port) Stores the given port number in the file ".auth" in the config directory. |
deserializePortNumber | protected static int deserializePortNumber() throws IOException(Code) | | Reads a stored port number from the file ".auth" in the config directory.
|
passToRunningSessionAndExit | public static void passToRunningSessionAndExit(String[] args)(Code) | | Tries to connect to a running ColumbaServer using a new ColumbaClient.
If this works, the given command line arguments are passed to the
running server and the startup process is terminated.
If this doesn't work, a new ColumbaServer instance is created and
the startup process isn't terminated.
|
serializePortNumber | protected static void serializePortNumber(int port) throws IOException(Code) | | Stores the given port number in the file ".auth" in the config directory.
If the passed port number is -1, the existing file is deleted.
|
|
|