treqs::HPSSBridge Class Reference

Managing interactions with HPSS. More...

#include <HPSSBridge.h>

Collaboration diagram for treqs::HPSSBridge:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void getFileProperties (std::string n, unsigned long long int *s, int *p, std::string *t, int *sl) throw (HPSSStatError, HPSSUnknownError, HPSSError)
 Get Metadata of file from HPSS.
int hpss_stage (std::string, unsigned long long int s) throw (HPSSOpenError, HPSSResourceError, HPSSStageError, HPSSCloseError)
 Do the staging of a file.
TapeStatus getTapeProperties (std::string t)
 Find out if the tape is locked or unlocked.
std::string getAuth_type () const
 Getter for member.
std::string getHpss_home () const
 Getter for member.
std::string getImp_user () const
 Getter for member.
std::string getKeytab_path () const
 Getter for member.
void setAuth_type (std::string auth_type)
 Setter for member.
void setHpss_home (std::string hpss_home)
 Setter for member.
void setImp_user (std::string imp_user)
 Setter for member.
void setKeytab_path (std::string keytab_path)
 Setter for member.

Static Public Member Functions

static HPSSBridgegetInstance ()

Protected Member Functions

 HPSSBridge ()
 Constructor.
 ~HPSSBridge ()
 Destructor.

Private Member Functions

void hpss_init ()
 Initializes credential.
bool testKeytab ()

Private Attributes

std::string imp_user
 Impersonated user (usualy the owner of the keytab).
std::string keytab_path
 The keytab path.
std::string auth_type
 The HPSS auth type.
std::string hpss_home
 The path.

Static Private Attributes

static HPSSBridge_instance = 0
 Instance of the singleton.
static LoggerPtr logger
 Log4CXX logger.

Detailed Description

Managing interactions with HPSS.


Constructor & Destructor Documentation

treqs::HPSSBridge::HPSSBridge (  )  [protected]

Constructor.

Here is the caller graph for this function:

treqs::HPSSBridge::~HPSSBridge (  )  [protected]

Destructor.


Member Function Documentation

std::string treqs::HPSSBridge::getAuth_type (  )  const

Getter for member.

void treqs::HPSSBridge::getFileProperties ( std::string  n,
unsigned long long int *  s,
int *  p,
std::string *  t,
int *  sl 
) throw (HPSSStatError, HPSSUnknownError, HPSSError)

Get Metadata of file from HPSS.

Using HPSS API, get metadata from filename

Parameters:
n the name of the file
s pointer to the size
p pointer to the position
t pointer to the tapename
sl pointer to the storage level

Here is the call graph for this function:

Here is the caller graph for this function:

std::string treqs::HPSSBridge::getHpss_home (  )  const

Getter for member.

std::string treqs::HPSSBridge::getImp_user (  )  const

Getter for member.

HPSSBridge * treqs::HPSSBridge::getInstance (  )  [static]

Here is the call graph for this function:

Here is the caller graph for this function:

std::string treqs::HPSSBridge::getKeytab_path (  )  const

Getter for member.

TapeStatus treqs::HPSSBridge::getTapeProperties ( std::string  t  ) 

Find out if the tape is locked or unlocked.

Ask HPSS database (DB2) for the status of a tape

Parameters:
t the tape name
Returns:
the tape status
void treqs::HPSSBridge::hpss_init (  )  [private]

Initializes credential.

Here is the call graph for this function:

Here is the caller graph for this function:

int treqs::HPSSBridge::hpss_stage ( std::string  n,
unsigned long long int  s 
) throw (HPSSOpenError, HPSSResourceError, HPSSStageError, HPSSCloseError)

Do the staging of a file.

Stages a file to HPSS's disks.

Parameters:
n the name of the file
s the size of the file
Returns:
some return code (0 == OK)

Here is the call graph for this function:

Here is the caller graph for this function:

void treqs::HPSSBridge::setAuth_type ( std::string  auth_type  ) 

Setter for member.

void treqs::HPSSBridge::setHpss_home ( std::string  hpss_home  ) 

Setter for member.

void treqs::HPSSBridge::setImp_user ( std::string  imp_user  ) 

Setter for member.

void treqs::HPSSBridge::setKeytab_path ( std::string  keytab_path  ) 

Setter for member.

bool treqs::HPSSBridge::testKeytab (  )  [private]

test the readability of the keytab file

Returns:
true if keytab is readable, false otherwise

Here is the caller graph for this function:


Member Data Documentation

HPSSBridge * treqs::HPSSBridge::_instance = 0 [static, private]

Instance of the singleton.

std::string treqs::HPSSBridge::auth_type [private]

The HPSS auth type.

std::string treqs::HPSSBridge::hpss_home [private]

The path.

std::string treqs::HPSSBridge::imp_user [private]

Impersonated user (usualy the owner of the keytab).

std::string treqs::HPSSBridge::keytab_path [private]

The keytab path.

LoggerPtr treqs::HPSSBridge::logger [static, private]

Log4CXX logger.


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

Generated on 4 Mar 2010 for TReqS by  doxygen 1.6.1