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

Field Summary
protected  boolean hasJustMigrated
          signal that the body has just migrated
protected static org.apache.log4j.Logger logger
           
protected  MigrationManager migrationManager
          The object responsible for the migration
 
Fields inherited from class org.objectweb.proactive.core.body.BodyImpl
JobID, messageEventProducer, replyReceiver, requestReceiver
 
Fields inherited from class org.objectweb.proactive.core.body.AbstractBody
internalBodySecurity, isSecurityOn, localBodyStrategy, openedSessions, pgm, psm, threadStore
 
Fields inherited from class org.objectweb.proactive.core.body.AbstractUniversalBody
bodyID, location, nodeURL, remoteBody, remoteBodyFactory
 
Constructor Summary
MigratableBody()
           
MigratableBody(java.lang.Object reifiedObject, java.lang.String nodeURL, MetaObjectFactory factory, java.lang.String jobID)
           
 
Method Summary
protected  void activityStarted()
          Signals that the activity of this body, managed by the active thread has just started.
 void addMigrationEventListener(MigrationEventListener listener)
           
protected  void changeBodyAfterMigration(UniversalBody migratedBody)
           
 UniversalBody cloneTo(Node node)
           
protected  UniversalBody internalMigrateTo(Node node, boolean byCopy)
           
 UniversalBody migrateTo(Node node)
           
 void removeMigrationEventListener(MigrationEventListener listener)
           
 
Methods inherited from class org.objectweb.proactive.core.component.body.ComponentBodyImpl
getProActiveComponent
 
Methods inherited from class org.objectweb.proactive.core.body.BodyImpl
activityStopped, addMessageEventListener, getJobID, internalReceiveReply, internalReceiveRequest, removeMessageEventListener, setImmediateService
 
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 org.objectweb.proactive.core.body.AbstractUniversalBody
getID, getNodeURL, getRemoteAdapter, updateLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.proactive.core.body.UniversalBody
getID, getNodeURL, getRemoteAdapter, updateLocation
 

Field Detail

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

Constructor Detail

MigratableBody

public MigratableBody()

MigratableBody

public MigratableBody(java.lang.Object reifiedObject,
                      java.lang.String nodeURL,
                      MetaObjectFactory factory,
                      java.lang.String jobID)
Method Detail

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.