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.body.migration.MigratableBody
- All Implemented Interfaces:
- Body, Job, LocalBodyStrategy, MessageEventProducer, Migratable, NFEProducer, SecurityEntity, java.io.Serializable, UniversalBody
- Direct Known Subclasses:
- ComponentBodyImpl
- public class MigratableBody
- extends BodyImpl
- 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, getFTManager, getFuturePool, getName, getPolicy, getProActiveSecurityManager, getProActiveSPMDGroupManager, getPublicKey, getReifiedObject, getRequestQueue, getShortcutTargetBody, getSPMDGroup, getSPMDGroupSize, isActive, isAlive, publicKeyExchange, randomValue, receiveFTMessage, receiveReply, receiveRequest, registerIncomingFutures, renegociateSessionIfNeeded, secretKeyExchange, sendRequest, serve, setFTManager, setLocalBodyImpl, setPolicyServer, setSPMDGroup, startDefaultProActiveSecurityManager, startNewSession, terminate, terminateSession, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.objectweb.proactive.Job |
getJobID |
bodyLogger
protected static org.apache.log4j.Logger bodyLogger
migrationLogger
protected static org.apache.log4j.Logger migrationLogger
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
- Throws:
MigrationException
cloneTo
public UniversalBody cloneTo(Node node)
throws MigrationException
- Specified by:
cloneTo
in interface Migratable
- Throws:
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
- Throws:
MigrationException
changeBodyAfterMigration
protected void changeBodyAfterMigration(UniversalBody migratedBody)
Copyright 2001-2005 INRIA All Rights Reserved.