Class AbstractConnectedFileSystem<F,C>
java.lang.Object
org.frankframework.filesystem.AbstractFileSystem<F>
org.frankframework.filesystem.AbstractConnectedFileSystem<F,C>
- All Implemented Interfaces:
AutoCloseable, HasPhysicalDestination, IBasicFileSystem<F>
- Direct Known Subclasses:
AbstractMailFileSystem
Baseclass for
FileSystems that use a 'Connection' to connect to their storage.- Author:
- Gerrit van Brakel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidcloseConnection(C connection) Close connection to the FileSystem, releasing all resources.protected abstract CCreate a fresh connection to the FileSystem.protected CGet a Connection from the pool, or the global shared connection.voidopen()protected voidreleaseConnection(C connection, boolean invalidateConnection) Release the connection, return it to the pool or invalidate it.Methods inherited from class AbstractFileSystem
getMaxNumberOfMessagesToList, getNumberOfFilesInFolder, isOpen, setMaxNumberOfMessagesToListMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HasPhysicalDestination
getPhysicalDestinationNameMethods inherited from interface IBasicFileSystem
configure, copyFile, createFolder, deleteFile, exists, folderExists, getAdditionalFileProperties, getCanonicalName, getCanonicalNameOrErrorMessage, getFileSize, getModificationTime, getName, getParentFolder, isFolder, list, list, moveFile, readFile, removeFolder, toFile, toFile
-
Constructor Details
-
AbstractConnectedFileSystem
public AbstractConnectedFileSystem()
-
-
Method Details
-
createConnection
Create a fresh connection to the FileSystem.- Throws:
FileSystemException
-
closeConnection
Close connection to the FileSystem, releasing all resources.- Throws:
FileSystemException
-
open
- Specified by:
openin interfaceIBasicFileSystem<F>- Overrides:
openin classAbstractFileSystem<F>- Throws:
FileSystemException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceIBasicFileSystem<F>- Overrides:
closein classAbstractFileSystem<F>- Throws:
FileSystemException
-
getConnection
Get a Connection from the pool, or the global shared connection.- Throws:
FileSystemException
-
releaseConnection
Release the connection, return it to the pool or invalidate it.
-