|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.core.body.future.FutureMap
public class FutureMap
Data structure which stores futures and corresponding automatic continuation to do. This map is like : [creatorID --> [sequenceID --> {list of futures to update, list of bodies for AC}]]
FuturePool
,
FutureProxy
,
Serialized FormConstructor Summary | |
---|---|
FutureMap()
|
Method Summary | |
---|---|
void |
addAutomaticContinuation(long id,
UniqueID creatorID,
UniversalBody bodyDest)
Add an AC to do for bodyDest when the futurPool will receive the value of the future indexed by (id, creatorID) |
java.util.ArrayList |
getAutomaticContinuation(long id,
UniqueID bodyID)
Return the list of ACs to (ie bodies destination) corresponding to (id,bodyID) if any, null otherwise. |
java.util.ArrayList |
getFuturesToUpdate(long id,
UniqueID creatorID)
Return the list of futures corresponding to (id,bodyID) if any, null otherwise. |
void |
receiveFuture(Future futureObject)
Add a future (id, creatorID) in the map. |
void |
removeFutures(long id,
UniqueID creatorID)
Remove entry corresponding to (id, creatorID) in the futureMap. |
void |
setMigrationTag()
Set the migration tag in all futures of the map. |
void |
unsetMigrationTag()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FutureMap()
Method Detail |
---|
public void addAutomaticContinuation(long id, UniqueID creatorID, UniversalBody bodyDest)
id
- sequence id of the futurecreatorID
- UniqueID of the creator body of the futurebodyDest
- body which receives the future (id, bodyID)public void receiveFuture(Future futureObject)
futureObject
- future to registerpublic java.util.ArrayList getFuturesToUpdate(long id, UniqueID creatorID)
id
- sequence id of the futurecreatorID
- UniqueID of the creator body of the futurepublic java.util.ArrayList getAutomaticContinuation(long id, UniqueID bodyID)
id
- sequence id of the futurebodyID
- UniqueID of the creator body of the futurepublic void removeFutures(long id, UniqueID creatorID)
id
- sequence id of the futurecreatorID
- UniqueID of the creator body of the futurepublic void unsetMigrationTag()
public void setMigrationTag()
FutureProxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |