org.objectweb.proactive.ext.migration
Class MigrationStrategyManagerImpl

java.lang.Object
  |
  +--org.objectweb.proactive.ext.migration.MigrationStrategyManagerImpl
All Implemented Interfaces:
java.util.EventListener, MigrationEventListener, MigrationStrategyManager, ProActiveListener, java.io.Serializable

public class MigrationStrategyManagerImpl
extends java.lang.Object
implements MigrationStrategyManager, MigrationEventListener, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
MigrationStrategyManagerImpl()
           
MigrationStrategyManagerImpl(Migratable migratableBody)
           
 
Method Summary
protected  void continueStrategy(Body body)
           
protected  void executeMethodOnArrival(Body body)
           
protected  void executeMethodOnDeparture(Body body)
           
 MigrationStrategy getMigrationStrategy()
           
 void migratedBodyRestarted(MigrationEvent event)
          Signals that the migrated body has restarted of the destination host side
 void migrationAboutToStart(MigrationEvent event)
          Signals that a migration is about to start
 void migrationExceptionThrown(MigrationEvent event)
          Signals that the migration failed with a exception detailed in the event.
 void migrationFinished(MigrationEvent event)
          Signals that the migration is finished on the originating host side
 void onArrival(java.lang.String s)
           
 void onDeparture(java.lang.String s)
           
 void setMigrationStrategy(MigrationStrategy s)
           
 void startStrategy(Body body)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigrationStrategyManagerImpl

public MigrationStrategyManagerImpl()

MigrationStrategyManagerImpl

public MigrationStrategyManagerImpl(Migratable migratableBody)
Method Detail

onDeparture

public void onDeparture(java.lang.String s)
Specified by:
onDeparture in interface MigrationStrategyManager

onArrival

public void onArrival(java.lang.String s)
Specified by:
onArrival in interface MigrationStrategyManager

startStrategy

public void startStrategy(Body body)
                   throws MigrationException
Specified by:
startStrategy in interface MigrationStrategyManager
MigrationException

getMigrationStrategy

public MigrationStrategy getMigrationStrategy()
Specified by:
getMigrationStrategy in interface MigrationStrategyManager

setMigrationStrategy

public void setMigrationStrategy(MigrationStrategy s)
Specified by:
setMigrationStrategy in interface MigrationStrategyManager

migrationAboutToStart

public void migrationAboutToStart(MigrationEvent event)
Description copied from interface: MigrationEventListener
Signals that a migration is about to start

Specified by:
migrationAboutToStart in interface MigrationEventListener

migrationFinished

public void migrationFinished(MigrationEvent event)
Description copied from interface: MigrationEventListener
Signals that the migration is finished on the originating host side

Specified by:
migrationFinished in interface MigrationEventListener

migrationExceptionThrown

public void migrationExceptionThrown(MigrationEvent event)
Description copied from interface: MigrationEventListener
Signals that the migration failed with a exception detailed in the event.

Specified by:
migrationExceptionThrown in interface MigrationEventListener

migratedBodyRestarted

public void migratedBodyRestarted(MigrationEvent event)
Description copied from interface: MigrationEventListener
Signals that the migrated body has restarted of the destination host side

Specified by:
migratedBodyRestarted in interface MigrationEventListener

executeMethodOnDeparture

protected void executeMethodOnDeparture(Body body)
                                 throws MigrationException
MigrationException

executeMethodOnArrival

protected void executeMethodOnArrival(Body body)
                               throws MigrationException
MigrationException

continueStrategy

protected void continueStrategy(Body body)
                         throws MigrationException
MigrationException


Copyright © April 2004 INRIA All Rights Reserved.