#include <glite/jdl/extractfiles.h>
Constructors/Destructors/Copy | |
| ExtractedAd () | |
| ExtractedAd (const ExtractedAd &jobad) | |
| virtual void | operator= (const ExtractedAd &extractedAd) |
| virtual | ~ExtractedAd () throw () |
| ExtractedAd * | Copy () |
| static void | ExtractedAdCopy (const ExtractedAd &source, ExtractedAd *dest) |
SET/ADD Methods | |
| void | setNodeName (const std::string &nodeName) |
| void | setNodeName (const std::string &nodeName, const std::string &jobid) |
| void | setJobId (const std::string &jobid) |
| void | setJobId (const std::string &nodeName, const std::string &jobid) |
| void | setFiles (const std::vector< FileAd > &files) |
| void | addFileAd (const FileAd &file) |
| void | addFileAd (const std::string &path) |
| void | addNode (ExtractedAd *extracted) |
| static void | setMaxTotalSize (unsigned int maxTotalSize) |
Public Member Functions | |
GET Methods | |
| const std::string | getNodeName () |
| const std::string | getJobId () |
| const std::vector< FileAd > | getFiles () |
| unsigned int | getTotalSize () |
| unsigned long | getMaxJobFileSize () |
| ExtractedAd * | getNode (const std::string &nodeName) |
| ExtractedAd * | getJobId (const std::string &jobid) |
| std::vector< ExtractedAd * > | getChildren () |
| const std::vector< FileAd > | getNodeNameFiles (const std::string &nodeName) |
| const std::vector< FileAd > | getJobIdFiles (const std::string &jobid) |
| bool | hasFiles () |
| glite::jdl::ExtractedAd::ExtractedAd | ( | ) |
Default Constructor
| glite::jdl::ExtractedAd::ExtractedAd | ( | const ExtractedAd & | jobad | ) |
Copy Constructor
| virtual glite::jdl::ExtractedAd::~ExtractedAd | ( | ) | throw () [inline, virtual] |
Default Destructor
| void glite::jdl::ExtractedAd::addFileAd | ( | const std::string & | path | ) |
Add a single File
| path | the path of the file to be added |
| void glite::jdl::ExtractedAd::addFileAd | ( | const FileAd & | file | ) |
Add a single File
| file | the file to be added |
| void glite::jdl::ExtractedAd::addNode | ( | ExtractedAd * | extracted | ) |
Add a new Node to the children of the instance
| extracted | the ExtractedAd node to be added |
| ExtractedAd* glite::jdl::ExtractedAd::Copy | ( | ) |
Deep copy the instance, including all its internal pointers. This has to be done when the copied instance is supposed to survive outside the executing scope
| static void glite::jdl::ExtractedAd::ExtractedAdCopy | ( | const ExtractedAd & | source, | |
| ExtractedAd * | dest | |||
| ) | [static] |
Static method: Copy Constructor
| source | the instance to be copied | |
| dest | the pointer which will be filled with source values |
| std::vector<ExtractedAd*> glite::jdl::ExtractedAd::getChildren | ( | ) |
Retrieve all children ExtractedAd for this instance, empty vector if no children found
| const std::vector<FileAd> glite::jdl::ExtractedAd::getFiles | ( | ) |
Retrieve only the files listed (without computing children files)
| ExtractedAd* glite::jdl::ExtractedAd::getJobId | ( | const std::string & | jobid | ) |
Retrieve extracted instance for a specified jobid if present, raises exception otherwise
| jobid | the value of the jobid to be retrieved |
| const std::string glite::jdl::ExtractedAd::getJobId | ( | ) |
Retrieve the jobid
| const std::vector<FileAd> glite::jdl::ExtractedAd::getJobIdFiles | ( | const std::string & | jobid | ) |
Retrieve all files for a specified node if present, raises exception otherwise
| jobid | the value of the jobid to be retrieved |
| unsigned long glite::jdl::ExtractedAd::getMaxJobFileSize | ( | ) |
Retrieve the highest file size from the ones listed in the whole instance (computing children files too)
| ExtractedAd* glite::jdl::ExtractedAd::getNode | ( | const std::string & | nodeName | ) |
Retrieve extracted instance for a specified node if present, raises exception otherwise
| nodeName | the value of the node to be retrieved |
| const std::string glite::jdl::ExtractedAd::getNodeName | ( | ) |
Retrieve the name of the node (if the instance represents a node)
| const std::vector<FileAd> glite::jdl::ExtractedAd::getNodeNameFiles | ( | const std::string & | nodeName | ) |
Retrieve all files for a specified node if present, raises exception otherwise
| nodeName | the value of the node to be retrieved |
| unsigned int glite::jdl::ExtractedAd::getTotalSize | ( | ) |
Retrieve the total amount of size for files listed in the whole instance (computing children files too)
| bool glite::jdl::ExtractedAd::hasFiles | ( | ) |
Determine whether the instance or its children contain at least one file
| virtual void glite::jdl::ExtractedAd::operator= | ( | const ExtractedAd & | extractedAd | ) | [virtual] |
Operator "=" performs a deep copy of the instance
| extractedAd | the source instance to be copied |
| void glite::jdl::ExtractedAd::setFiles | ( | const std::vector< FileAd > & | files | ) |
Set the files for the current instance
| files | the vector of files for the instance |
| void glite::jdl::ExtractedAd::setJobId | ( | const std::string & | nodeName, | |
| const std::string & | jobid | |||
| ) |
Set the jobid for the specified nodeName if present, raises exception otherwise
| jobid | the value of the jobid to be set | |
| nodeName | the name of the Node where to insert the jobid |
| void glite::jdl::ExtractedAd::setJobId | ( | const std::string & | jobid | ) |
Set the job id for the current instance
| jobid | the value of the job id to be set |
| static void glite::jdl::ExtractedAd::setMaxTotalSize | ( | unsigned int | maxTotalSize | ) | [static] |
static method: set the max possible size for the total of files contained inside instance
| maxTotalSize | the value (in Kb) of max total size of files contained |
| void glite::jdl::ExtractedAd::setNodeName | ( | const std::string & | nodeName, | |
| const std::string & | jobid | |||
| ) |
Set the nodeName for the specified jobid if present, raises exception otherwise
| nodeName | the value of the node to be set | |
| jobid | the jobid of the Node where to set the node name |
| void glite::jdl::ExtractedAd::setNodeName | ( | const std::string & | nodeName | ) |
Set the nodeName for the current instance
| nodeName | the value of the node to be set |
1.4.7