Package org.frankframework.filesystem
Class AbstractFileSystem<F>
java.lang.Object
org.frankframework.filesystem.AbstractFileSystem<F>
- All Implemented Interfaces:
AutoCloseable
,HasPhysicalDestination
,IBasicFileSystem<F>
- Direct Known Subclasses:
AbstractConnectedFileSystem
,AmazonS3FileSystem
,ExchangeFileSystem
,LocalFileSystem
,Samba1FileSystem
,Samba2FileSystem
Baseclass for
FileSystems
.- Author:
- Gerrit van Brakel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
int
getNumberOfFilesInFolder
(String folder) boolean
isOpen()
void
open()
void
setMaxNumberOfMessagesToList
(int maxNumberOfMessagesToList) The maximum number of messages to be retrieved from a folder.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
-
Field Details
-
log
protected final org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
AbstractFileSystem
public AbstractFileSystem()
-
-
Method Details
-
open
- Specified by:
open
in interfaceIBasicFileSystem<F>
- Throws:
FileSystemException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceIBasicFileSystem<F>
- Throws:
FileSystemException
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfaceIBasicFileSystem<F>
-
getNumberOfFilesInFolder
- Specified by:
getNumberOfFilesInFolder
in interfaceIBasicFileSystem<F>
- Throws:
FileSystemException
-
setMaxNumberOfMessagesToList
public void setMaxNumberOfMessagesToList(int maxNumberOfMessagesToList) The maximum number of messages to be retrieved from a folder.- Default value
- -1 (unlimited)
-
getMaxNumberOfMessagesToList
public int getMaxNumberOfMessagesToList()
-