dmlite
0.4
|
#include <DummyCatalog.h>
Public Member Functions | |
DummyCatalog (Catalog *decorated) throw (DmException) | |
virtual | ~DummyCatalog () |
Destructor. | |
virtual void | setStackInstance (StackInstance *) throw (DmException) |
virtual void | setSecurityContext (const SecurityContext *) throw (DmException) |
Set the security context. | |
virtual void | changeDir (const std::string &) throw (DmException) |
virtual std::string | getWorkingDir (void) throw (DmException) |
virtual ExtendedStat | extendedStat (const std::string &, bool) throw (DmException) |
virtual void | addReplica (const Replica &) throw (DmException) |
virtual void | deleteReplica (const Replica &) throw (DmException) |
virtual std::vector< Replica > | getReplicas (const std::string &) throw (DmException) |
virtual void | symlink (const std::string &, const std::string &) throw (DmException) |
std::string | readLink (const std::string &path) throw (DmException) |
virtual void | unlink (const std::string &) throw (DmException) |
virtual void | create (const std::string &, mode_t) throw (DmException) |
virtual mode_t | umask (mode_t) throw () |
virtual void | setMode (const std::string &, mode_t) throw (DmException) |
virtual void | setOwner (const std::string &, uid_t, gid_t, bool) throw (DmException) |
virtual void | setSize (const std::string &, size_t) throw (DmException) |
virtual void | setChecksum (const std::string &, const std::string &, const std::string &) throw (DmException) |
virtual void | setAcl (const std::string &, const Acl &) throw (DmException) |
virtual void | utime (const std::string &, const struct utimbuf *) throw (DmException) |
virtual std::string | getComment (const std::string &) throw (DmException) |
virtual void | setComment (const std::string &, const std::string &) throw (DmException) |
virtual void | setGuid (const std::string &, const std::string &) throw (DmException) |
virtual void | updateExtendedAttributes (const std::string &, const Extensible &) throw (DmException) |
virtual Directory * | openDir (const std::string &) throw (DmException) |
virtual void | closeDir (Directory *) throw (DmException) |
virtual struct dirent * | readDir (Directory *) throw (DmException) |
virtual ExtendedStat * | readDirx (Directory *) throw (DmException) |
virtual void | makeDir (const std::string &, mode_t) throw (DmException) |
virtual void | rename (const std::string &, const std::string &) throw (DmException) |
virtual void | removeDir (const std::string &) throw (DmException) |
virtual Replica | getReplica (const std::string &rfn) throw (DmException) |
virtual void | updateReplica (const Replica &replica) throw (DmException) |
![]() | |
virtual | ~Catalog () |
Destructor. | |
![]() | |
virtual | ~BaseInterface () |
Virtual destructor. | |
virtual std::string | getImplId (void) const =0 throw () |
String ID of the implementation. |
Protected Attributes | |
Catalog * | decorated_ |
DummyCatalog::DummyCatalog | ( | Catalog * | decorated | ) | throw (DmException) |
Constructor
decorated | The underlying decorated catalog. |
|
virtual |
Destructor.
|
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. |
Implements dmlite::Catalog.
|
virtual |
Change the working dir. Future not-absolute paths will use this as root.
path | The new working dir. |
Implements dmlite::Catalog.
|
virtual |
Close a directory opened previously.
dir | The directory handle as returned by NsInterface::openDir. |
Implements dmlite::Catalog.
|
virtual |
Creates an entry in the catalog.
path | The new file. |
mode | The creation mode. |
Implements dmlite::Catalog.
|
virtual |
|
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. |
Implements dmlite::Catalog.
|
virtual |
Get the comment associated with a file.
path | The file or directory. |
Implements dmlite::Catalog.
|
virtual |
|
virtual |
Get replicas for a file.
path | The file for which replicas will be retrieved. |
Implements dmlite::Catalog.
|
virtual |
|
virtual |
Create a new empty directory.
path | The path of the new directory. |
mode | The creation mode. |
Implements dmlite::Catalog.
|
virtual |
Open a directory for reading.
path | The directory to open. |
Implements dmlite::Catalog.
|
readvirtual |
Read next entry from a directory (simple read).
dir | The directory handle as returned by NsInterface::openDir. |
Implements dmlite::Catalog.
|
virtual |
Read next entry from a directory (stat information added).
dir | The directory handle as returned by NsInterface::openDir. |
Implements dmlite::Catalog.
|
virtual |
Returns the path pointed by the symlink path
path | The symlink file. |
Implements dmlite::Catalog.
|
virtual |
Remove a directory.
path | The path of the directory to remove. |
Implements dmlite::Catalog.
|
virtual |
Rename a file or directory.
oldPath | The old name. |
newPath | The new name. |
Implements dmlite::Catalog.
|
virtual |
Set the ACLs
path | The file to modify. |
acl | The Access Control List. |
Implements dmlite::Catalog.
|
virtual |
Set the checksum of a file.
path | The file to modify. |
csumtype | The checksum type (CS, AD or MD). |
csumvalue | The checksum value. |
Implements dmlite::Catalog.
|
virtual |
Set the comment associated with a file.
path | The file or directory. |
comment | The new comment. |
Implements dmlite::Catalog.
|
virtual |
|
virtual |
Set the mode of a file.
path | The file to modify. |
mode | The new mode as an integer (i.e. 0755) |
Implements dmlite::Catalog.
|
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. |
Implements dmlite::Catalog.
|
virtual |
Set the security context.
Implements dmlite::BaseInterface.
|
virtual |
Set the size of a file.
path | The file to modify. |
newSize | The new file size. |
Implements dmlite::Catalog.
|
virtual |
Set the StackInstance. Some plugins may need to access other stacks (i.e. the pool may need the catalog) However, at construction time not all the stacks have been populated, so this will be called once all are instantiated.
Implements dmlite::BaseInterface.
|
virtual |
Creates a new symlink.
path | The existing path. |
symlink | The new access path. |
Implements dmlite::Catalog.
|
virtual |
Sets the calling process’s file mode creation mask to mask & 0777.
mask | The new mask. |
Implements dmlite::Catalog.
|
virtual |
|
virtual |
Update extended metadata on the catalog.
path | The file to update. |
attr | The extended attributes struct. |
Implements dmlite::Catalog.
|
virtual |
Update a replica.
replica | The replica to modify. |
Implements dmlite::Catalog.
|
virtual |
Set access and/or modification time.
path | The file path. |
buf | A struct holding the new times. |
Implements dmlite::Catalog.
|
protected |