Class ReplicationService
- java.lang.Object
-
- org.apache.lucene.replicator.http.ReplicationService
-
@Deprecated public class ReplicationService extends Object
Deprecated.use org.apache.lucene.replicator.nrt insteadA server-side service for handling replication requests. The service assumes requests are sent in the format/<context>/<shard>/<action>wherecontextis 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 Classes Modifier and Type Class Description static classReplicationService.ReplicationActionDeprecated.Actions supported by theReplicationService.
-
Field Summary
Fields Modifier and Type Field Description static StringREPLICATE_FILENAME_PARAMDeprecated.Request parameter name for providing the file's name.static StringREPLICATE_SESSION_ID_PARAMDeprecated.Request parameter name for providing a session ID.static StringREPLICATE_SOURCE_PARAMDeprecated.Request parameter name for providing the file's source.static StringREPLICATE_VERSION_PARAMDeprecated.Request parameter name for providing the revision version.static StringREPLICATION_CONTEXTDeprecated.The context path for the servlet.
-
Constructor Summary
Constructors Constructor Description ReplicationService(Map<String,Replicator> replicators)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidperform(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Deprecated.Executes the replication task.
-
-
-
Field Detail
-
REPLICATION_CONTEXT
public static final String REPLICATION_CONTEXT
Deprecated.The context path for the servlet.- See Also:
- Constant Field Values
-
REPLICATE_VERSION_PARAM
public static final String REPLICATE_VERSION_PARAM
Deprecated.Request parameter name for providing the revision version.- See Also:
- Constant Field Values
-
REPLICATE_SESSION_ID_PARAM
public static final String REPLICATE_SESSION_ID_PARAM
Deprecated.Request parameter name for providing a session ID.- See Also:
- Constant Field Values
-
REPLICATE_SOURCE_PARAM
public static final String REPLICATE_SOURCE_PARAM
Deprecated.Request parameter name for providing the file's source.- See Also:
- Constant Field Values
-
REPLICATE_FILENAME_PARAM
public static final String REPLICATE_FILENAME_PARAM
Deprecated.Request parameter name for providing the file's name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReplicationService
public ReplicationService(Map<String,Replicator> replicators)
Deprecated.
-
-
Method Detail
-
perform
public void perform(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOExceptionDeprecated.Executes the replication task.- Throws:
javax.servlet.ServletExceptionIOException
-
-