org.inria.myriads.snoozenode.groupmanager.anomaly
Class AnomalyResolver

java.lang.Object
  extended by org.inria.myriads.snoozenode.groupmanager.anomaly.AnomalyResolver
All Implemented Interfaces:
MigrationPlanListener

public final class AnomalyResolver
extends Object
implements MigrationPlanListener

Anomaly resolver.

Author:
Eugen Feller

Constructor Summary
AnomalyResolver(RelocationSettings relocationPolicies, ResourceDemandEstimator resourceDemandEstimator, GroupManagerRepository groupManagerRepository, StateMachine stateMachine)
          Constructor.
 
Method Summary
 void onMigrationPlanEnforced()
          Called when migration plan was enforced.
 void resolveAnomaly(String localControllerId, LocalControllerState state)
          Called to resolve anomaly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnomalyResolver

public AnomalyResolver(RelocationSettings relocationPolicies,
                       ResourceDemandEstimator resourceDemandEstimator,
                       GroupManagerRepository groupManagerRepository,
                       StateMachine stateMachine)
Constructor.

Parameters:
relocationPolicies - The relocation parameters
resourceDemandEstimator - The resource demand estimator
groupManagerRepository - The group manager repository
stateMachine - The state machine
Method Detail

resolveAnomaly

public void resolveAnomaly(String localControllerId,
                           LocalControllerState state)
                    throws Exception
Called to resolve anomaly.

Parameters:
localControllerId - The anomaly local controller identifier
state - The local controller state
Throws:
Exception - The exception

onMigrationPlanEnforced

public void onMigrationPlanEnforced()
Called when migration plan was enforced.

Specified by:
onMigrationPlanEnforced in interface MigrationPlanListener


Copyright © 2012. All Rights Reserved.