Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members
resources::ResourceBroker Class ReferenceAn instance of this class is used to reserve resources.
More...
Inheritance diagram for resources::ResourceBroker:
[legend]Collaboration diagram for resources::ResourceBroker:
[legend]List of all members.
Detailed Description
An instance of this class is used to reserve resources.
A resource can either be a hardware resource or a software resource. A software resource is simply an executable it makes little sense to reserve such. Thus an instance of this class can currently only reserve a hardware resource.
If one wishes to reserve a hardware resource, one must first describe the hardware resource that one wishes to reserve. This is accomplished by creating an instance of the class HardwareResourceDescription which describes the hardware resource that one wishes to reserve. After creating such an instance of the class HardwareResourceDescription that describes the hardware resource one wishes to reserve, one must specify the time period for which one wishes to reserve the hardware resource. This is accomplished by creating an instance of the class TimePeriod which specifies the time period for which one wishes to reserve the hardware resource. Finally, one must obtain a reservation for the desired hardware resource for the desired time period. This is accomplished by calling the method ReserveHardwareResource() on an instance of the class ResourceBroker with the appropriate instance of HardwareResourceDescription and the appropriate instance of TimePeriod.
In addition an instance of this class can be used to find hardware resources. This is accomplished using the method FindHardwareResources(). This is accomplished by creating an instance of the class HardwareResourceDescription which describes the hardware resource that one wishes to find. After creating such an instance of the class HardwareResourceDescription that describes the hardware resource one wishes to find, one must find the corresponding hardware resource. This is accomplished by calling the method FindHardwareResources() on an instance of the class ResourceBroker with the appropriate instance of HardwareResourceDescription.
Definition at line 45 of file ResourceBroker.java.
Constructor & Destructor Documentation
| resources::ResourceBroker::ResourceBroker |
( |
GATContext |
gatContext, |
|
|
Preferences |
preferences |
|
) |
throws Exception [inline, protected] |
|
Member Function Documentation
| ResourceBroker resources::ResourceBroker::create |
( |
GATContext |
gatContext, |
|
|
Preferences |
preferences |
|
) |
throws Exception [inline] |
|
| boolean resources::ResourceBroker::equals |
( |
Object |
object |
) |
[inline] |
|
| abstract Reservation resources::ResourceBroker::reserveResource |
( |
ResourceDescription |
resourceDescription, |
|
|
TimePeriod |
timePeriod |
|
) |
throws RemoteException, IOException [pure virtual] |
|
|
|
This method attempts to reserve the specified resource for the specified time period.
Upon reserving the specified resource this method returns a Reservation. Upon failing to reserve the specified resource this method returns an error. - Parameters:
-
| resourceDescription |
A description, a ResourceDescription, of the hardware resource to reserve |
| timePeriod |
The time period, a TimePeriod , for which to reserve the hardware resource |
- Exceptions:
-
| RemoteException |
Thrown upon problems accessing the remote instance |
| java |
.io.IOException Upon non-remote IO problem |
|
| abstract Reservation resources::ResourceBroker::reserveResource |
( |
Resource |
resource, |
|
|
TimePeriod |
timePeriod |
|
) |
throws RemoteException, IOException [pure virtual] |
|
|
|
This method attempts to reserve the specified resource for the specified time period.
Upon reserving the specified resource this method returns a Reservation. Upon failing to reserve the specified resource this method returns an error. - Parameters:
-
| resource |
The resource to reserve. |
| timePeriod |
The time period, a TimePeriod , for which to reserve the hardware resource |
- Exceptions:
-
| RemoteException |
Thrown upon problems accessing the remote instance |
| java |
.io.IOException Upon non-remote IO problem |
|
| abstract List resources::ResourceBroker::findResources |
( |
ResourceDescription |
resourceDescription |
) |
throws RemoteException, IOException [pure virtual] |
|
|
|
This method attempts to find one or more matching hardware resources.
Upon finding the specified hardware resource(s) this method returns a java.util.List of HardwareResource instances. Upon failing to find the specified hardware resource this method returns an error. - Parameters:
-
| resourceDescription |
A description, a ResoucreDescription, of the resource(s) to find |
- Returns:
-
java.util.List of Resources upon success
- Exceptions:
-
| RemoteException |
Thrown upon problems accessing the remote instance |
| java |
.io.IOException Upon non-remote IO problem |
|
| abstract Job resources::ResourceBroker::submitJob |
( |
JobDescription |
description |
) |
throws RemoteException, IOException [pure virtual] |
|
|
|
This operation takes a JobDescription, and submits the specified job to some underlying resource management or allocation system.
On success, a GATJob instance is returned, which represents the job. Upon failing to submit the job, an error is issued. - Parameters:
-
| description |
The job description. |
- Returns:
-
- Exceptions:
-
| RemoteException |
Thrown upon problems accessing the remote instance |
| IOException |
Upon non-remote IO problem |
|
Member Data Documentation
GATContext resources::ResourceBroker::gatContext [protected]
|
|
Preferences resources::ResourceBroker::preferences [protected]
|
|
The documentation for this class was generated from the following file:
|