org.objectweb.proactive.ext.migration
Class MigrationStrategyManagerImpl

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

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
Throws:
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
Parameters:
event - the event that details the migration

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
Parameters:
event - the event that details the migration

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
Parameters:
event - the event that details the exception occured in the migration

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
Parameters:
event - the event that details the migration

executeMethodOnDeparture

protected void executeMethodOnDeparture(Body body)
                                 throws MigrationException
Throws:
MigrationException

executeMethodOnArrival

protected void executeMethodOnArrival(Body body)
                               throws MigrationException
Throws:
MigrationException

continueStrategy

protected void continueStrategy(Body body)
                         throws MigrationException
Throws:
MigrationException


Copyright 2001-2007 INRIA All Rights Reserved.