treqs::ReadingDAO Class Reference
Managing Reading object updates to database.
More...
#include <ReadingDAO.h>
List of all members.
Public Member Functions |
bool | first_update (std::string n, FileStatus fs, time_t t, std::string m, long qid, std::string tape, int pos, int cos, unsigned long long int size) |
bool | update (std::string n, FileStatus fs, time_t t, int tries, std::string m, int e, long qid, std::string tape, int pos) |
Static Public Member Functions |
static ReadingDAO * | getInstance () |
Private Member Functions |
| ReadingDAO () |
virtual | ~ReadingDAO () |
Static Private Attributes |
static LoggerPtr | logger |
static ReadingDAO * | _singleton = 0 |
Detailed Description
Managing Reading object updates to database.
Constructor & Destructor Documentation
treqs::ReadingDAO::ReadingDAO |
( |
|
) |
[private] |
treqs::ReadingDAO::~ReadingDAO |
( |
|
) |
[private, virtual] |
Member Function Documentation
bool treqs::ReadingDAO::first_update |
( |
std::string |
n, |
|
|
FileStatus |
fs, |
|
|
time_t |
t, |
|
|
std::string |
m, |
|
|
long |
qid, |
|
|
std::string |
tape, |
|
|
int |
pos, |
|
|
int |
cos, |
|
|
unsigned long long int |
size | |
|
) |
| | |
Updates the status of a set of file requests in the jobs table according to the filename This function is specifically used for inserting metadata also
- Parameters:
-
| n | the name of the file updated |
| fs | the new status to update |
| t | the time stamp of the state change |
| m | the message to put |
| qid | the identifier of the queue |
| tape | the tape where the file is stored |
| pos | the position on the tape |
| cos | the Class of Service |
| size | the file size in bytes |
- Returns:
- true if one or more rows are updated
ReadingDAO * treqs::ReadingDAO::getInstance |
( |
|
) |
[static] |
bool treqs::ReadingDAO::update |
( |
std::string |
n, |
|
|
FileStatus |
fs, |
|
|
time_t |
t, |
|
|
int |
tries, |
|
|
std::string |
m, |
|
|
int |
e, |
|
|
long |
qid, |
|
|
std::string |
tape, |
|
|
int |
pos | |
|
) |
| | |
Updates the status of a set of file requests in the jobs table according to the filename
- Parameters:
-
| n | the name of the file updated |
| fs | the new status to update |
| t | the time stamp of the state change |
| tries | the number of tries for this file |
| m | the message to put |
| e | the error code |
| qid | the queue id |
| tape | the tape where the file is stored |
| pos | the position on the tape |
- Returns:
- true if one or more rows are updated
Member Data Documentation
The documentation for this class was generated from the following files: