public static interface ReplicationClient.SourceDirectoryFactory
Directory
to use for copying
the session files to.Modifier and Type | Method and Description |
---|---|
void |
cleanupSession(String sessionID)
Called to denote that the replication actions for this session were finished and the directory is no longer needed.
|
Directory |
getDirectory(String sessionID,
String source)
Returns the
Directory to use for the given session and source. |
void cleanupSession(String sessionID) throws IOException
IOException
Directory getDirectory(String sessionID, String source) throws IOException
Directory
to use for the given session and source.
Implementations may e.g. return different directories for different
sessions, or the same directory for all sessions. In that case, it is
advised to clean the directory before it is used for a new session.IOException
cleanupSession(String)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.