|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.ic2d.spy.Spy
public class Spy
The master Spy class
Field Summary | |
---|---|
protected boolean |
isActive
|
protected SpyEventManager |
spyEventManager
event manager |
protected SpyListener |
spyListener
the listener of our events |
protected long |
updateFrequence
Timeout between updates |
Constructor Summary | |
---|---|
Spy()
|
|
Spy(SpyListener spyListener)
|
Method Summary | |
---|---|
void |
addMessageEventListener(UniqueID bodyId)
|
MigratableBody |
getBody(UniqueID bodyId)
|
java.lang.String |
getSystemProperty(java.lang.String key)
|
long |
getUpdateFrequence()
|
void |
migrateTo(UniqueID bodyId,
java.lang.String nodeDestination)
|
protected void |
notifyListener(SpyEvent[] events)
|
void |
removeMessageEventListener(UniqueID bodyId)
|
void |
runActivity(Body body)
Runs the activity of the active object. |
void |
sendEventsForAllActiveObjects()
|
void |
setUpdateFrequence(long updateFrequence)
|
void |
terminate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long updateFrequence
protected transient SpyEventManager spyEventManager
protected SpyListener spyListener
protected boolean isActive
Constructor Detail |
---|
public Spy()
public Spy(SpyListener spyListener)
Method Detail |
---|
public long getUpdateFrequence()
public void sendEventsForAllActiveObjects()
public void setUpdateFrequence(long updateFrequence)
public void migrateTo(UniqueID bodyId, java.lang.String nodeDestination) throws MigrationException
MigrationException
public java.lang.String getSystemProperty(java.lang.String key)
public void terminate()
public void addMessageEventListener(UniqueID bodyId)
public void removeMessageEventListener(UniqueID bodyId)
public void runActivity(Body body)
RunActive
runActivity
in interface RunActive
body
- the body of the active object being startedpublic MigratableBody getBody(UniqueID bodyId)
protected void notifyListener(SpyEvent[] events)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |