Managing interactions with HPSS. More...
#include <HPSSBridge.h>
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 HPSSBridge * | getInstance () |
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. |
Managing interactions with HPSS.
treqs::HPSSBridge::HPSSBridge | ( | ) | [protected] |
Constructor.
treqs::HPSSBridge::~HPSSBridge | ( | ) | [protected] |
Destructor.
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
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 |
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] |
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
t | the tape name |
void treqs::HPSSBridge::hpss_init | ( | ) | [private] |
Initializes credential.
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.
n | the name of the file | |
s | the size of the file |
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
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.