Class OcmhCollectionCommandContext
java.lang.Object
org.apache.solr.cloud.api.collections.OcmhCollectionCommandContext
- All Implemented Interfaces:
CollectionCommandContext
Context passed to Collection API commands when they execute in the Overseer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.solr.common.SolrCloseableCommand delegating to Overseer to retrieve cluster state update stats from a Collection API call.org.apache.solr.client.solrj.cloud.SolrCloudManagerorg.apache.solr.common.cloud.ZkStateReaderbooleanWhen this method returnstrue, Overseer specific actions do not make sense and commands should not be doing them.voidofferStateUpdate(byte[] data) This method enables the commands to enqueue to the overseer cluster state update.voidofferStateUpdate(org.apache.solr.common.MapWriter mw) voidMethod used by Per Replica States implementation to force the cluster state updater to immediately reload a collection from Zookeeper.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.cloud.api.collections.CollectionCommandContext
asyncRequestTracker, getAdminPath
-
Constructor Details
-
OcmhCollectionCommandContext
-
-
Method Details
-
isDistributedCollectionAPI
public boolean isDistributedCollectionAPI()Description copied from interface:CollectionCommandContextWhen this method returnstrue, Overseer specific actions do not make sense and commands should not be doing them.- Specified by:
isDistributedCollectionAPIin interfaceCollectionCommandContext
-
newShardHandler
- Specified by:
newShardHandlerin interfaceCollectionCommandContext
-
getSolrCloudManager
public org.apache.solr.client.solrj.cloud.SolrCloudManager getSolrCloudManager()- Specified by:
getSolrCloudManagerin interfaceCollectionCommandContext
-
getCoreContainer
- Specified by:
getCoreContainerin interfaceCollectionCommandContext
-
getZkStateReader
public org.apache.solr.common.cloud.ZkStateReader getZkStateReader()- Specified by:
getZkStateReaderin interfaceCollectionCommandContext
-
getDistributedClusterStateUpdater
- Specified by:
getDistributedClusterStateUpdaterin interfaceCollectionCommandContext
-
offerStateUpdate
public void offerStateUpdate(byte[] data) throws org.apache.zookeeper.KeeperException, InterruptedException Description copied from interface:CollectionCommandContextThis method enables the commands to enqueue to the overseer cluster state update. This should only be used when the cluster state update is running in the Overseer (and will throw an exception if called when Collection API is distributed given that distributed Collection API implies distributed Cluster State Update)- Specified by:
offerStateUpdatein interfaceCollectionCommandContext- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
offerStateUpdate
public void offerStateUpdate(org.apache.solr.common.MapWriter mw) throws org.apache.zookeeper.KeeperException, InterruptedException - Specified by:
offerStateUpdatein interfaceCollectionCommandContext- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
getCloseableToLatchOn
public org.apache.solr.common.SolrCloseable getCloseableToLatchOn()- Specified by:
getCloseableToLatchOnin interfaceCollectionCommandContext
-
getExecutorService
- Specified by:
getExecutorServicein interfaceCollectionCommandContext
-
getOverseerId
- Specified by:
getOverseerIdin interfaceCollectionCommandContext
-
getOverseerStats
Description copied from interface:CollectionCommandContextCommand delegating to Overseer to retrieve cluster state update stats from a Collection API call. This does not make sense when cluster state updates are distributed given Overseer does not see them and can't collect stats.- Specified by:
getOverseerStatsin interfaceCollectionCommandContext
-
submitIntraProcessMessage
Description copied from interface:CollectionCommandContextMethod used by Per Replica States implementation to force the cluster state updater to immediately reload a collection from Zookeeper. This method is not used when cluster state updates are distributed.- Specified by:
submitIntraProcessMessagein interfaceCollectionCommandContext
-