#include <db_service_file_system.h>
◆ DbServiceFileSystem()
◆ ~DbServiceFileSystem()
mrs::file_system::DbServiceFileSystem::~DbServiceFileSystem |
( |
| ) |
|
|
overridedefault |
◆ check_access()
void mrs::file_system::DbServiceFileSystem::check_access |
( |
const std::string & |
path, |
|
|
int64_t |
flags |
|
) |
| |
|
overridevirtual |
Checks existence and accessibility of a file.
- Parameters
-
path | the path to the file to check |
flags | the access modes to check, as a binary mask RWX only. |
- Exceptions
-
NoSuchFileException | if the file denoted by the path does not exist |
IOException | in case of IO error |
SecurityException | if this FileSystem denied the operation |
Implements shcore::polyglot::IFile_system.
◆ create_directory()
void mrs::file_system::DbServiceFileSystem::create_directory |
( |
const std::string & |
path | ) |
|
|
overridevirtual |
Creates a directory.
param dir the directory to create param attrs the optional attributes to set atomically when creating the directory
- Exceptions
-
FileAlreadyExistsException | if a file on given path already exists |
IOException | in case of IO error |
UnsupportedOperationException | if the attributes contain an attribute which cannot be set atomically |
SecurityException | if this FileSystem denied the operation |
Implements shcore::polyglot::IFile_system.
◆ lookup_file()
ContentFilePtr mrs::file_system::DbServiceFileSystem::lookup_file |
( |
const std::string & |
request_path | ) |
|
|
private |
◆ new_byte_channel()
Opens or creates a file returning a SeekableByteChannel to access the file content.
- Parameters
-
path | the path to the file to open |
- Returns
- the created SeekableByteChannel
- Exceptions
-
FileAlreadyExistsException | if CREATE_NEW option is set and a file already exists on given path |
IOException | in case of IO error |
UnsupportedOperationException | if the attributes contain an attribute which cannot be set atomically |
IllegalArgumentException | in case of invalid options combination |
SecurityException | if this FileSystem denied the operation |
Implements shcore::polyglot::IFile_system.
◆ new_directory_stream()
Returns directory entries.
param dir the path to the directory to iterate entries for param filter the filter
- Returns
- the new DirectoryStream
- Exceptions
-
NotDirectoryException | when given path does not denote a directory |
IOException | in case of IO error |
SecurityException | if this FileSystem denied the operation |
Implements shcore::polyglot::IFile_system.
◆ parse_string_path()
std::string mrs::file_system::DbServiceFileSystem::parse_string_path |
( |
const std::string & |
path | ) |
|
|
overridevirtual |
Parses a path from a String.
This method is called only on the FileSystem with
scheme.
- Parameters
-
path | the string path to be converted to Path |
- Returns
- the Path
- Exceptions
-
UnsupportedOperationException | when the FileSystem supports only URI |
IllegalArgumentException | if the
static char * path Definition: mysqldump.cc:150
string cannot be converted to a Path |
Implements shcore::polyglot::IFile_system.
◆ parse_uri_path()
std::string mrs::file_system::DbServiceFileSystem::parse_uri_path |
( |
const std::string & |
uri | ) |
|
|
overridevirtual |
Parses a path from an URI.
- Parameters
-
uri | the URI to be converted to Path |
- Returns
- the Path representing given URI
- Exceptions
-
UnsupportedOperationException | when URI scheme is not supported |
IllegalArgumentException | if preconditions on the do not hold. The format of the URI is FileSystem specific. |
Implements shcore::polyglot::IFile_system.
◆ remove()
void mrs::file_system::DbServiceFileSystem::remove |
( |
const std::string & |
path | ) |
|
|
overridevirtual |
Deletes a file.
- Parameters
-
path | the path to the file to delete |
- Exceptions
-
NoSuchFileException | if a file on given path does not exist |
DirectoryNotEmptyException | if the path denotes a non empty directory |
IOException | in case of IO error |
SecurityException | if this FileSystem denied the operation |
Implements shcore::polyglot::IFile_system.
◆ to_absolute_path()
std::string mrs::file_system::DbServiceFileSystem::to_absolute_path |
( |
const std::string & |
path | ) |
|
|
overridevirtual |
Resolves given path to an absolute path.
- Parameters
-
path | the path to resolve, may be a non normalized path |
- Returns
- an absolute Path
- Exceptions
-
SecurityException | if this FileSystem denied the operation |
Implements shcore::polyglot::IFile_system.
◆ to_real_path()
std::string mrs::file_system::DbServiceFileSystem::to_real_path |
( |
const std::string & |
path | ) |
|
|
overridevirtual |
Returns the real (canonical) path of an existing file.
- Parameters
-
path | the path to resolve, may be a non normalized path param linkOptions options determining how the symbolic links should be handled |
- Returns
- an absolute canonical path
- Exceptions
-
IOException | in case of IO error |
SecurityException | if this FileSystem denied the operation |
Implements shcore::polyglot::IFile_system.
◆ traverse_files()
void mrs::file_system::DbServiceFileSystem::traverse_files |
( |
std::function< bool(const ContentFilePtr &)> |
callback | ) |
|
|
private |
◆ m_service_endpoint
The documentation for this class was generated from the following files: