Package org.apache.solr.update
Class SolrCmdDistributor
- java.lang.Object
-
- org.apache.solr.update.SolrCmdDistributor
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class SolrCmdDistributor extends Object implements Closeable
Used for distributing commands from a shard leader to its replicas.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSolrCmdDistributor.ForwardNodestatic classSolrCmdDistributor.Nodestatic classSolrCmdDistributor.Reqstatic classSolrCmdDistributor.Responsestatic classSolrCmdDistributor.SolrErrorstatic classSolrCmdDistributor.StdNode
-
Field Summary
Fields Modifier and Type Field Description static Diagnostics.Callabletesting_errorHook
-
Constructor Summary
Constructors Constructor Description SolrCmdDistributor(UpdateShardHandler updateShardHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidblockAndDoRetries()voidclose()voiddistribAdd(AddUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params)voiddistribAdd(AddUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params, boolean synchronous)voiddistribAdd(AddUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params, boolean synchronous, DistributedUpdateProcessor.RollupRequestReplicationTracker rollupTracker, DistributedUpdateProcessor.LeaderRequestReplicationTracker leaderTracker)voiddistribCommit(CommitUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params)voiddistribDelete(DeleteUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params)voiddistribDelete(DeleteUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params, boolean sync, DistributedUpdateProcessor.RollupRequestReplicationTracker rollupTracker, DistributedUpdateProcessor.LeaderRequestReplicationTracker leaderTracker)voidfinish()List<SolrCmdDistributor.SolrError>getErrors()
-
-
-
Field Detail
-
testing_errorHook
public static Diagnostics.Callable testing_errorHook
-
-
Constructor Detail
-
SolrCmdDistributor
public SolrCmdDistributor(UpdateShardHandler updateShardHandler)
-
-
Method Detail
-
finish
public void finish()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
distribDelete
public void distribDelete(DeleteUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params) throws IOException
- Throws:
IOException
-
distribDelete
public void distribDelete(DeleteUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params, boolean sync, DistributedUpdateProcessor.RollupRequestReplicationTracker rollupTracker, DistributedUpdateProcessor.LeaderRequestReplicationTracker leaderTracker) throws IOException
- Throws:
IOException
-
distribAdd
public void distribAdd(AddUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params) throws IOException
- Throws:
IOException
-
distribAdd
public void distribAdd(AddUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params, boolean synchronous) throws IOException
- Throws:
IOException
-
distribAdd
public void distribAdd(AddUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params, boolean synchronous, DistributedUpdateProcessor.RollupRequestReplicationTracker rollupTracker, DistributedUpdateProcessor.LeaderRequestReplicationTracker leaderTracker) throws IOException
- Throws:
IOException
-
distribCommit
public void distribCommit(CommitUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params) throws IOException
- Throws:
IOException
-
blockAndDoRetries
public void blockAndDoRetries() throws IOException- Throws:
IOException
-
getErrors
public List<SolrCmdDistributor.SolrError> getErrors()
-
-