The class File represents a File as a readable object. More...
#include <File.h>
Public Member Functions | |
File () | |
Constructor. | |
File (std::string a) | |
Constructor with the name. | |
~File () | |
Destructor. | |
std::string | getHpssName () |
Getter for the member. | |
User * | getOwner () |
Getter for the member. | |
long long unsigned int | getSize () |
Getter for the member. | |
void | setHpssName (std::string) |
Setter for the member. | |
void | setOwner (User *) |
Setter for the member. | |
void | setSize (long long unsigned int) |
Setter for the member. | |
void | registerFileRequest (const FileRequest &fileReq) |
void | updateFileRequests (FileStatus) |
Update the status of the file requests TODO AngocA Who uses this method? | |
void | removeFileRequest (unsigned long fr_id) |
Remove the FileRequest having fs_id identifier from the list. | |
void | prepareCleanup () |
Tells the UsersContoller to unregister the related User instance. | |
Private Attributes | |
std::string | HpssName |
The name in HPSS namespace. | |
User * | Owner |
The user owning the file in HPSS. | |
long long unsigned int | Size |
The size of the file. | |
std::list< FileRequest > | FileRequests |
The file requests asking for this file. |
The class File represents a File as a readable object.
treqs::File::File | ( | ) |
Constructor.
treqs::File::File | ( | std::string | a | ) |
Constructor with the name.
Providing a file name, the constructor will set it
a | the file name |
treqs::File::~File | ( | ) |
Destructor.
std::string treqs::File::getHpssName | ( | ) |
Getter for the member.
treqs::User * treqs::File::getOwner | ( | ) |
Getter for the member.
long long unsigned int treqs::File::getSize | ( | ) |
Getter for the member.
void treqs::File::prepareCleanup | ( | ) |
Tells the UsersContoller to unregister the related User instance.
Before destroying an instance, the FilesController will call this method.
void treqs::File::registerFileRequest | ( | const FileRequest & | fileReq | ) |
Adds a file request to the list
fileReq | the object to add to the list |
void treqs::File::removeFileRequest | ( | unsigned long | fr_id | ) |
Remove the FileRequest having fs_id identifier from the list.
void treqs::File::setHpssName | ( | std::string | h | ) |
Setter for the member.
void treqs::File::setOwner | ( | User * | o | ) |
Setter for the member.
void treqs::File::setSize | ( | long long unsigned int | s | ) |
Setter for the member.
void treqs::File::updateFileRequests | ( | FileStatus | f | ) |
Update the status of the file requests TODO AngocA Who uses this method?
std::list<FileRequest> treqs::File::FileRequests [private] |
The file requests asking for this file.
std::string treqs::File::HpssName [private] |
The name in HPSS namespace.
User* treqs::File::Owner [private] |
The user owning the file in HPSS.
long long unsigned int treqs::File::Size [private] |
The size of the file.