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

Get the current replicable index version
(command=indexversion)

Get the list of files for a given index version
(command=filelist&indexversion=<VERSION>)

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.

Get status/statistics (command=details)

When running on the slave, it provides the following
commands

Perform an index fetch now (command=snappull)

Get status/statistics (command=details)

Abort an index fetch (command=abort)

Enable/Disable polling the master for new versions (command=enablepoll
or command=disablepoll)

NUMBER_BACKUPS_TO_KEEP_INIT_PARAM

WAIT

Boolean param for tests that can be specified when using
CMD_FETCH_INDEX to force the current request to block until
the fetch is complete. NOTE: This param is not advised for
non-test code, since the the duration of the fetch for non-trivial
indexes will likeley cause the request to time out.