Package org.apache.lucene.replicator
Class PerSessionDirectoryFactory
- java.lang.Object
-
- org.apache.lucene.replicator.PerSessionDirectoryFactory
-
- All Implemented Interfaces:
ReplicationClient.SourceDirectoryFactory
@Deprecated public class PerSessionDirectoryFactory extends Object implements ReplicationClient.SourceDirectoryFactory
Deprecated.use org.apache.lucene.replicator.nrt insteadAReplicationClient.SourceDirectoryFactorywhich returnsFSDirectoryunder a dedicated session directory. When a session is over, the entire directory is deleted.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description PerSessionDirectoryFactory(Path workDir)Deprecated.Constructor with the given sources mapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcleanupSession(String sessionID)Deprecated.Called to denote that the replication actions for this session were finished and the directory is no longer needed.DirectorygetDirectory(String sessionID, String source)Deprecated.Returns theDirectoryto use for the given session and source.
-
-
-
Constructor Detail
-
PerSessionDirectoryFactory
public PerSessionDirectoryFactory(Path workDir)
Deprecated.Constructor with the given sources mapping.
-
-
Method Detail
-
getDirectory
public Directory getDirectory(String sessionID, String source) throws IOException
Deprecated.Description copied from interface:ReplicationClient.SourceDirectoryFactoryReturns theDirectoryto 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.- Specified by:
getDirectoryin interfaceReplicationClient.SourceDirectoryFactory- Throws:
IOException- See Also:
ReplicationClient.SourceDirectoryFactory.cleanupSession(String)
-
cleanupSession
public void cleanupSession(String sessionID) throws IOException
Deprecated.Description copied from interface:ReplicationClient.SourceDirectoryFactoryCalled to denote that the replication actions for this session were finished and the directory is no longer needed.- Specified by:
cleanupSessionin interfaceReplicationClient.SourceDirectoryFactory- Throws:
IOException
-
-