dmlite  0.6
DummyPool.h
Go to the documentation of this file.
1 /// @file include/dmlite/cpp/dummy/DummyPool.h
2 /// @brief A dummy plugin that just delegates calls to a decorated one.
3 /// @details It makes sense as a base for other decorator plug-ins.
4 /// @author Alejandro Álvarez Ayllón <aalvarez@cern.ch>
5 #ifndef DMLITE_CPP_DUMMY_POOL_H
6 #define DMLITE_CPP_DUMMY_POOL_H
7 
8 #include "../poolmanager.h"
9 
10 namespace dmlite {
11 
12  class DummyPoolManager: public PoolManager {
13  public:
14  DummyPoolManager(PoolManager* decorated) throw (DmException);
15  virtual ~DummyPoolManager();
16 
17  virtual void setStackInstance(StackInstance*) throw (DmException);
18  virtual void setSecurityContext(const SecurityContext*) throw (DmException);
19 
20  virtual std::vector<Pool> getPools(PoolAvailability availability) throw (DmException);
21 
22  virtual Pool getPool(const std::string& poolname) throw (DmException);
23 
24  virtual void newPool(const Pool& pool) throw (DmException);
25  virtual void updatePool(const Pool& pool) throw (DmException);
26  virtual void deletePool(const Pool& pool) throw (DmException);
27 
28  virtual Location whereToRead(ino_t inode) throw (DmException);
29  virtual Location whereToRead(const std::string& path) throw (DmException);
30 
31  virtual Location whereToWrite(const std::string& path) throw (DmException);
32 
33  protected:
35  };
36 
37 };
38 
39 #endif // DMLITE_DUMMYPOOL_H
virtual void deletePool(const Pool &pool)
Remove a pool.
DummyPoolManager(PoolManager *decorated)
Definition: dmlite.h:161
PoolAvailability
Definition: poolmanager.h:35
Security context. To be created by the Authn.
Definition: authn.h:64
Represent the complete location of a file.
Definition: pooldriver.h:42
virtual Pool getPool(const std::string &poolname)
Get a specific pool.
Base exception class.
Definition: exceptions.h:17
virtual void newPool(const Pool &pool)
Create a new pool.
Interface for pool types.
Definition: poolmanager.h:33
virtual void setStackInstance(StackInstance *)
PoolManager * decorated_
Definition: DummyPool.h:34
virtual Location whereToRead(ino_t inode)
virtual void updatePool(const Pool &pool)
Update pool metadata.
virtual Location whereToWrite(const std::string &path)
Internal interface for handling pool metadata.
Definition: poolmanager.h:22
virtual void setSecurityContext(const SecurityContext *)
Set the security context.
Definition: DummyPool.h:12
virtual std::vector< Pool > getPools(PoolAvailability availability)