|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.proactive.core.event.AbstractEventProducer | +--org.objectweb.proactive.core.body.BodyMap
**For internal use only**
This class is a Map between UniqueID and either remote or local bodies. It accepts event listeners interested in BodyEvent. Body event are produced whenever a body is added or removed from the collection.
In case of serialization of a object of this class, all reference to local bodies will get serialized as reference of remote body. Local bodies are never serialized from this container.
Nested Class Summary |
Nested classes inherited from class org.objectweb.proactive.core.event.AbstractEventProducer |
AbstractEventProducer.ListenerList |
Field Summary |
Fields inherited from class org.objectweb.proactive.core.event.AbstractEventProducer |
eventListeners, logger, shouldSerializeListeners |
Constructor Summary | |
BodyMap()
|
Method Summary | |
void |
addBodyEventListener(BodyEventListener listener)
|
java.util.Iterator |
bodiesIterator()
|
java.lang.Object |
clone()
|
boolean |
containsBody(UniqueID id)
|
UniversalBody |
getBody(UniqueID id)
|
protected void |
notifyOneListener(ProActiveListener listener,
ProActiveEvent event)
Notifies one listener with the event. |
void |
putBody(UniqueID id,
UniversalBody b)
add the set (id, node) in the idToBodyMap block if it already exists until it is removed |
void |
readExternal(java.io.ObjectInput in)
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
void |
removeBody(UniqueID id)
|
void |
removeBodyEventListener(BodyEventListener listener)
|
int |
size()
|
java.lang.String |
toString()
|
void |
updateBody(UniqueID id,
UniversalBody b)
add the set (id, node) in the idToBodyMap erase any previous entry |
void |
writeExternal(java.io.ObjectOutput out)
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
Methods inherited from class org.objectweb.proactive.core.event.AbstractEventProducer |
addListener, hasListeners, notifyAllListeners, removeListener |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BodyMap()
Method Detail |
public void putBody(UniqueID id, UniversalBody b)
public void updateBody(UniqueID id, UniversalBody b)
public void removeBody(UniqueID id)
public int size()
public UniversalBody getBody(UniqueID id)
public boolean containsBody(UniqueID id)
public java.util.Iterator bodiesIterator()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public void addBodyEventListener(BodyEventListener listener)
public void removeBodyEventListener(BodyEventListener listener)
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
protected void notifyOneListener(ProActiveListener listener, ProActiveEvent event)
AbstractEventProducer
notifyOneListener
in class AbstractEventProducer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |