public class SplitShardCmd extends Object implements OverseerCollectionMessageHandler.Cmd
Constructor and Description |
---|
SplitShardCmd(OverseerCollectionMessageHandler ocmh) |
Modifier and Type | Method and Description |
---|---|
void |
call(ClusterState state,
ZkNodeProps message,
NamedList results) |
static String |
fillRanges(SolrCloudManager cloudManager,
ZkNodeProps message,
DocCollection collection,
Slice parentSlice,
List<DocRouter.Range> subRanges,
List<String> subSlices,
List<String> subShardNames) |
static Slice |
getParentSlice(ClusterState clusterState,
String collectionName,
AtomicReference<String> slice,
String splitKey) |
boolean |
split(ClusterState clusterState,
ZkNodeProps message,
NamedList results) |
public SplitShardCmd(OverseerCollectionMessageHandler ocmh)
public void call(ClusterState state, ZkNodeProps message, NamedList results) throws Exception
call
in interface OverseerCollectionMessageHandler.Cmd
Exception
public boolean split(ClusterState clusterState, ZkNodeProps message, NamedList results) throws Exception
Exception
public static Slice getParentSlice(ClusterState clusterState, String collectionName, AtomicReference<String> slice, String splitKey)
public static String fillRanges(SolrCloudManager cloudManager, ZkNodeProps message, DocCollection collection, Slice parentSlice, List<DocRouter.Range> subRanges, List<String> subSlices, List<String> subShardNames)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.