public abstract class ConnectedFileSystemBase<F,C> extends FileSystemBase<F>
FileSystems
that use a 'Connection' to connect to their storage.log
Constructor and Description |
---|
ConnectedFileSystemBase() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
closeConnection(C connection)
Close connection to the FileSystem, releasing all resources.
|
protected abstract C |
createConnection()
Create a fresh connection to the FileSystem.
|
protected C |
getConnection()
Get a Connection from the pool, or the global shared connection.
|
void |
open() |
protected InputStream |
pendingRelease(InputStream stream,
C connection)
Postpone the release of the connection to after the stream is closed.
|
protected void |
releaseConnection(C connection,
boolean invalidateConnection)
Release the connection, return it to the pool or invalidate it.
|
getMaxNumberOfMessagesToList, getNumberOfFilesInFolder, isOpen, setMaxNumberOfMessagesToList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, copyFile, createFolder, deleteFile, exists, folderExists, getAdditionalFileProperties, getCanonicalName, getFileSize, getModificationTime, getName, getParentFolder, listFiles, moveFile, readFile, removeFolder, toFile, toFile
getDomain, getPhysicalDestinationName
protected abstract C createConnection() throws FileSystemException
FileSystemException
protected void closeConnection(C connection) throws FileSystemException
FileSystemException
public void open() throws FileSystemException
open
in interface IBasicFileSystem<F>
open
in class FileSystemBase<F>
FileSystemException
public void close() throws FileSystemException
close
in interface IBasicFileSystem<F>
close
in class FileSystemBase<F>
FileSystemException
protected C getConnection() throws FileSystemException
FileSystemException
protected void releaseConnection(C connection, boolean invalidateConnection)
protected InputStream pendingRelease(InputStream stream, C connection)
Copyright © 2023 Frank!Framework. All rights reserved.