UNICORE Resource Broker NJS Plugin
1.5α1

org.eurogrid.broker.server
Interface ExpertBroker

All Superinterfaces:
NamedPlugin
All Known Implementing Classes:
DWDLMExpert

public interface ExpertBroker
extends NamedPlugin

Application-specific brokering module.

Version:
$Revision: 1.6 $, $Date: 2004/02/17 11:32:40 $
Author:
Donal K. Fellows
See Also:
ResourceBroker

Method Summary
 boolean evaluateQoSCheck(Object context, Vsite vsite, VsiteEstimateMap map, IncarnatedUser user)
          Perform a QoS check on the given Vsite (the local one.)
 boolean evaluateResourceCheck(Object context, Vsite vsite, VsiteTaskIDStatusMap map, IncarnatedUser user)
          Perform a resource check on the given Vsite (the local one.)
 boolean generateQoSRequests(Object context, Vsite vsite, List requests)
          Generate QoS requests to be made from the given Vsite (the local one) to whatever other ones are configured in the initialisation phase.
 boolean generateResourceRequests(Object context, Vsite vsite, List requests)
          Generate resource-check requests to be made from the given Vsite (the local one) to whatever other ones are configured in the initialisation phase.
 Object getContext(TaskResourceDAG dag)
          Given a task graph, get a context object for processing it.
 void initialise(ResourceBroker broker, Logger logger, Element domNode)
          Initialise from the given DOM-tree element and broker configuration.
 boolean isEnabled()
          Test whether this expert brokering engine actually managed to initialise itself enough to operate.
 void willBroker(Object context)
          Informs the expert that the main broker has elected to use the expert for the job associated with the given context.
 
Methods inherited from interface org.eurogrid.broker.server.NamedPlugin
getFormalName, getName
 

Method Detail

evaluateQoSCheck

public boolean evaluateQoSCheck(Object context,
                                Vsite vsite,
                                VsiteEstimateMap map,
                                IncarnatedUser user)
Perform a QoS check on the given Vsite (the local one.)

Parameters:
map - Place to store offers to make back to the client.

evaluateResourceCheck

public boolean evaluateResourceCheck(Object context,
                                     Vsite vsite,
                                     VsiteTaskIDStatusMap map,
                                     IncarnatedUser user)
Perform a resource check on the given Vsite (the local one.)

Parameters:
map - Place to store offers to make back to the client.

generateQoSRequests

public boolean generateQoSRequests(Object context,
                                   Vsite vsite,
                                   List requests)
Generate QoS requests to be made from the given Vsite (the local one) to whatever other ones are configured in the initialisation phase. Note that it is up to the main broker to do the actual submission of the requests to the remote sites.

Parameters:
requests - List that instances of CheckQoS should be added to.

generateResourceRequests

public boolean generateResourceRequests(Object context,
                                        Vsite vsite,
                                        List requests)
Generate resource-check requests to be made from the given Vsite (the local one) to whatever other ones are configured in the initialisation phase. Note that it is up to the main broker to do the actual submission of the requests to the remote sites.

Parameters:
requests - List that instances of CheckResources should be added to.

getContext

public Object getContext(TaskResourceDAG dag)
Given a task graph, get a context object for processing it.

Returns:
If the value null is returned, this indicates that the module does not wish to broker the given job.

initialise

public void initialise(ResourceBroker broker,
                       Logger logger,
                       Element domNode)
Initialise from the given DOM-tree element and broker configuration.


isEnabled

public boolean isEnabled()
Test whether this expert brokering engine actually managed to initialise itself enough to operate.


willBroker

public void willBroker(Object context)
Informs the expert that the main broker has elected to use the expert for the job associated with the given context.


UNICORE Resource Broker NJS Plugin
1.5α1

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