Class ReplicationHandler

  • All Implemented Interfaces:
    AutoCloseable, ApiSupport, SolrInfoBean, NestedRequestHandler, SolrMetricProducer, SolrRequestHandler, PermissionNameProvider, SolrCoreAware

    public class ReplicationHandler
    extends RequestHandlerBase
    implements SolrCoreAware
    A Handler which provides a REST API for replication and serves replication requests from Followers.

    When running on the leader, it provides the following commands

    1. Get the current replicable index version (command=indexversion)
    2. Get the list of files for a given index version (command=filelist&indexversion=<VERSION>)
    3. Get full or a part (chunk) of a given index or a config file (command=filecontent&file=<FILE_NAME>) You can optionally specify an offset and length to get that chunk of the file. You can request a configuration file by using "cf" parameter instead of the "file" parameter.
    4. Get status/statistics (command=details)

    When running on the follower, it provides the following commands

    1. Perform an index fetch now (command=snappull)
    2. Get status/statistics (command=details)
    3. Abort an index fetch (command=abort)
    4. Enable/Disable polling the leader for new versions (command=enablepoll or command=disablepoll)
    Since:
    solr 1.4