org.objectweb.cjdbc.controller.shutdown
Class ControllerShutdownClient

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.shutdown.ControllerShutdownClient

public class ControllerShutdownClient
extends java.lang.Object

Author:
Nicolas Modrzyk Static class to send a Shutdown command to the controller

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

socketToController

static java.net.Socket socketToController

acknowledged

public static boolean acknowledged
Command was ackownledge ?


MAX_WAIT_TIME

public static final int MAX_WAIT_TIME
How many seconds should we wait for shutdown

See Also:
Constant Field Values
Constructor Detail

ControllerShutdownClient

public ControllerShutdownClient(java.lang.String[] args)
Sends the command

Parameters:
args - args[0] is the host,args[1] is the port, args[2] is the shutdown level
Method Detail

main

public static void main(java.lang.String[] args)
Sends the command

Parameters:
args - args[0] is the host,args[1] is the port, args[2] is the shutdown level

sendShutdown

public void sendShutdown(int level)
                  throws java.lang.Exception
Sends command to controller

Parameters:
level - of the shutdown mode
Throws:
java.lang.Exception - if error

out

public static void out(java.lang.String message)
Standard output

Parameters:
message - to the output


Copyright © 2002, 2003 - ObjectWeb Consortium - All Rights Reserved.