UNICORE Resource Broker Client Plugin
1.5α1

org.eurogrid.broker.client
Interface BrokerAgent

All Known Implementing Classes:
BrokerPlugin

public interface BrokerAgent

Basic brokering interface. Note that this interface does not define the behaviour when the job parameters are null but implementations of this interface should define that.

Version:
$Revision: 1.3 $, $Date: 2004/02/17 11:32:40 $
Author:
Donal K. Fellows
See Also:
BrokerPlugin, QoSCheck, ResourceCheck

Method Summary
 boolean brokerAtVsites(Collection vsites, Map vsitesToUsites, AbstractJob job, ConsignedMessageHandler handler)
          Broker the given job at a given list of vsites.
 boolean brokerJob(AbstractJob job, ConsignedMessageHandler handler)
          Broker the given job at user's preset vsites.
 

Method Detail

brokerAtVsites

public boolean brokerAtVsites(Collection vsites,
                              Map vsitesToUsites,
                              AbstractJob job,
                              ConsignedMessageHandler handler)
Broker the given job at a given list of vsites.

Parameters:
vsites - The list of Vsite objects
vsitesToUsites - Mapping from each Vsite to its Usite.
job - The job to broker and submit.
handler - Callback to allow for notification of the outcome of the job consignment. Use null to indicate that no notification is desired.
Returns:
Whether the brokering actually happened and the job was submitted.

brokerJob

public boolean brokerJob(AbstractJob job,
                         ConsignedMessageHandler handler)
Broker the given job at user's preset vsites.

Parameters:
job - The job to broker and submit.
handler - Callback to allow for notification of the outcome of the job consignment. Use null to indicate that no notification is desired.
Returns:
Whether the brokering actually happened and the job was submitted.

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.