public interface ExternalFileSystem extends FileSystem
This interface acts as a facade which allows performing common file operations for files outside a local disk,
like in a an FTP server, a cloud storage service, etc, and uses URI to identify files.
| Modifier and Type | Method and Description |
|---|---|
UriLock |
lock(URI uri)
Acquires and returns lock over the given
uri. |
void |
verifyNotLocked(URI uri)
Verify that the given
uri is not locked |
changeToBaseDir, copy, createDirectory, createMuleLock, delete, getBasePath, getFileMessageMediaType, list, list, lock, move, read, read, rename, verifyNotLocked, write, writeUriLock lock(URI uri)
uri.
Depending on the underlying filesystem, the extent of the lock will depend on the implementation. If a lock can not be
acquired, then an IllegalStateException is thrown.
Whoever request the lock MUST release it as soon as possible.
uri - the uri to the file you want to lockUriLockIllegalArgumentException - if a lock could not be acquiredvoid verifyNotLocked(URI uri)
uri is not lockeduri - the uri to testIllegalStateException - if the uri is indeed lockedCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.