Class CollectionHandlingUtils
java.lang.Object
org.apache.solr.cloud.api.collections.CollectionHandlingUtils
This class contains helper methods used by commands of the Collection API. Previously these
methods were in
OverseerCollectionMessageHandler and were refactored out to (eventually)
allow Collection API commands to be executed outside the context of the Overseer.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddExceptionToNamedList(Object operation, Exception e, org.apache.solr.common.util.NamedList<Object> results) Creates a SimpleOrderedMap with the exception details and adds it to the resultsasyncRequestTracker(String asyncId, CollectionCommandContext ccc) static EnumSet<org.apache.solr.common.cloud.Replica.Type> Returns replica types that are eligible to be leader.Returns names of properties that are used to specify a number of replicas of a given type.static StringwaitForCoreNodeName(String collectionName, String msgNodeName, String msgCore, org.apache.solr.common.cloud.ZkStateReader zkStateReader)
-
Field Details
-
NUM_SLICES
- See Also:
-
CREATE_NODE_SET_SHUFFLE_DEFAULT
public static final boolean CREATE_NODE_SET_SHUFFLE_DEFAULT- See Also:
-
CREATE_NODE_SET_SHUFFLE
- See Also:
-
CREATE_NODE_SET_EMPTY
- See Also:
-
CREATE_NODE_SET
- See Also:
-
SHARDS_PROP
- See Also:
-
REQUESTID
- See Also:
-
ONLY_IF_DOWN
- See Also:
-
SHARD_UNIQUE
- See Also:
-
ONLY_ACTIVE_NODES
- See Also:
-
COLLECTION_PROPS_AND_DEFAULTS
-
-
Constructor Details
-
CollectionHandlingUtils
public CollectionHandlingUtils()
-
-
Method Details
-
numReplicasProperties
Returns names of properties that are used to specify a number of replicas of a given type. -
leaderEligibleReplicaTypes
Returns replica types that are eligible to be leader. -
waitForCoreNodeName
-
addExceptionToNamedList
public static void addExceptionToNamedList(Object operation, Exception e, org.apache.solr.common.util.NamedList<Object> results) Creates a SimpleOrderedMap with the exception details and adds it to the results -
syncRequestTracker
public static CollectionHandlingUtils.ShardRequestTracker syncRequestTracker(CollectionCommandContext ccc) -
asyncRequestTracker
public static CollectionHandlingUtils.ShardRequestTracker asyncRequestTracker(String asyncId, CollectionCommandContext ccc)
-