com.ibm.tspaces.examples.services
Class Shutdown

java.lang.Object
  |
  +--com.ibm.tspaces.examples.services.Shutdown

public class Shutdown
extends java.lang.Object

This is a sample implementaion of a client command that will issue a SHUTDOWN command to the server. It will take the Administrator userid and password from the command line and issue the command. The resulting action at the server is to terminate all active operations (giving them a few seconds to clean up) and then issue a checkpoint of all active Spaces then exit.

Author:
John Thomas

Constructor Summary
Shutdown()
           
 
Method Summary
static void main(java.lang.String[] argv)
          This is code to issue the SHUTDOWN Syntax: java com.ibm.tspaces.examples.services.Shutdown host user password The default is to use the Default port 8201.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shutdown

public Shutdown()
Method Detail

main

public static void main(java.lang.String[] argv)
This is code to issue the SHUTDOWN Syntax: java com.ibm.tspaces.examples.services.Shutdown host user password The default is to use the Default port 8201. To specify a different port, Host can be specified as "hostname:port"

The basic steps are:

Get the userid and password. Remember that this function must be performed by a user that has "admin" authority for the server

issue an TupleSpace.shutdown(host,port,user,password)