org.objectweb.proactive.core.body.migration
Class MigratableBody

java.lang.Object
  extended byorg.objectweb.proactive.core.body.AbstractUniversalBody
      extended byorg.objectweb.proactive.core.body.AbstractBody
          extended byorg.objectweb.proactive.core.body.BodyImpl
              extended byorg.objectweb.proactive.core.component.body.ComponentBodyImpl
                  extended byorg.objectweb.proactive.core.body.migration.MigratableBody
All Implemented Interfaces:
Body, ComponentBody, Handlerizable, 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
messageEventProducer, replyReceiver, requestReceiver
 
Fields inherited from class org.objectweb.proactive.core.body.AbstractBody
ftmanager, internalBodySecurity, isInterfaceSecureImplemented, isSecurityOn, localBodyStrategy, openedSessions, psm, spmdManager, threadStore
 
Fields inherited from class org.objectweb.proactive.core.body.AbstractUniversalBody
bodyID, jobID, 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, internalReceiveReply, internalReceiveRequest, removeMessageEventListener, setImmediateService, updateNodeURL
 
Methods inherited from class org.objectweb.proactive.core.body.AbstractBody
acceptCommunication, blockCommunication, checkNewLocation, clearHandlersLevel, disableAC, enableAC, enterInThreadStore, exitFromThreadStore, getCertificate, getCertificateEncoded, getEntities, getFTManager, getFuturePool, getHandlerizableInfo, getHandlersLevel, getName, getPolicy, getPolicyFrom, getPolicyTo, getProActiveSecurityManager, getProActiveSPMDGroupManager, getPublicKey, getReifiedObject, getRequestQueue, getSPMDGroup, getSPMDGroupSize, getVNName, initiateSession, isActive, isAlive, negociateKeyReceiverSide, publicKeyExchange, randomValue, receiveFTMessage, receiveReply, receiveRequest, renegociateSessionIfNeeded, secretKeyExchange, sendRequest, serve, setExceptionHandler, setFTManager, setLocalBodyImpl, setPolicyServer, setSPMDGroup, startDefaultProActiveSecurityManager, startNewSession, terminate, terminateSession, toString, unsetExceptionHandler
 
Methods inherited from class org.objectweb.proactive.core.body.AbstractUniversalBody
getID, getJobID, 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
 
Methods inherited from interface org.objectweb.proactive.Job
getJobID
 

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
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 ? April 2005 INRIA All Rights Reserved.