Class MirroringUpdateRequestProcessorFactory
- java.lang.Object
-
- org.apache.solr.update.processor.UpdateRequestProcessorFactory
-
- org.apache.solr.crossdc.update.processor.MirroringUpdateRequestProcessorFactory
-
- All Implemented Interfaces:
UpdateRequestProcessorFactory.RunAlways,NamedListInitializedPlugin,SolrCoreAware
public class MirroringUpdateRequestProcessorFactory extends UpdateRequestProcessorFactory implements SolrCoreAware, UpdateRequestProcessorFactory.RunAlways
An update processor that works with theUpdateRequestProcessorFactoryto mirror update requests by submitting them to a sink that implements a queue producer.ADDs and DeleteByIDs are mirrored from leader shards and have internal _version_ fields stripped. node.
A single init arg is required, requestMirroringHandler, which specifies the plugin class used for mirroring requests. This class must implement
RequestMirroringHandler.It is recommended to use the
DocBasedVersionConstraintsProcessorFactoryupstream of this factory to ensure doc consistency between this cluster and the mirror(s).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMirroringUpdateRequestProcessorFactory.NoOpUpdateRequestProcessor-
Nested classes/interfaces inherited from class org.apache.solr.update.processor.UpdateRequestProcessorFactory
UpdateRequestProcessorFactory.RunAlways
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVER_SHOULD_MIRROR
-
Constructor Summary
Constructors Constructor Description MirroringUpdateRequestProcessorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateRequestProcessorgetInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)voidinform(SolrCore core)voidinit(org.apache.solr.common.util.NamedList<?> args)
-
-
-
Field Detail
-
SERVER_SHOULD_MIRROR
public static final String SERVER_SHOULD_MIRROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(org.apache.solr.common.util.NamedList<?> args)
- Specified by:
initin interfaceNamedListInitializedPlugin
-
inform
public void inform(SolrCore core)
- Specified by:
informin interfaceSolrCoreAware
-
getInstance
public UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
- Specified by:
getInstancein classUpdateRequestProcessorFactory
-
-