ldas-tools-ldasgen
2.6.1
|
Monitors a list of directories. More...
#include <MountPointStatus.hh>
Public Types | |
enum | state_type { STATE_OFFLINE, STATE_ONLINE } |
typedef std::list< std::string > | mount_point_list_type |
Container for a set of mount points. More... | |
Static Public Member Functions | |
static bool | Initialize () |
Initialize the class. More... | |
static void | Add (const mount_point_list_type &MountPoint) |
Adds directories to set of managed directories. More... | |
static bool | IsDirManaged (const std::string &Dir) |
Checks if directory is being managed. More... | |
static void | Remove (const mount_point_list_type &MountPoint) |
Removes directories from the set of managed directories. More... | |
static void | Set (const mount_point_list_type &MountPoint) |
Resets the set of directories to be managed. More... | |
static void | Set (const std::vector< std::string > &MountPoint) |
Resets the set of directories to be managed. More... | |
static state_type | Status (const std::string &Path) |
Returns the on-line status of the file system. More... | |
static void | Offline (const std::string &Path) |
Monitors a list of directories.
The main focus of this class is to provide methods which maintain information about a group of directories.
typedef std::list< std::string > GenericAPI::MountPointStatus::mount_point_list_type |
Container for a set of mount points.
This type is used by several routines to pass a set of directories on which to operate.
|
static |
Adds directories to set of managed directories.
[in] | MountPoint | A group of directories to be added. |
|
static |
Initialize the class.
|
static |
Checks if directory is being managed.
[in] | Dir | The name of a file or directory on the file system |
|
static |
|
static |
Removes directories from the set of managed directories.
[in] | MountPoint | A group of directories to be removed. |
|
static |
Resets the set of directories to be managed.
[in] | MountPoint | A group of directories to be managed. |
|
inlinestatic |
Resets the set of directories to be managed.
[in] | MountPoint | A group of directories to be managed. |
|
static |
Returns the on-line status of the file system.
[in] | Path | The Path to a file or directory on the file system for which the on-line status is being queried. |