|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.proactive.core.body.LocalBodyStore
**For internal use only**
This class store all active bodies known in the current JVM. The class is a singleton in a given JVM. It also associates each active thread with its matching body.
Body
,
UniqueID
Method Summary | |
void |
addBodyEventListener(BodyEventListener listener)
Adds a listener of body events. |
Body |
getCurrentThreadBody()
Returns the body associated with the thread calling the method. |
MetaObjectFactory |
getHalfBodyMetaObjectFactory()
|
static LocalBodyStore |
getInstance()
|
BodyMap |
getLocalBodies()
Returns all local Bodies in a new BodyMap |
Body |
getLocalBody(UniqueID bodyID)
Returns the body belonging to this JVM whose ID is the one specified. |
BodyMap |
getLocalHalfBodies()
Returns all local HalfBodies in a new BodyMap |
Body |
getLocalHalfBody(UniqueID bodyID)
Returns the halfbody belonging to this JVM whose ID is the one specified. |
void |
removeBodyEventListener(BodyEventListener listener)
Removes a listener of body events. |
void |
setCurrentThreadBody(Body body)
Associates the body with the thread calling the method. |
void |
setHalfBodyMetaObjectFactory(MetaObjectFactory factory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static LocalBodyStore getInstance()
public MetaObjectFactory getHalfBodyMetaObjectFactory()
public void setHalfBodyMetaObjectFactory(MetaObjectFactory factory)
public Body getCurrentThreadBody()
public void setCurrentThreadBody(Body body)
public Body getLocalBody(UniqueID bodyID)
bodyID
- the ID to look for
public Body getLocalHalfBody(UniqueID bodyID)
bodyID
- the ID to look for
public BodyMap getLocalBodies()
public BodyMap getLocalHalfBodies()
public void addBodyEventListener(BodyEventListener listener)
listener
- the listener of body events to addpublic void removeBodyEventListener(BodyEventListener listener)
listener
- the listener of body events to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |