Package org.apache.lucene.replicator
Interface ReplicationClient.ReplicationHandler
- All Known Implementing Classes:
IndexAndTaxonomyReplicationHandler
,IndexReplicationHandler
- Enclosing class:
- ReplicationClient
public static interface ReplicationClient.ReplicationHandler
Handler for revisions obtained by the client.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current revision files held by the handler.Returns the current revision version held by the handler.void
revisionReady
(String version, Map<String, List<RevisionFile>> revisionFiles, Map<String, List<String>> copiedFiles, Map<String, Directory> sourceDirectory) Called when a new revision was obtained and is available (i.e.
-
Method Details
-
currentRevisionFiles
Map<String,List<RevisionFile>> currentRevisionFiles()Returns the current revision files held by the handler. -
currentVersion
String currentVersion()Returns the current revision version held by the handler. -
revisionReady
void revisionReady(String version, Map<String, List<RevisionFile>> revisionFiles, Map<String, throws IOExceptionList<String>> copiedFiles, Map<String, Directory> sourceDirectory) Called when a new revision was obtained and is available (i.e. all needed files were successfully copied).- Parameters:
version
- the version of theRevision
that was copiedrevisionFiles
- the files contained by thisRevision
copiedFiles
- the files that were actually copiedsourceDirectory
- a mapping from a source of files to theDirectory
they were copied into- Throws:
IOException
-