Class ReplicationService
A server-side service for handling replication requests. The service assumes
requests are sent in the format /<context>/<shard>/<action>
where
context
is the servlet context, e.g. REPLICATION_CONTEXTshard
is the ID of the shard, e.g. "s1"action
is one of ReplicationService.ReplicationAction values
http://host:port/replicate/s1/update
.
Inheritance
Assembly: Lucene.Net.Replicator.dll
Syntax
public class ReplicationService : object, IReplicationService
Remarks
This service is written using abstractions over requests and responses which makes it easy to integrate into any hosting framework.
See the Lucene.Net.Replicator.AspNetCore for an example of an implementation for the AspNetCore Framework.
@lucene.experimental
Constructors
Name | Description |
---|---|
ReplicationService(IReadOnlyDictionary<String, IReplicator>, String) |
Fields
Name | Description |
---|---|
JSON_SERIALIZER_SETTINGS | Json Serializer Settings to use when serializing and deserializing errors. |
REPLICATE_FILENAME_PARAM | Request parameter name for providing the file's name. |
REPLICATE_SESSION_ID_PARAM | Request parameter name for providing a session ID. |
REPLICATE_SOURCE_PARAM | Request parameter name for providing the file's source. |
REPLICATE_VERSION_PARAM | Request parameter name for providing the revision version. |
REPLICATION_CONTEXT | The default context path for the ReplicationService. |
Methods
Name | Description |
---|---|
Perform(IReplicationRequest, IReplicationResponse) | Executes the replication task. |