public final class MergePolicy extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
ALWAYS_MERGE_SCORE |
static int |
NEVER_MERGE_SCORE |
Constructor and Description |
---|
MergePolicy(int mergeThresholdNewGroup,
int mergeThresholdMergingUnconfirmed,
int mergeThresholdMergingConfirmed,
int mergeThresholdMergingConfirmedWithUnconfirmed,
int mergeThresholdMergingUnconfirmedWithNewMasters,
int mergeThresholdMergingConfirmedWithNewMasters,
int mergeThresholdRemergingPreviouslySplit) |
Modifier and Type | Method and Description |
---|---|
static MergePolicy |
alwaysMerge() |
static MergePolicy |
alwaysSuggest() |
boolean |
equals(Object obj) |
int |
getMergeThresholdMergingConfirmed() |
int |
getMergeThresholdMergingConfirmedWithNewMasters() |
int |
getMergeThresholdMergingConfirmedWithUnconfirmed() |
int |
getMergeThresholdMergingUnconfirmed() |
int |
getMergeThresholdMergingUnconfirmedWithNewMasters() |
int |
getMergeThresholdNewGroup() |
int |
getMergeThresholdRemergingPreviouslySplit() |
int |
hashCode() |
boolean |
isAlwaysMerge() |
public static final int NEVER_MERGE_SCORE
public static final int ALWAYS_MERGE_SCORE
public MergePolicy(int mergeThresholdNewGroup, int mergeThresholdMergingUnconfirmed, int mergeThresholdMergingConfirmed, int mergeThresholdMergingConfirmedWithUnconfirmed, int mergeThresholdMergingUnconfirmedWithNewMasters, int mergeThresholdMergingConfirmedWithNewMasters, int mergeThresholdRemergingPreviouslySplit)
public int getMergeThresholdNewGroup()
public int getMergeThresholdMergingUnconfirmed()
public int getMergeThresholdMergingConfirmed()
public int getMergeThresholdMergingConfirmedWithUnconfirmed()
public int getMergeThresholdMergingUnconfirmedWithNewMasters()
public int getMergeThresholdMergingConfirmedWithNewMasters()
public int getMergeThresholdRemergingPreviouslySplit()
public boolean isAlwaysMerge()
public static MergePolicy alwaysMerge()
public static MergePolicy alwaysSuggest()
Copyright © 2016. All rights reserved.