Package org.frankframework.filesystem
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 org.frankframework.filesystem.AbstractFileSystem
getMaxNumberOfMessagesToList, getNumberOfFilesInFolder, isOpen, setMaxNumberOfMessagesToListMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.frankframework.core.HasPhysicalDestination
getPhysicalDestinationNameMethods inherited from interface org.frankframework.filesystem.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.
-