org.objectweb.proactive.core.body.migration
Class MigratableBody
java.lang.Object
|
+--org.objectweb.proactive.core.body.AbstractUniversalBody
|
+--org.objectweb.proactive.core.body.AbstractBody
|
+--org.objectweb.proactive.core.body.BodyImpl
|
+--org.objectweb.proactive.core.component.body.ComponentBodyImpl
|
+--org.objectweb.proactive.core.body.migration.MigratableBody
- All Implemented Interfaces:
- Body, ComponentBody, Job, LocalBodyStrategy, MessageEventProducer, Migratable, java.io.Serializable, UniversalBody
- Direct Known Subclasses:
- ActiveBody
- public class MigratableBody
- extends ComponentBodyImpl
- implements Migratable, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class org.objectweb.proactive.core.body.AbstractBody |
acceptCommunication, blockCommunication, checkNewLocation, disableAC, enableAC, enterInThreadStore, exitFromThreadStore, getCertificate, getCertificateEncoded, getEntities, getFuturePool, getName, getPolicy, getPolicyFrom, getPolicyTo, getProActiveSecurityManager, getPublicKey, getReifiedObject, getRequestQueue, getSPMDGroup, getVNName, initiateSession, isActive, isAlive, negociateKeyReceiverSide, publicKeyExchange, randomValue, receiveReply, receiveRequest, renegociateSessionIfNeeded, secretKeyExchange, sendRequest, serve, setLocalBodyImpl, setSPMDGroup, startDefaultProActiveSecurityManager, startNewSession, terminate, terminateSession, test, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
protected static org.apache.log4j.Logger logger
migrationManager
protected MigrationManager migrationManager
- The object responsible for the migration
hasJustMigrated
protected transient boolean hasJustMigrated
- signal that the body has just migrated
MigratableBody
public MigratableBody()
MigratableBody
public MigratableBody(java.lang.Object reifiedObject,
java.lang.String nodeURL,
MetaObjectFactory factory,
java.lang.String jobID)
migrateTo
public UniversalBody migrateTo(Node node)
throws MigrationException
- Specified by:
migrateTo
in interface Migratable
MigrationException
cloneTo
public UniversalBody cloneTo(Node node)
throws MigrationException
- Specified by:
cloneTo
in interface Migratable
MigrationException
addMigrationEventListener
public void addMigrationEventListener(MigrationEventListener listener)
- Specified by:
addMigrationEventListener
in interface Migratable
removeMigrationEventListener
public void removeMigrationEventListener(MigrationEventListener listener)
- Specified by:
removeMigrationEventListener
in interface Migratable
activityStarted
protected void activityStarted()
- Signals that the activity of this body, managed by the active thread has just started.
- Overrides:
activityStarted
in class AbstractBody
internalMigrateTo
protected UniversalBody internalMigrateTo(Node node,
boolean byCopy)
throws MigrationException
MigrationException
changeBodyAfterMigration
protected void changeBodyAfterMigration(UniversalBody migratedBody)
Copyright © April 2004 INRIA All Rights Reserved.