|
dmlite
0.4
|
Interface for Catalog (Namespaces). More...
#include <catalog.h>


Public Member Functions | |
| virtual | ~Catalog () |
| Destructor. | |
| virtual void | changeDir (const std::string &path)=0 throw (DmException) |
| virtual std::string | getWorkingDir (void)=0 throw (DmException) |
| virtual ExtendedStat | extendedStat (const std::string &path, bool followSym=true)=0 throw (DmException) |
| virtual void | addReplica (const Replica &replica)=0 throw (DmException) |
| virtual void | deleteReplica (const Replica &replica)=0 throw (DmException) |
| virtual std::vector< Replica > | getReplicas (const std::string &path)=0 throw (DmException) |
| virtual void | symlink (const std::string &path, const std::string &symlink)=0 throw (DmException) |
| virtual std::string | readLink (const std::string &path)=0 throw (DmException) |
| virtual void | unlink (const std::string &path)=0 throw (DmException) |
| virtual void | create (const std::string &path, mode_t mode)=0 throw (DmException) |
| virtual mode_t | umask (mode_t mask)=0 throw () |
| virtual void | setMode (const std::string &path, mode_t mode)=0 throw (DmException) |
| virtual void | setOwner (const std::string &path, uid_t newUid, gid_t newGid, bool followSymLink=true)=0 throw (DmException) |
| virtual void | setSize (const std::string &path, size_t newSize)=0 throw (DmException) |
| virtual void | setChecksum (const std::string &path, const std::string &csumtype, const std::string &csumvalue)=0 throw (DmException) |
| virtual void | setAcl (const std::string &path, const Acl &acl)=0 throw (DmException) |
| virtual void | utime (const std::string &path, const struct utimbuf *buf)=0 throw (DmException) |
| virtual std::string | getComment (const std::string &path)=0 throw (DmException) |
| virtual void | setComment (const std::string &path, const std::string &comment)=0 throw (DmException) |
| virtual void | setGuid (const std::string &path, const std::string &guid)=0 throw (DmException) |
| virtual void | updateExtendedAttributes (const std::string &path, const Extensible &attr)=0 throw (DmException) |
| virtual Directory * | openDir (const std::string &path)=0 throw (DmException) |
| virtual void | closeDir (Directory *dir)=0 throw (DmException) |
| virtual struct dirent * | readDir (Directory *dir)=0 throw (DmException) |
| virtual ExtendedStat * | readDirx (Directory *dir)=0 throw (DmException) |
| virtual void | makeDir (const std::string &path, mode_t mode)=0 throw (DmException) |
| virtual void | rename (const std::string &oldPath, const std::string &newPath)=0 throw (DmException) |
| virtual void | removeDir (const std::string &path)=0 throw (DmException) |
| virtual Replica | getReplica (const std::string &rfn)=0 throw (DmException) |
| virtual void | updateReplica (const Replica &replica)=0 throw (DmException) |
Public Member Functions inherited from dmlite::BaseInterface | |
| virtual | ~BaseInterface () |
| Virtual destructor. | |
| virtual std::string | getImplId (void) const =0 throw () |
| String ID of the implementation. | |
Additional Inherited Members | |
Protected Member Functions inherited from dmlite::BaseInterface | |
| virtual void | setStackInstance (StackInstance *si)=0 throw (DmException) |
| virtual void | setSecurityContext (const SecurityContext *ctx)=0 throw (DmException) |
| Set the security context. | |
Static Protected Member Functions inherited from dmlite::BaseInterface | |
| static void | setStackInstance (BaseInterface *i, StackInstance *si) throw (DmException) |
| These method allows plugins to call other plugins setStackInstance and setSecurityContext. | |
| static void | setSecurityContext (BaseInterface *i, const SecurityContext *ctx) throw (DmException) |
Interface for Catalog (Namespaces).
|
virtual |
Destructor.
|
pure virtual |
Add a new replica for a file.
| replica | Stores the data that is going to be added. fileid must point to the id of the logical file in the catalog. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Change the working dir. Future not-absolute paths will use this as root.
| path | The new working dir. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Close a directory opened previously.
| dir | The directory handle as returned by NsInterface::openDir. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Creates an entry in the catalog.
| path | The new file. |
| mode | The creation mode. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Delete a replica.
| replica | The replica to remove. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Do an extended stat of a file or directory.
| path | The path of the file or directory. |
| followSym | If true, symlinks will be followed. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Get the comment associated with a file.
| path | The file or directory. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Get a replica.
| rfn | The replica file name. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Get replicas for a file.
| path | The file for which replicas will be retrieved. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Get the current working dir.
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Create a new empty directory.
| path | The path of the new directory. |
| mode | The creation mode. |
Implemented in dmlite::DummyCatalog, and dmlite::BuiltInCatalog.
|
pure virtual |
Open a directory for reading.
| path | The directory to open. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
readpure virtual |
Read next entry from a directory (simple read).
| dir | The directory handle as returned by NsInterface::openDir. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Read next entry from a directory (stat information added).
| dir | The directory handle as returned by NsInterface::openDir. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Returns the path pointed by the symlink path
| path | The symlink file. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Remove a directory.
| path | The path of the directory to remove. |
Implemented in dmlite::DummyCatalog, and dmlite::BuiltInCatalog.
|
pure virtual |
Rename a file or directory.
| oldPath | The old name. |
| newPath | The new name. |
Implemented in dmlite::DummyCatalog, and dmlite::BuiltInCatalog.
|
pure virtual |
Set the ACLs
| path | The file to modify. |
| acl | The Access Control List. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Set the checksum of a file.
| path | The file to modify. |
| csumtype | The checksum type (CS, AD or MD). |
| csumvalue | The checksum value. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Set the comment associated with a file.
| path | The file or directory. |
| comment | The new comment. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Set GUID of a file.
| path | The file. |
| guid | The new GUID. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Set the mode of a file.
| path | The file to modify. |
| mode | The new mode as an integer (i.e. 0755) |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Set the owner of a file.
| path | The file to modify. |
| newUid | The uid of the new owneer. |
| newGid | The gid of the new group. |
| followSymLink | If set to true, symbolic links will be followed. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Set the size of a file.
| path | The file to modify. |
| newSize | The new file size. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Creates a new symlink.
| path | The existing path. |
| symlink | The new access path. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Sets the calling process’s file mode creation mask to mask & 0777.
| mask | The new mask. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Remove a file.
| path | The path to remove. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Update extended metadata on the catalog.
| path | The file to update. |
| attr | The extended attributes struct. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Update a replica.
| replica | The replica to modify. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
|
pure virtual |
Set access and/or modification time.
| path | The file path. |
| buf | A struct holding the new times. |
Implemented in dmlite::BuiltInCatalog, and dmlite::DummyCatalog.
1.8.1.2