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  

Resource.java

Go to the documentation of this file.
00001 /*
00002  * Created on Apr 22, 2004
00003  *  
00004  */
00005 package org.gridlab.gat.resources;
00006 
00007 import org.gridlab.gat.advert.Advertisable;
00008 import org.gridlab.gat.monitoring.Monitorable;
00009 
00010 /**
00011  * @author rob
00012  * 
00013  * Resource is a base interface which is realized by any class which wishes to
00014  * indicate it represents a node or component; currently both a
00015  * GATHardwareResource and a SoftwareResource realize this interface. A
00016  * Reservation may be associated with this Resource, and can be obtained by the
00017  * operation getReservation.
00018  */
00019 
00020 public interface Resource extends Monitorable, Advertisable, java.io.Serializable {
00021     
00022     /**
00023      * @return The GATResourceDescription which describes this
00024      * Resource instance.
00025      */
00026     public ResourceDescription getResourceDescription();
00027     
00028     /**
00029      * @return a Reservation associated with this resource, or null of no
00030      * reservation was associated.
00031      */
00032     public Reservation getReservation();
00033 }