org.gridlab.gat.resources
Interface Resource

All Superinterfaces:
Advertisable, Monitorable, Serializable
All Known Subinterfaces:
HardwareResource
All Known Implementing Classes:
SoftwareResource

public interface Resource
extends Monitorable, Advertisable, Serializable

Resource is a base interface which is realized by any class which wishes to indicate it represents a node or component; currently both a HardwareResource and a SoftwareResource realize this interface. A Reservation may be associated with this Resource, and can be obtained by the operation getReservation.

Author:
rob

Method Summary
 Reservation getReservation()
          Returns a Reservation associated with this Resource, or null if no reservation was associated.
 ResourceDescription getResourceDescription()
          Returns the ResourceDescription which describes this Resource instance.
 
Methods inherited from interface org.gridlab.gat.monitoring.Monitorable
addMetricListener, getMeasurement, getMetricDefinitionByName, getMetricDefinitions, removeMetricListener
 
Methods inherited from interface org.gridlab.gat.advert.Advertisable
marshal
 

Method Detail

getResourceDescription

ResourceDescription getResourceDescription()
Returns the ResourceDescription which describes this Resource instance.

Returns:
the ResourceDescription which describes this Resource instance.

getReservation

Reservation getReservation()
Returns a Reservation associated with this Resource, or null if no reservation was associated.

Returns:
a Reservation associated with this Resource, or null if no reservation was associated.