|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.handler.RequestHandlerBase org.apache.solr.handler.ReplicationHandler
public class ReplicationHandler
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
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean |
---|
SolrInfoMBean.Category |
Fields inherited from class org.apache.solr.handler.RequestHandlerBase |
---|
appends, defaults, httpCaching, initArgs, invariants |
Constructor Summary | |
---|---|
ReplicationHandler()
|
Method Summary | |
---|---|
boolean |
doFetch(SolrParams solrParams,
boolean forceReplication)
|
String |
getDescription()
Simple one or two line description |
String |
getSource()
CVS Source, SVN Source, etc |
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)
|
Methods inherited from class org.apache.solr.handler.RequestHandlerBase |
---|
getCategory, getDocs, getInitArgs, getName, getVersion, handleRequest, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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_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 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 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 durration of the fetch for non-trivial
indexes will likeley cause the request to time out.
Constructor Detail |
---|
public ReplicationHandler()
Method Detail |
---|
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
handleRequestBody
in class RequestHandlerBase
Exception
public boolean doFetch(SolrParams solrParams, boolean forceReplication)
public String getDescription()
SolrInfoMBean
getDescription
in interface SolrInfoMBean
getDescription
in class RequestHandlerBase
public String getSource()
SolrInfoMBean
getSource
in interface SolrInfoMBean
getSource
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |