org.gridlab.gat.resources
Interface Reservation


public interface Reservation

An instance implementing this interface represents a reservation for Resources.

Author:
rob

Method Summary
 void cancel()
          This method upon successfully completing cancels the reservation corresponding to the associated Reservation instance.
 Resource getResource()
          This operation returns the Resource corresponding to this Reservation instance.
 

Method Detail

cancel

void cancel()
            throws GATInvocationException
This method upon successfully completing cancels the reservation corresponding to the associated Reservation instance.

Throws:
GATInvocationException

getResource

Resource getResource()
This operation returns the Resource corresponding to this Reservation instance. That instance can in turn call the operation getReservation to obtain this Reservation instance.

Returns:
The Resource, or null when the Reservation is expired or canceled.