public class AssignmentManager extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
effectiveVersion |
protected AssignmentPolicy |
policy |
Modifier and Type | Method and Description |
---|---|
long |
getEffectiveVersion() |
static AssignmentManager |
getInstance() |
String[] |
getMasterIds() |
int |
getPlacementForestIndex(DocumentURI uri) |
AssignmentPolicy |
getPolicy() |
List<ForestHost> |
getReplicas(String id) |
void |
initBucketPolicy(String[] forests,
LinkedHashSet<String> uForests) |
void |
initialize(AssignmentPolicy.Kind kind,
LinkedMapWritable map,
int batchSize) |
void |
initLegacyPolicy(LinkedHashSet<String> uForests) |
void |
initQueryPolicy(long[] docCount,
int batchSize) |
void |
initRangePolicy(long[] docCount,
int batchSize) |
void |
initSegmentPolicy(LinkedHashSet<String> uForests) |
void |
initStatisticalPolicy(long[] docCount,
int batchSize) |
void |
setEffectiveVersion(long effectiveVersion) |
void |
setInitialized(boolean val)
Used internally for testing
|
protected AssignmentPolicy policy
protected long effectiveVersion
public static AssignmentManager getInstance()
public AssignmentPolicy getPolicy()
public void initialize(AssignmentPolicy.Kind kind, LinkedMapWritable map, int batchSize)
public void initBucketPolicy(String[] forests, LinkedHashSet<String> uForests)
public void initRangePolicy(long[] docCount, int batchSize)
public void initStatisticalPolicy(long[] docCount, int batchSize)
public void initQueryPolicy(long[] docCount, int batchSize)
public void initLegacyPolicy(LinkedHashSet<String> uForests)
public void initSegmentPolicy(LinkedHashSet<String> uForests)
public int getPlacementForestIndex(DocumentURI uri)
public String[] getMasterIds()
public List<ForestHost> getReplicas(String id)
public void setInitialized(boolean val)
val
-public long getEffectiveVersion()
public void setEffectiveVersion(long effectiveVersion)
Copyright © 2020 MarkLogic
Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com