jgroup.arm.recovery
Class KeepInitialInPartition

java.lang.Object
  extended by jgroup.arm.recovery.AbstractRecoveryStrategy
      extended by jgroup.arm.recovery.KeepMinimalInPartition
          extended by jgroup.arm.recovery.KeepInitialInPartition
All Implemented Interfaces:
RecoveryStrategy

public class KeepInitialInPartition
extends KeepMinimalInPartition

If the current number of replicas drops below the initial redundancy specified for this replica, and the number of available hosts in this partition is greater than the initial redundancy then create new replicas to compensate for the lost redundancy.

Since:
Jgroup 1.2
Author:
Hein Meling

Field Summary
 
Fields inherited from class jgroup.arm.recovery.AbstractRecoveryStrategy
app, distScheme, missing
 
Constructor Summary
KeepInitialInPartition()
           
 
Method Summary
protected  int deltaRedundancy(AppConfig app)
          Returns the number of replicas that needs to be recovered to maintain the initial redundancy level specified.
 
Methods inherited from class jgroup.arm.recovery.KeepMinimalInPartition
handleFailure, relocateReplica, restartReplica
 
Methods inherited from class jgroup.arm.recovery.AbstractRecoveryStrategy
initialize, needsRecovery, prepareRecovery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeepInitialInPartition

public KeepInitialInPartition()
Method Detail

deltaRedundancy

protected int deltaRedundancy(AppConfig app)
Returns the number of replicas that needs to be recovered to maintain the initial redundancy level specified. If no recovery is needed, zero is returned.

Overrides:
deltaRedundancy in class AbstractRecoveryStrategy


Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.