org.inria.myriads.snoozenode.groupmanager.anomaly
public final class AnomalyResolver extends Object implements MigrationPlanListener
Constructor and Description |
---|
AnomalyResolver(RelocationSettings relocationPolicies,
ResourceDemandEstimator resourceDemandEstimator,
GroupManagerRepository groupManagerRepository,
StateMachine stateMachine,
ExternalNotifier externalNotifier)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onMigrationPlanEnforced()
Called when migration plan was enforced.
|
void |
resolveAnomaly(String localControllerId,
LocalControllerState state)
Called to resolve anomaly.
|
public AnomalyResolver(RelocationSettings relocationPolicies, ResourceDemandEstimator resourceDemandEstimator, GroupManagerRepository groupManagerRepository, StateMachine stateMachine, ExternalNotifier externalNotifier)
relocationPolicies
- The relocation parametersresourceDemandEstimator
- The resource demand estimatorgroupManagerRepository
- The group manager repositorystateMachine
- The state machineexternalNotifier
- The external notifierpublic void resolveAnomaly(String localControllerId, LocalControllerState state) throws Exception
localControllerId
- The anomaly local controller identifierstate
- The local controller stateException
- The exceptionpublic void onMigrationPlanEnforced()
onMigrationPlanEnforced
in interface MigrationPlanListener
Copyright © 2013. All Rights Reserved.