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 class
SolrCmdDistributor.ForwardNode
static class
SolrCmdDistributor.Node
static class
SolrCmdDistributor.Req
static class
SolrCmdDistributor.Response
static class
SolrCmdDistributor.SolrError
static class
SolrCmdDistributor.StdNode
-
Field Summary
Fields Modifier and Type Field Description static Diagnostics.Callable
testing_errorHook
-
Constructor Summary
Constructors Constructor Description SolrCmdDistributor(UpdateShardHandler updateShardHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
blockAndDoRetries()
void
close()
void
distribAdd(AddUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params)
void
distribAdd(AddUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params, boolean synchronous)
void
distribAdd(AddUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params, boolean synchronous, DistributedUpdateProcessor.RollupRequestReplicationTracker rollupTracker, DistributedUpdateProcessor.LeaderRequestReplicationTracker leaderTracker)
void
distribCommit(CommitUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params)
void
distribDelete(DeleteUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params)
void
distribDelete(DeleteUpdateCommand cmd, List<SolrCmdDistributor.Node> nodes, org.apache.solr.common.params.ModifiableSolrParams params, boolean sync, DistributedUpdateProcessor.RollupRequestReplicationTracker rollupTracker, DistributedUpdateProcessor.LeaderRequestReplicationTracker leaderTracker)
void
finish()
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:
close
in interfaceAutoCloseable
- Specified by:
close
in 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()
-
-