Java Globus API: Class GaraReservationStatus

org.globus.gara
Class GaraReservationStatus

java.lang.Object
  |
  +--org.globus.gara.GaraReservationStatus

public class GaraReservationStatus
extends Object

This class is used to store the status of a GaraReservation. Although GaraReservationStatus objects can be used on a stand-alone basis, they are used automatically in conjunction with GaraReservationListener objects which are added to a GaraReservation.

See Also:
GaraReservationListener, GaraReservation.addListener(org.globus.gara.GaraReservationListener), GaraReservation.removeListener(org.globus.gara.GaraReservationListener)

Field Summary
static int GLOBUS_GARA_RESERVATION_STATUS_ACTIVE
           
static int GLOBUS_GARA_RESERVATION_STATUS_FINISHED
           
static int GLOBUS_GARA_RESERVATION_STATUS_NOT_STARTED
           
static int GLOBUS_GARA_RESERVATION_STATUS_NOT_STARTED_BOUND
           
static int GLOBUS_GARA_RESERVATION_STATUS_READY_NOT_BOUND
           
 
Constructor Summary
GaraReservationStatus()
          Default constructor.
GaraReservationStatus(int initialStatus)
          Creates a new GaraReservationStatus object starting at an initial status
 
Method Summary
 Object clone()
           
 int get()
          Get the status value
 void set(int newStatus)
          Sets the status to a new value
 String toString()
           
static String toString(int s)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GLOBUS_GARA_RESERVATION_STATUS_NOT_STARTED

public static final int GLOBUS_GARA_RESERVATION_STATUS_NOT_STARTED

GLOBUS_GARA_RESERVATION_STATUS_NOT_STARTED_BOUND

public static final int GLOBUS_GARA_RESERVATION_STATUS_NOT_STARTED_BOUND

GLOBUS_GARA_RESERVATION_STATUS_READY_NOT_BOUND

public static final int GLOBUS_GARA_RESERVATION_STATUS_READY_NOT_BOUND

GLOBUS_GARA_RESERVATION_STATUS_ACTIVE

public static final int GLOBUS_GARA_RESERVATION_STATUS_ACTIVE

GLOBUS_GARA_RESERVATION_STATUS_FINISHED

public static final int GLOBUS_GARA_RESERVATION_STATUS_FINISHED
Constructor Detail

GaraReservationStatus

public GaraReservationStatus()
Default constructor. Initializes the reservation status.

GaraReservationStatus

public GaraReservationStatus(int initialStatus)
Creates a new GaraReservationStatus object starting at an initial status
Parameters:
initialStatus - The initial status of the reservation
Method Detail

set

public void set(int newStatus)
         throws GaraException
Sets the status to a new value
Parameters:
newStatus - The new status value
Throws:
GaraException -  

get

public int get()
Get the status value
Returns:
The current status value

toString

public String toString()
Overrides:
toString in class Object
Returns:
The String representation of the current status

toString

public static String toString(int s)
Returns:
The String representation of the given status value

clone

public Object clone()
Overrides:
clone in class Object
Returns:
A copy/clone of the invoking object which exists at the same status level