Class CollectionHandlingUtils
- java.lang.Object
-
- org.apache.solr.cloud.api.collections.CollectionHandlingUtils
-
public class CollectionHandlingUtils extends Object
This class contains helper methods used by commands of the Collection API. Previously these methods were inOverseerCollectionMessageHandlerand were refactored out to (eventually) allow Collection API commands to be executed outside the context of the Overseer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCollectionHandlingUtils.ShardRequestTracker
-
Field Summary
Fields Modifier and Type Field Description static Map<String,Object>COLLECTION_PROPS_AND_DEFAULTSstatic StringCREATE_NODE_SETstatic StringCREATE_NODE_SET_EMPTYstatic StringCREATE_NODE_SET_SHUFFLEstatic booleanCREATE_NODE_SET_SHUFFLE_DEFAULTstatic StringNUM_SLICESstatic StringONLY_ACTIVE_NODESstatic StringONLY_IF_DOWNstatic RandomRANDOMstatic StringREQUESTIDstatic StringSHARD_UNIQUEstatic StringSHARDS_PROP
-
Constructor Summary
Constructors Constructor Description CollectionHandlingUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CollectionHandlingUtils.ShardRequestTrackerasyncRequestTracker(String asyncId, CollectionCommandContext ccc)static CollectionHandlingUtils.ShardRequestTrackersyncRequestTracker(CollectionCommandContext ccc)static StringwaitForCoreNodeName(String collectionName, String msgNodeName, String msgCore, org.apache.solr.common.cloud.ZkStateReader zkStateReader)
-
-
-
Field Detail
-
NUM_SLICES
public static final String NUM_SLICES
- See Also:
- Constant Field Values
-
CREATE_NODE_SET_SHUFFLE_DEFAULT
public static final boolean CREATE_NODE_SET_SHUFFLE_DEFAULT
- See Also:
- Constant Field Values
-
CREATE_NODE_SET_SHUFFLE
public static final String CREATE_NODE_SET_SHUFFLE
- See Also:
- Constant Field Values
-
CREATE_NODE_SET_EMPTY
public static final String CREATE_NODE_SET_EMPTY
- See Also:
- Constant Field Values
-
CREATE_NODE_SET
public static final String CREATE_NODE_SET
- See Also:
- Constant Field Values
-
SHARDS_PROP
public static final String SHARDS_PROP
- See Also:
- Constant Field Values
-
REQUESTID
public static final String REQUESTID
- See Also:
- Constant Field Values
-
ONLY_IF_DOWN
public static final String ONLY_IF_DOWN
- See Also:
- Constant Field Values
-
SHARD_UNIQUE
public static final String SHARD_UNIQUE
- See Also:
- Constant Field Values
-
ONLY_ACTIVE_NODES
public static final String ONLY_ACTIVE_NODES
- See Also:
- Constant Field Values
-
RANDOM
public static final Random RANDOM
-
-
Method Detail
-
waitForCoreNodeName
public static String waitForCoreNodeName(String collectionName, String msgNodeName, String msgCore, org.apache.solr.common.cloud.ZkStateReader zkStateReader)
-
syncRequestTracker
public static CollectionHandlingUtils.ShardRequestTracker syncRequestTracker(CollectionCommandContext ccc)
-
asyncRequestTracker
public static CollectionHandlingUtils.ShardRequestTracker asyncRequestTracker(String asyncId, CollectionCommandContext ccc)
-
-