UNICORE Resource Broker Client Plugin
1.5α1

org.eurogrid.broker.client
Class BrokerOffer

java.lang.Object
  |
  +--org.eurogrid.broker.client.BrokerOffer
Direct Known Subclasses:
BrokerOfferQoS

public class BrokerOffer
extends Object

Class to represent a single offer from a Vsite

Version:
$Revision: 1.7 $, $Date: 2004/02/17 11:32:40 $
Author:
Jon MacLaren
See Also:
ExecuteTask, AbstractJob

Field Summary
protected  boolean isSuccessful
          Flag is set to true if the offer represents a "yes"
 
Constructor Summary
BrokerOffer()
          Empty constructor
BrokerOffer(Vsite realVsite, Vsite vsite, com.pallas.unicore.extensions.Usite usite, TaskIDStatusSet statusSet)
          Create a new instance of an offer from a broker.
 
Method Summary
 void applyToJob(AbstractJob job)
           
 void calculateSuccess(TaskResourceDAG jobDescription)
          Evaluate the offer against the original TaskResourceDAG for the AbstractJob being brokered.
 Vsite getRealVsite()
          Get the real Vsite for the offer
 String getRealVsiteAddress()
          Get the address of the real Vsite for the offer
 String getRealVsiteHandle()
          Get the handle of the real Vsite for the offer
 TaskIDStatusSet getStatusSet()
          Get the status set for the offer
 void setRealVsite(Vsite realVsite)
          Set the real Vsite for the offer
 void setStatusSet(TaskIDStatusSet statusSet)
          Set the status set for the offer
 boolean successful()
          Returns whether or not the offer is a successful one
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isSuccessful

protected boolean isSuccessful
Flag is set to true if the offer represents a "yes"

Constructor Detail

BrokerOffer

public BrokerOffer()
Empty constructor


BrokerOffer

public BrokerOffer(Vsite realVsite,
                   Vsite vsite,
                   com.pallas.unicore.extensions.Usite usite,
                   TaskIDStatusSet statusSet)
Create a new instance of an offer from a broker.

Parameters:
realVsite - The Vsite which really made the offer.
vsite - The Vsite which gave us the offer (redundant)
usite - The Usite that the Vsite belongs to (redundant)
statusSet - The status set containing the details of the offer for each ExecuteTask in the AJO for the AbstractJob being brokered
Method Detail

applyToJob

public void applyToJob(AbstractJob job)

calculateSuccess

public void calculateSuccess(TaskResourceDAG jobDescription)
Evaluate the offer against the original TaskResourceDAG for the AbstractJob being brokered.

Parameters:
jobDescription - The TaskResourceDAG of the job being brokered
See Also:
TaskResourceDAG

getRealVsite

public Vsite getRealVsite()
Get the real Vsite for the offer

Returns:
The real Vsite

getRealVsiteAddress

public String getRealVsiteAddress()
Get the address of the real Vsite for the offer

Returns:
The real Vsite address

getRealVsiteHandle

public String getRealVsiteHandle()
Get the handle of the real Vsite for the offer

Returns:
The real Vsite handle

getStatusSet

public TaskIDStatusSet getStatusSet()
Get the status set for the offer

Returns:
The status set

setRealVsite

public void setRealVsite(Vsite realVsite)
Set the real Vsite for the offer

Parameters:
realVsite - The real Vsite

setStatusSet

public void setStatusSet(TaskIDStatusSet statusSet)
Set the status set for the offer

Parameters:
statusSet - The status set

successful

public boolean successful()
Returns whether or not the offer is a successful one

Returns:
true if offer was successful

UNICORE Resource Broker Client Plugin
1.5α1

Submit a bug or feature
Copyright © 2002-2004 University of Manchester, U.K. See license.terms for details.