org.ourgrid.mygrid.ui.command
Class Status

java.lang.Object
  extended by org.ourgrid.mygrid.ui.command.Status
All Implemented Interfaces:
Command

public class Status
extends java.lang.Object
implements Command

Description: This class is responsible to print mygrid current job and gums state. This can be made by getting an instance from Status and using its API or through mygrid status script.

Version:
1.0 Created on 03/08/2004

Constructor Summary
Status(UIManager manager)
           
 
Method Summary
 boolean configureEnvironment()
          Determines if this command needs to configure environment before being executed
 void printGridStatus(java.lang.String[] args)
          Prints MyGrid status
static void printUsage()
          Print's this class command line usage.
 int run(java.lang.String[] params)
          Main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Status

public Status(UIManager manager)
Method Detail

run

public int run(java.lang.String[] params)
Main method. This method should be called with no command line arguments

Specified by:
run in interface Command

printUsage

public static void printUsage()
Print's this class command line usage.


printGridStatus

public void printGridStatus(java.lang.String[] args)
                     throws java.rmi.RemoteException
Prints MyGrid status

Throws:
java.rmi.RemoteException - If, for some reason, MyGrid could not be contacted.

configureEnvironment

public boolean configureEnvironment()
Description copied from interface: Command
Determines if this command needs to configure environment before being executed

Specified by:
configureEnvironment in interface Command
Returns:
true if this command needs to configure environment before. False, otherwise.
See Also:
Command.configureEnvironment()