|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.cjdbc.controller.shutdown.ControllerShutdownClient
Nested Class Summary | |
(package private) class |
ControllerShutdownClient.WaitForAcknowledgement
|
Field Summary | |
static boolean |
acknowledged
Command was ackownledge ? |
static int |
MAX_WAIT_TIME
How many seconds should we wait for shutdown |
(package private) static java.net.Socket |
socketToController
|
Constructor Summary | |
ControllerShutdownClient(java.lang.String[] args)
Sends the command |
Method Summary | |
static void |
main(java.lang.String[] args)
Sends the command |
static void |
out(java.lang.String message)
Standard output |
void |
sendShutdown(int level)
Sends command to controller |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static java.net.Socket socketToController
public static boolean acknowledged
public static final int MAX_WAIT_TIME
Constructor Detail |
public ControllerShutdownClient(java.lang.String[] args)
args
- args[0] is the host,args[1] is the port, args[2] is the
shutdown levelMethod Detail |
public static void main(java.lang.String[] args)
args
- args[0] is the host,args[1] is the port, args[2] is the
shutdown levelpublic void sendShutdown(int level) throws java.lang.Exception
level
- of the shutdown mode
java.lang.Exception
- if errorpublic static void out(java.lang.String message)
message
- to the output
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |