Class ReplicationHandler

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

    public class ReplicationHandler
    extends RequestHandlerBase
    implements SolrCoreAware

    A Handler which provides a REST API for replication and serves replication requests from Slaves.

    When running on the master, 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 slave, 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 master for new versions (command=enablepoll or command=disablepoll)
    Since:
    solr 1.4