UNICORE Resource Broker NJS Plugin
1.5α1

org.eurogrid.broker.server
Interface LocalResourceChecker

All Superinterfaces:
NamedPlugin
All Known Implementing Classes:
GlobusResourceChecker, GT3LocalResourceChecker, UnicoreResourceChecker

public interface LocalResourceChecker
extends NamedPlugin

Local resource checking module.

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

Method Summary
 boolean canGetQoSData()
          Test whether this resource checker can supply data for quality-of-service estimates.
 boolean checkResources(ResourceBroker.TSIRunEngine tre, ResourceSet resources)
          Test to see if the given set of resources is locally satisfiable in the given context.
 boolean estimateTurnaroundTime(ResourceBroker.TSIRunEngine tre, Estimate est, ResourceSet resources)
          Fill in the given estimate with how long a job requiring the given resource set will take to start and run.
 Integer getCPUQuota(IncarnatedUser user, ResourceSet resources)
          Discover the amount of CPU time remaining to the user on the local execution resource.
 boolean initialise(ResourceBroker broker, Logger logger, ResourceSet njsResources, Element domNode)
          Initialise from the given DOM-tree element and broker configuration.
 
Methods inherited from interface org.eurogrid.broker.server.NamedPlugin
getFormalName, getName
 

Method Detail

canGetQoSData

public boolean canGetQoSData()
Test whether this resource checker can supply data for quality-of-service estimates.


checkResources

public boolean checkResources(ResourceBroker.TSIRunEngine tre,
                              ResourceSet resources)
Test to see if the given set of resources is locally satisfiable in the given context. Note that the context may be queried for the user on whose behalf the request is being run.

Parameters:
tre - Provides access to the NJS's TSI as well as describing on whose behalf we are checking resources.

estimateTurnaroundTime

public boolean estimateTurnaroundTime(ResourceBroker.TSIRunEngine tre,
                                      Estimate est,
                                      ResourceSet resources)
Fill in the given estimate with how long a job requiring the given resource set will take to start and run. Also obtains cost estimates.

Parameters:
tre - Provides access to the NJS's TSI as well as describing on whose behalf we are getting the estimate.

getCPUQuota

public Integer getCPUQuota(IncarnatedUser user,
                           ResourceSet resources)
Discover the amount of CPU time remaining to the user on the local execution resource.

Returns:
Number of seconds left, or null if the operation is not supported.

initialise

public boolean initialise(ResourceBroker broker,
                          Logger logger,
                          ResourceSet njsResources,
                          Element domNode)
                   throws ResourceCheckerException
Initialise from the given DOM-tree element and broker configuration.

Returns:
whether the initialisation succeeded.
ResourceCheckerException

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.