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
When running on the slave, it provides the following commands
SolrInfoMBean.Category, SolrInfoMBean.Group
appends, defaults, httpCaching, initArgs, invariants
TYPE
Constructor and Description |
---|
ReplicationHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
abortFetch() |
boolean |
doFetch(SolrParams solrParams,
boolean forceReplication) |
SolrInfoMBean.Category |
getCategory()
Purpose of this Class
|
String |
getDescription()
Simple one or two line description
|
NamedList |
getStatistics()
Any statistics this instance would like to be publicly available via
the Solr Administration interface.
|
void |
handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp) |
void |
inform(SolrCore core) |
getDocs, getInitArgs, getName, getPluginInfo, getRequestHandler, getSolrParamsFromNamedList, getSource, getSubHandler, getVersion, handleRequest, init, initializeMetrics, setPluginInfo
public static final String PATH
public static final String MASTER_URL
public static final String STATUS
public static final String COMMAND
public static final String CMD_DETAILS
public static final String CMD_BACKUP
public static final String CMD_RESTORE
public static final String CMD_RESTORE_STATUS
public static final String CMD_FETCH_INDEX
public static final String CMD_ABORT_FETCH
public static final String CMD_GET_FILE_LIST
public static final String CMD_GET_FILE
public static final String CMD_DISABLE_POLL
public static final String CMD_DISABLE_REPL
public static final String CMD_ENABLE_REPL
public static final String CMD_ENABLE_POLL
public static final String CMD_INDEX_VERSION
public static final String CMD_SHOW_COMMITS
public static final String CMD_DELETE_BACKUP
public static final String GENERATION
public static final String OFFSET
public static final String LEN
public static final String FILE
public static final String SIZE
public static final String MAX_WRITE_PER_SECOND
public static final String CONF_FILE_SHORT
public static final String TLOG_FILE
public static final String CHECKSUM
public static final String ALIAS
public static final String CONF_CHECKSUM
public static final String CONF_FILES
public static final String TLOG_FILES
public static final String REPLICATE_AFTER
public static final String FILE_STREAM
public static final String POLL_INTERVAL
public static final String INTERVAL_ERR_MSG
public static final int PACKET_SZ
public static final String RESERVE
public static final String COMPRESSION
public static final String EXTERNAL
public static final String INTERNAL
public static final String ERR_STATUS
public static final String OK_STATUS
public static final String NEXT_EXECUTION_AT
public static final String NUMBER_BACKUPS_TO_KEEP_REQUEST_PARAM
public static final String NUMBER_BACKUPS_TO_KEEP_INIT_PARAM
public static final String WAIT
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.public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
handleRequestBody
in class RequestHandlerBase
Exception
public boolean abortFetch()
public boolean doFetch(SolrParams solrParams, boolean forceReplication)
public SolrInfoMBean.Category getCategory()
SolrInfoMBean
getCategory
in interface SolrInfoMBean
getCategory
in class RequestHandlerBase
public String getDescription()
SolrInfoMBean
getDescription
in interface SolrInfoMBean
getDescription
in class RequestHandlerBase
public NamedList getStatistics()
SolrInfoMBean
Any Object type may be stored in the list, but only the
toString()
representation will be used.
getStatistics
in interface SolrInfoMBean
getStatistics
in class RequestHandlerBase
public void inform(SolrCore core)
inform
in interface SolrCoreAware
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.