|
UNICORE Resource Broker NJS Plugin 1.5α1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eurogrid.broker.server.AbstractBroker | +--org.eurogrid.broker.server.ResourceBroker
University of Manchester Resource Broker NJS V4 Plugin. Principal class.
TicketManager
,
ExpertBroker
,
LocalResourceChecker
Nested Class Summary | |
static interface |
ResourceBroker.TSIRunEngine
Passed to LocalResourceChecker s that wish to run
scripts on the local TSI. |
Field Summary | |
static String |
VERSION
The version of the broker engine. |
Fields inherited from class org.eurogrid.broker.server.AbstractBroker |
controlState, isInitialised, localVsiteName, logger |
Constructor Summary | |
ResourceBroker()
|
Method Summary | |
protected void |
checkQoS(CheckQoS task,
IncarnatedUser incedUser,
User user,
byte[] context,
CheckQoS_Outcome outcome)
Incarnate a CheckQoS, producing an outcome. |
protected void |
checkResources(CheckResources task,
IncarnatedUser incedUser,
User user,
byte[] context,
CheckResources_Outcome outcome)
Incarnate a CheckResources, producing an outcome. |
String |
claim(Ticket ticket,
ResourceSet resources,
IncarnatedUser incUser,
User user)
Claim the ticket. |
boolean |
fillInEstimate(ResourceSet resSet,
Estimate est,
IncarnatedUser user)
Generate a ticket for a resource request. |
String |
getFormalName()
Get the formal name of the plugin. |
String |
getGatewayURL()
Get the URL for the gateway to access the Usite containing this broker. |
ResourceSet |
getLocalResources()
Get the current resource set for the host Vsite. |
String |
getName()
Get the name of the plugin. |
ResourceSet |
getResources(Vsite vsite)
Get the resources for a particular Vsite. |
String |
getTextOfElement(Element element,
String tag)
Get the textual content of the given DOM element, complaining if it is anything other than simple text. |
String |
initialise(Vsite vsite,
ResourceSet resources,
ResourceChecker.NJS njs,
Element configuration)
Initialise ourselves |
boolean |
isBrokeringFor(Vsite vsite)
Test if this broker brokers for the given Vsite. |
protected void |
logBannerMessage()
Write the main banner message to the log. |
static Vsite |
makeVsite(String handle,
String address)
Wrapper method that creates a Vsite given a handle and
address for it. |
String |
mapToLocation(Storage storage)
Get where a particular piece of storage is located. |
boolean |
resourceSetOKHere(ResourceSet set,
IncarnatedUser user)
Check a single resource set |
Methods inherited from class org.eurogrid.broker.server.AbstractBroker |
apply, getLogger, getLogger, getQoSCheckResource, getResourceCheckResource, getState, incarnateCheckQoS, incarnateCheckResources, initialise, initialiseLogger, nextJobID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String VERSION
Constructor Detail |
public ResourceBroker()
Method Detail |
protected void checkQoS(CheckQoS task, IncarnatedUser incedUser, User user, byte[] context, CheckQoS_Outcome outcome) throws ResourceCheckerException
checkQoS
in class AbstractBroker
task
- the request to check resources that requires incarnationincedUser
- the incarnated user performing the checkuser
- the user performing the checkcontext
- broker context for passing to sub-brokersoutcome
- the incarnated user performing the check
ResourceCheckerException
protected void checkResources(CheckResources task, IncarnatedUser incedUser, User user, byte[] context, CheckResources_Outcome outcome) throws ResourceCheckerException
checkResources
in class AbstractBroker
task
- the request to check resources that requires incarnationincedUser
- the incarnated user performing the checkuser
- the User performing the checkcontext
- broker context for passing to sub-brokersoutcome
- the incarnated user performing the check
ResourceCheckerException
public String claim(Ticket ticket, ResourceSet resources, IncarnatedUser incUser, User user) throws ResourceCheckerException
ticket
- The ticket being claimedresources
- The resource set that contains the ticketincUser
- The incarnated useruser
- The real user
ResourceCheckerException
- If the ticket is not validpublic boolean fillInEstimate(ResourceSet resSet, Estimate est, IncarnatedUser user)
resSet
- The set of resources specifying the requested quality of service.est
- The estimate to fill in.user
- The incarnated user making the request.
public String getFormalName()
NamedPlugin
public String getGatewayURL()
public ResourceSet getLocalResources()
public String getName()
NamedPlugin
public ResourceSet getResources(Vsite vsite)
public String getTextOfElement(Element element, String tag)
element
- The element to extract the content from.tag
- The tag of the element being extracted (for log messages).
public String initialise(Vsite vsite, ResourceSet resources, ResourceChecker.NJS njs, Element configuration) throws ResourceCheckerException
initialise
in class AbstractBroker
vsite
- The Vsite where we are.resources
- The resources at this Vsite.njs
- The hosting NJS.configuration
- The initialisation XML from the IDB.
ResourceCheckerException
public boolean isBrokeringFor(Vsite vsite)
protected void logBannerMessage()
AbstractBroker
logBannerMessage
in class AbstractBroker
public static Vsite makeVsite(String handle, String address)
Vsite
given a handle and
address for it. For use by plug-in modules only.
public String mapToLocation(Storage storage)
public boolean resourceSetOKHere(ResourceSet set, IncarnatedUser user)
set
- The resource set to checkuser
- The user to perform the check on behalf of
|
UNICORE Resource Broker NJS Plugin 1.5α1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |