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
-
Field Summary
Fields inherited from class org.frankframework.filesystem.AbstractFileSystem
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
closeConnection
(C connection) Close connection to the FileSystem, releasing all resources.protected abstract C
Create a fresh connection to the FileSystem.protected C
Get a Connection from the pool, or the global shared connection.void
open()
protected void
releaseConnection
(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, setMaxNumberOfMessagesToList
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.frankframework.core.HasPhysicalDestination
getDomain, getPhysicalDestinationName
Methods inherited from interface org.frankframework.filesystem.IBasicFileSystem
configure, copyFile, createFolder, deleteFile, exists, folderExists, getAdditionalFileProperties, getCanonicalName, getCanonicalNameOrErrorMessage, getFileSize, getModificationTime, getName, getParentFolder, isFolder, 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:
open
in interfaceIBasicFileSystem<F>
- Overrides:
open
in classAbstractFileSystem<F>
- Throws:
FileSystemException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceIBasicFileSystem<F>
- Overrides:
close
in 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.
-