FileLocation.h
static std::shared_ptr< FileLocation > LOCATION(std::shared_ptr< StorageService > ss)
File location specifier for a storage service's (single) mount point root.
Definition: FileLocation.cpp:32
static bool equal(const std::shared_ptr< FileLocation > &lhs, const std::shared_ptr< FileLocation > &rhs)
Method to compare two file locations.
Definition: FileLocation.h:58
static std::shared_ptr< FileLocation > SCRATCH
Static location that denotes a compute service's scratch space.
Definition: FileLocation.h:35
std::string getMountPoint()
Get the location's mount point.
Definition: FileLocation.cpp:116
std::string toString()
Give a <ss name>="">:<mount point>="">:<dir>" string for the location.
Definition: FileLocation.cpp:92
std::shared_ptr< StorageService > getStorageService()
Get the location's storage service.
Definition: FileLocation.cpp:105
std::string getAbsolutePathAtMountPoint()
Get the location's path at mount point.
Definition: FileLocation.cpp:127
static bool properPathPrefix(std::string path1, std::string path2)
Helper method to find if a path is a proper prefix of another path.
Definition: FileLocation.cpp:208
std::string getFullAbsolutePath()
Get the location's full absolute path.
Definition: FileLocation.cpp:138
A class that implements a weak file system abstraction.
Definition: LogicalFileSystem.h:29
Definition: Alarm.cpp:19
static std::string sanitizePath(std::string path)
Method to sanitize an absolute path (and make it absolute if it's not)
Definition: FileLocation.cpp:151