UNICORE Resource Broker NJS Plugin
1.5α1

org.eurogrid.broker.server.globus
Class GlobusResourceChecker

java.lang.Object
  |
  +--org.eurogrid.broker.server.globus.GlobusResourceChecker
All Implemented Interfaces:
LocalResourceChecker, NamedPlugin

public class GlobusResourceChecker
extends Object
implements LocalResourceChecker

Local resource checker targetted at Grid systems accessed using the Globus protocol suite.

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

Constructor Summary
GlobusResourceChecker()
           
 
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 for the given user.
 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.
 String getFormalName()
          Get the formal name of the plugin.
 String getName()
          Get the name of the plugin.
 boolean initialise(ResourceBroker broker, Logger logger, ResourceSet njsResources, Element domNode)
          Initialise from the given DOM-tree element and broker configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobusResourceChecker

public GlobusResourceChecker()
Method Detail

canGetQoSData

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

Specified by:
canGetQoSData in interface LocalResourceChecker

checkResources

public boolean checkResources(ResourceBroker.TSIRunEngine tre,
                              ResourceSet resources)
Test to see if the given set of resources is locally satisfiable for the given user.

Specified by:
checkResources in interface LocalResourceChecker
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.

Specified by:
estimateTurnaroundTime in interface LocalResourceChecker
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.

Specified by:
getCPUQuota in interface LocalResourceChecker
Returns:
Number of seconds left, or null if the operation is not supported.

getFormalName

public String getFormalName()
Description copied from interface: NamedPlugin
Get the formal name of the plugin. This should be long enough to allow people who are not experts with the code to understand it, and will be written to the log to associate itself with the shorter name.

Specified by:
getFormalName in interface NamedPlugin

getName

public String getName()
Description copied from interface: NamedPlugin
Get the name of the plugin. This should be fairly short so that the logging messages aren't too massive.

Specified by:
getName in interface NamedPlugin

initialise

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

Specified by:
initialise in interface LocalResourceChecker
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.