|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.garret.jipc.client.JIPCServerMonitor
Server monitor class is used to send commands to the JIPC server spawned in daemon mode (without user dialog).
Usage: java org.garret.jipc.client.JIPCServerMonitor HOSTNAME PORT [command] Commands: SHUTDOWN shutdown server INFO dump information about server statusIf command is not specified in command line, server monitor starts interactive dialog. In this dialog, except SHTDOWN and INFO commands it also supports EXIT and HELP commands. EXIT command is used to close dialog, HELP shows list of available commands.
Constructor Summary | |
JIPCServerMonitor(java.lang.String hostname,
int port)
Server monitor constructor. |
Method Summary | |
boolean |
executeCommand(java.io.PrintStream out,
java.lang.String cmd)
Send command to the server |
static void |
main(java.lang.String[] args)
Server monitor main function. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JIPCServerMonitor(java.lang.String hostname, int port) throws java.lang.Exception
hostname
- address of the serverport
- server portMethod Detail |
public boolean executeCommand(java.io.PrintStream out, java.lang.String cmd) throws java.lang.Exception
out
- print stream where result will be printed (for INFO command)cmd
- command to be executed (INFO or SHUTDOWN)
true
if command was succefully executed
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- command line
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |