UNICORE Resource Broker NJS Plugin
1.5α1

org.eurogrid.broker.server.globus
Class SimpleTranslator

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

public class SimpleTranslator
extends Object
implements Translator

Basic Unicore-to-Globus translation service that is fixed to target MDS2.2 and does not use an ontology at all. This class knows how to check for exactly five resources: Memory, Node, Processor, Root and RunTime. All others are deferred back to the IDB.

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

Constructor Summary
SimpleTranslator()
           
 
Method Summary
 String getFormalName()
          Get the formal name of the plugin.
 Logger getLogger()
          Get the logger installed in this translator.
 String getName()
          Get the name of the plugin.
 Translation getTranslation(ResourceSet res, IncarnatedUser user)
          Get the translation of a particular resource set.
 void initialise(Logger logger, Element thisIsCurrentlyUnused)
          Initialise the translator based on a logging engine and a DOM element indicating a section of the configuration file.
 boolean verifyTranslation(Translation t)
          Verify that a translation is satisfied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTranslator

public SimpleTranslator()
Method Detail

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

getLogger

public Logger getLogger()
Description copied from interface: Translator
Get the logger installed in this translator.

Specified by:
getLogger in interface Translator

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

getTranslation

public Translation getTranslation(ResourceSet res,
                                  IncarnatedUser user)
Description copied from interface: Translator
Get the translation of a particular resource set.

Specified by:
getTranslation in interface Translator

initialise

public void initialise(Logger logger,
                       Element thisIsCurrentlyUnused)
Description copied from interface: Translator
Initialise the translator based on a logging engine and a DOM element indicating a section of the configuration file.

Specified by:
initialise in interface Translator

verifyTranslation

public boolean verifyTranslation(Translation t)
Description copied from interface: Translator
Verify that a translation is satisfied. Note that this is only called after the value returned from Translator.getTranslation(ResourceSet,IncarnatedUser) has been bound to a particular set of results.

Specified by:
verifyTranslation in interface Translator

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.