GaraReservationStatus (Java Globus API)
org.globus.gara
Class GaraReservationStatus
java.lang.Object
|
+--org.globus.gara.GaraReservationStatus
public class GaraReservationStatus extends java.lang.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)
Method Summary
java.lang.Object
clone ()
int
get ()
Get the status value
void
set (int newStatus)
Sets the status to a new value
java.lang.String
toString ()
static java.lang.String
toString (int s)
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
GLOBUS_GARA_RESERVATION_STATUS_NOT_STARTED
public static final int GLOBUS_GARA_RESERVATION_STATUS_NOT_STARTED
See Also: Constant Field Values
GLOBUS_GARA_RESERVATION_STATUS_NOT_STARTED_BOUND
public static final int GLOBUS_GARA_RESERVATION_STATUS_NOT_STARTED_BOUND
See Also: Constant Field Values
GLOBUS_GARA_RESERVATION_STATUS_READY_NOT_BOUND
public static final int GLOBUS_GARA_RESERVATION_STATUS_READY_NOT_BOUND
See Also: Constant Field Values
GLOBUS_GARA_RESERVATION_STATUS_ACTIVE
public static final int GLOBUS_GARA_RESERVATION_STATUS_ACTIVE
See Also: Constant Field Values
GLOBUS_GARA_RESERVATION_STATUS_FINISHED
public static final int GLOBUS_GARA_RESERVATION_STATUS_FINISHED
See Also: Constant Field Values
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
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 java.lang.String toString ()
Overrides: toString in class java.lang.Object
Returns: The String representation of the current status
toString
public static java.lang.String toString (int s)
Returns: The String representation of the given status value
clone
public java.lang.Object clone ()
Overrides: clone in class java.lang.Object
Returns: A copy/clone of the invoking object which exists at the same
status level