Package org.apache.lucene.replicator
Interface ReplicationClient.ReplicationHandler
-
- All Known Implementing Classes:
IndexAndTaxonomyReplicationHandler,IndexReplicationHandler
- Enclosing class:
- ReplicationClient
public static interface ReplicationClient.ReplicationHandlerHandler for revisions obtained by the client.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,List<RevisionFile>>currentRevisionFiles()Returns the current revision files held by the handler.StringcurrentVersion()Returns the current revision version held by the handler.voidrevisionReady(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 Detail
-
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,List<String>> copiedFiles, Map<String,Directory> sourceDirectory) throws IOException
Called when a new revision was obtained and is available (i.e. all needed files were successfully copied).- Parameters:
version- the version of theRevisionthat was copiedrevisionFiles- the files contained by thisRevisioncopiedFiles- the files that were actually copiedsourceDirectory- a mapping from a source of files to theDirectorythey were copied into- Throws:
IOException
-
-