Class ReplicationService
java.lang.Object
org.apache.lucene.replicator.http.ReplicationService
Deprecated.
use org.apache.lucene.replicator.nrt instead
A server-side service for handling replication requests. The service assumes requests are sent in
the format
/<context>/<shard>/<action> where
contextis the servlet context, e.g.REPLICATION_CONTEXTshardis the ID of the shard, e.g. "s1"actionis one ofReplicationService.ReplicationActionvalues
http://host:port/replicate/s1/update.
This service is written like a servlet, and perform(HttpServletRequest, HttpServletResponse) takes servlet request and response accordingly, so it is quite easy to
embed in your application's servlet.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.Actions supported by theReplicationService. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Request parameter name for providing the file's name.static final StringDeprecated.Request parameter name for providing a session ID.static final StringDeprecated.Request parameter name for providing the file's source.static final StringDeprecated.Request parameter name for providing the revision version.static final StringDeprecated.The context path for the servlet. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidperform(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Deprecated.Executes the replication task.
-
Field Details
-
REPLICATION_CONTEXT
Deprecated.The context path for the servlet.- See Also:
-
REPLICATE_VERSION_PARAM
Deprecated.Request parameter name for providing the revision version.- See Also:
-
REPLICATE_SESSION_ID_PARAM
Deprecated.Request parameter name for providing a session ID.- See Also:
-
REPLICATE_SOURCE_PARAM
Deprecated.Request parameter name for providing the file's source.- See Also:
-
REPLICATE_FILENAME_PARAM
Deprecated.Request parameter name for providing the file's name.- See Also:
-
-
Constructor Details
-
ReplicationService
Deprecated.
-
-
Method Details
-
perform
public void perform(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException Deprecated.Executes the replication task.- Throws:
javax.servlet.ServletExceptionIOException
-