dmlite  0.4
Public Member Functions | Protected Attributes | List of all members
dmlite::DummyPoolManager Class Reference

#include <DummyPool.h>

Inheritance diagram for dmlite::DummyPoolManager:
Inheritance graph
[legend]
Collaboration diagram for dmlite::DummyPoolManager:
Collaboration graph
[legend]

Public Member Functions

 DummyPoolManager (PoolManager *decorated) throw (DmException)
virtual ~DummyPoolManager ()
virtual void setStackInstance (StackInstance *) throw (DmException)
virtual void setSecurityContext (const SecurityContext *) throw (DmException)
 Set the security context.
virtual std::vector< PoolgetPools (PoolAvailability availability) throw (DmException)
virtual Pool getPool (const std::string &poolname) throw (DmException)
 Get a specific pool.
virtual Location whereToRead (const std::string &path) throw (DmException)
virtual Location whereToWrite (const std::string &path) throw (DmException)
- Public Member Functions inherited from dmlite::PoolManager
virtual ~PoolManager ()
 Destructor.
virtual void newPool (const Pool &pool)=0 throw (DmException)
 Create a new pool.
virtual void updatePool (const Pool &pool)=0 throw (DmException)
 Update pool metadata.
virtual void deletePool (const Pool &pool)=0 throw (DmException)
 Remove a pool.
virtual Location whereToRead (ino_t inode)=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.

Protected Attributes

PoolManagerdecorated_

Additional Inherited Members

- Public Types inherited from dmlite::PoolManager
enum  PoolAvailability {
  kAny, kNone, kForRead, kForWrite,
  kForBoth
}
- 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)

Constructor & Destructor Documentation

DummyPoolManager::DummyPoolManager ( PoolManager decorated) throw (DmException)
DummyPoolManager::~DummyPoolManager ( )
virtual

Member Function Documentation

Pool DummyPoolManager::getPool ( const std::string &  poolname) throw (DmException)
virtual

Get a specific pool.

Implements dmlite::PoolManager.

std::vector< Pool > DummyPoolManager::getPools ( PoolAvailability  availability) throw (DmException)
virtual

Get the list of pools.

Parameters
availabilityFilter by availability.

Implements dmlite::PoolManager.

void DummyPoolManager::setSecurityContext ( const SecurityContext ctx) throw (DmException)
virtual

Set the security context.

Implements dmlite::BaseInterface.

void DummyPoolManager::setStackInstance ( StackInstance si) throw (DmException)
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.

Location DummyPoolManager::whereToRead ( const std::string &  path) throw (DmException)
virtual

Get a location for a logical name.

Parameters
pathThe path to get.

Implements dmlite::PoolManager.

Location DummyPoolManager::whereToWrite ( const std::string &  path) throw (DmException)
virtual

Start the PUT of a file.

Parameters
pathThe path of the file to create.
Returns
The physical location where to write.

Implements dmlite::PoolManager.

Member Data Documentation

PoolManager* dmlite::DummyPoolManager::decorated_
protected

The documentation for this class was generated from the following files: