|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlbg.peer.core.rms.ResourceLocator
public class ResourceLocator
A ResourceLocator tracks Task -> Resource mappings so as to locate the Resource running a given Task.
Nested Class Summary | |
---|---|
static class |
ResourceLocator.ResourceLocatorKey
Helper class of ResourceLocator. |
Constructor Summary | |
---|---|
ResourceLocator(Peer managed_peer)
|
Method Summary | |
---|---|
ResourceHandle |
locateAndCheckBusyLocalResource(Task t)
Locates a Busy Local Resource running target Task (guaranteed to be non-null). |
ResourceHandle |
locateAndCheckBusySupplyingResource(Task t)
Locates a Busy Supplying Resource running target Task (guaranteed to be non-null). |
ResourceHandle |
locateBusyLocalResource(Task t)
Locates a Busy Local Resource running target Task (may be null). |
ResourceHandle |
locateBusySupplyingResource(Task t)
Locates a Busy Supplying Resource running target Task (may be null). |
java.lang.String |
toString()
|
void |
trackBusyLocalResource(Task t,
ResourceHandle rh)
|
void |
trackBusySupplyingResource(Task t,
ResourceHandle rh)
|
void |
untrackBusyLocalResource(Task t)
|
void |
untrackBusySupplyingResource(Task t)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceLocator(Peer managed_peer) throws GridException
GridException
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void trackBusyLocalResource(Task t, ResourceHandle rh) throws GridException
GridException
public void trackBusySupplyingResource(Task t, ResourceHandle rh) throws GridException
GridException
public void untrackBusyLocalResource(Task t) throws GridException
GridException
public void untrackBusySupplyingResource(Task t) throws GridException
GridException
public ResourceHandle locateBusyLocalResource(Task t) throws GridException
t
- target Task
GridException
- if a parameter is illegalpublic ResourceHandle locateBusySupplyingResource(Task t) throws GridException
t
- target Task
GridException
- if a parameter is illegalpublic ResourceHandle locateAndCheckBusyLocalResource(Task t) throws GridException
t
- target Task
GridException
- if a parameter is illegal
or if no such Resource may be foundpublic ResourceHandle locateAndCheckBusySupplyingResource(Task t) throws GridException
t
- target Task
GridException
- if a parameter is illegal
or if no such Resource may be found
|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.