@Test public void shouldApplyRebalance () { final AdaptationPerformer adaptationPerformer = mock( AdaptationPerformer.class ); action.apply( adaptationPerformer ); verify( adaptationPerformer ).rebalanceRegion( regionExecPlan.getRegionId(), newReplicaCount ); }
@Override public void apply ( final AdaptationPerformer performer ) { performer.rebalanceRegion( newExecPlan.getRegionId(), newExecPlan.getReplicaCount() ); }
RegionRebalanceAction implements AdaptationAction { @Override public void apply ( final AdaptationPerformer performer ) { performer.rebalanceRegion( newExecPlan.getRegionId(), newExecPlan.getReplicaCount() ); } }
RegionRebalanceAction implements AdaptationAction { @Override public void apply ( final AdaptationPerformer performer ) { performer.rebalanceRegion( newExecPlan.getRegionId(), newExecPlan.getReplicaCount() ); } RegionRebalanceAction( final RegionExecPlan execPlan, final int newReplicaCount ); }
RegionRebalanceAction implements AdaptationAction { @Override public void apply ( final AdaptationPerformer performer ) { performer.rebalanceRegion( newExecPlan.getRegionId(), newExecPlan.getReplicaCount() ); } RegionRebalanceAction( final RegionExecPlan execPlan, final int newReplicaCount ); @Override void apply( final AdaptationPerformer performer ); @Override RegionExecPlan getCurrentExecPlan(); @Override RegionExecPlan getNewExecPlan(); @Override AdaptationAction revert(); @Override String toString(); @Override boolean equals( final Object o ); @Override int hashCode(); }
RegionRebalanceAction implements AdaptationAction { @Override public void apply ( final AdaptationPerformer performer ) { performer.rebalanceRegion( newExecPlan.getRegionId(), newExecPlan.getReplicaCount() ); } RegionRebalanceAction( final RegionExecPlan execPlan, final int newReplicaCount ); @Override void apply( final AdaptationPerformer performer ); @Override RegionExecPlan getCurrentExecPlan(); @Override RegionExecPlan getNewExecPlan(); @Override AdaptationAction revert(); @Override String toString(); @Override boolean equals( final Object o ); @Override int hashCode();  }