dmlite::DummyPoolManager Class Reference

#include <DummyPool.h>

Inherits dmlite::PoolManager.

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

List of all members.

Public Member Functions

 DummyPoolManager (PoolManager *decorated)
virtual ~DummyPoolManager ()
virtual void setStackInstance (StackInstance *)
virtual void setSecurityContext (const SecurityContext *)
 Set the security context.
virtual std::vector< PoolgetPools (PoolAvailability availability)
virtual Pool getPool (const std::string &poolname)
 Get a specific pool.
virtual void newPool (const Pool &pool)
 Create a new pool.
virtual void updatePool (const Pool &pool)
 Update pool metadata.
virtual void deletePool (const Pool &pool)
 Remove a pool.
virtual Location whereToRead (ino_t inode)
virtual Location whereToRead (const std::string &path)
virtual Location whereToWrite (const std::string &path)
virtual DmStatus fileCopyPush (const std::string &localsrcpath, const std::string &remotedesturl, int cksumcheck, char *cksumtype, dmlite_xferinfo *progressdata)
virtual DmStatus fileCopyPull (const std::string &localdestpath, const std::string &remotesrcurl, int cksumcheck, char *cksumtype, dmlite_xferinfo *progressdata)

Protected Attributes

PoolManagerdecorated_

Constructor & Destructor Documentation

dmlite::DummyPoolManager::DummyPoolManager ( PoolManager decorated  ) 
virtual dmlite::DummyPoolManager::~DummyPoolManager (  )  [virtual]

Member Function Documentation

virtual void dmlite::DummyPoolManager::deletePool ( const Pool pool  )  [virtual]

Remove a pool.

Reimplemented from dmlite::PoolManager.

virtual DmStatus dmlite::DummyPoolManager::fileCopyPull ( const std::string &  localdestpath,
const std::string &  remotesrcurl,
int  cksumcheck,
char *  cksumtype,
dmlite_xferinfo progressdata 
) [virtual]

Fetch a file from a given URL

Parameters:
localdestpath The logical name of the file to create
remotesrcurl The URL to read the file from
Returns:
0 on success, error code otherwise. EAGAIN means performance marker

Reimplemented from dmlite::PoolManager.

virtual DmStatus dmlite::DummyPoolManager::fileCopyPush ( const std::string &  localsrcpath,
const std::string &  remotedesturl,
int  cksumcheck,
char *  cksumtype,
dmlite_xferinfo progressdata 
) [virtual]

Write a logical file towards a given URL

Parameters:
localsrcpath The path of the file
remotedesturl The URL to write to
Returns:
0 on success, error code otherwise. EAGAIN means performance marker

Reimplemented from dmlite::PoolManager.

virtual Pool dmlite::DummyPoolManager::getPool ( const std::string &  poolname  )  [virtual]

Get a specific pool.

Reimplemented from dmlite::PoolManager.

virtual std::vector<Pool> dmlite::DummyPoolManager::getPools ( PoolAvailability  availability  )  [virtual]

Get the list of pools.

Parameters:
availability Filter by availability.

Reimplemented from dmlite::PoolManager.

virtual void dmlite::DummyPoolManager::newPool ( const Pool pool  )  [virtual]

Create a new pool.

Reimplemented from dmlite::PoolManager.

virtual void dmlite::DummyPoolManager::setSecurityContext ( const SecurityContext ctx  )  [virtual]

Set the security context.

Reimplemented from dmlite::BaseInterface.

virtual void dmlite::DummyPoolManager::setStackInstance ( StackInstance si  )  [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.

Reimplemented from dmlite::BaseInterface.

virtual void dmlite::DummyPoolManager::updatePool ( const Pool pool  )  [virtual]

Update pool metadata.

Reimplemented from dmlite::PoolManager.

virtual Location dmlite::DummyPoolManager::whereToRead ( const std::string &  path  )  [virtual]

Get a location for a logical name.

Parameters:
path The path to get.

Reimplemented from dmlite::PoolManager.

virtual Location dmlite::DummyPoolManager::whereToRead ( ino_t  inode  )  [virtual]

Get a location for an inode

Parameters:
inode The file inode.

Reimplemented from dmlite::PoolManager.

virtual Location dmlite::DummyPoolManager::whereToWrite ( const std::string &  path  )  [virtual]

Start the PUT of a file.

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

Reimplemented from dmlite::PoolManager.


Member Data Documentation


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

Generated on 5 Nov 2020 for dmlite by  doxygen 1.6.1