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
appends, defaults, httpCaching, initArgs, invariants
Constructor and Description |
---|
ReplicationHandler() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Simple one or two line description
|
String |
getSource()
CVS Source, SVN Source, etc
|
String |
getSourceId()
CVS Id, SVN Id, etc
|
NamedList |
getStatistics()
Any statistics this instance would like to be publicly available via
the Solr Administration interface.
|
String |
getVersion()
Simple common usage version, e.g. 2.0
|
void |
handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp) |
void |
inform(SolrCore core) |
getCategory, getDocs, getInitArgs, getName, handleRequest, init
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_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_FILE_CHECKSUM
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 GENERATION
public static final String OFFSET
public static final String LEN
public static final String FILE
public static final String NAME
public static final String SIZE
public static final String LAST_MODIFIED
public static final String CONF_FILE_SHORT
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 REPLICATE_AFTER
public static final String FILE_STREAM
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 void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
handleRequestBody
in class RequestHandlerBase
Exception
public String getDescription()
SolrInfoMBean
getDescription
in interface SolrInfoMBean
getDescription
in class RequestHandlerBase
public String getSourceId()
SolrInfoMBean
getSourceId
in interface SolrInfoMBean
getSourceId
in class RequestHandlerBase
public String getSource()
SolrInfoMBean
getSource
in interface SolrInfoMBean
getSource
in class RequestHandlerBase
public String getVersion()
SolrInfoMBean
getVersion
in interface SolrInfoMBean
getVersion
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