GridLab
Grid Application Toolkit

A simple API for Grid Applications
GAT

Menu



Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

Reservation.java

Go to the documentation of this file.
00001 package org.gridlab.gat.resources;
00002 
00003 import java.io.IOException;
00004 
00005 import org.gridlab.gat.net.RemoteException;
00006 
00007 /**
00008  * @author rob
00009  * 
00010  * An instance implementing this interface represents a reservation for
00011  * resources.
00012  */
00013 public interface Reservation {
00014 
00015     /**
00016      * This method upon successfully completing cancels the reservation
00017      * corresponding to the associated Reservation instance.
00018      * 
00019      * @throws java.rmi.RemoteException
00020      *             Thrown upon problems accessing the remote instance
00021      * @throws java.io.IOException
00022      *             Upon non-remote IO problem
00023      */
00024     public void cancel() throws RemoteException, IOException;
00025 
00026     /**
00027      * This operation returns the GATResource corresponding to this
00028      * GATReservation instance. That instance can in turn call the operation
00029      * GetReservation to obtain this GATReservation instance.
00030      * 
00031      * @return The Resource, or null when the reservation is expired or
00032      *         cancelled.
00033      */
00034     public Resource getResource();
00035 }