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.CmdExceptionpublic boolean split(ClusterState clusterState, ZkNodeProps message, NamedList results) throws Exception
Exceptionpublic 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.