Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

JobId Class Reference

Managing Identification, checking, retreiving info from a job File name: JobId.h The JobId class provides a representation of the Datagrid job identifier (dg_jobId) and the methods for manipulating it. More...

List of all members.

Public Member Functions

void fromString (const std::string &dg_JobId)
 This method sets the JobId instance from the JobId in string format given as input.

std::string toString () const
 Converts the jobId into a string.

 operator const edg_wlc_JobId () const
JobIdoperator= (JobId const &)
JobIdoperator= (const edg_wlc_JobId &)
edg_wlc_JobId getId () const
Constructors/Destructor
 JobId ()
 Instantiates an empty JobId object.

 JobId (const std::string &job_id_string)
 Instantiates a JobId object from the passed dg_jobId in string format.

 JobId (const JobId &)
 JobId (const edg_wlc_JobId &)
 ~JobId ()
 Destructor Destroy the Job Id instance.

Miscellaneous
void clear ()
 Unsets the JobId instance.

bool isSet ()
 Check wheater the jobId has been already created (true) or not (false).

void setJobId (const std::string &lb_server, int port=0, const std::string &unique="")
 Set the JobId instance according to the LB and RB server addresses and the unique string passed as input parameters.

Get Methods
std::string getServer () const
std::string getUnique () const

Friends

bool operator< (JobId const &lhs, JobId const &rhs)
bool operator== (JobId const &lhs, JobId const &rhs)


Detailed Description

Managing Identification, checking, retreiving info from a job File name: JobId.h The JobId class provides a representation of the Datagrid job identifier (dg_jobId) and the methods for manipulating it.

We remind that the format of the dg_jobId is as follows: :/

Version:
0.1
Date:
15 April 2002
Author:
Alessandro Maraschini <alessandro.maraschini@datamat.it>


Constructor & Destructor Documentation

JobId  ) 
 

Instantiates an empty JobId object.

JobId const std::string &  job_id_string  ) 
 

Instantiates a JobId object from the passed dg_jobId in string format.

Parameters:
job_id_string a string representig a classAd expression
Exceptions:
WrongIdException When a string is passed in a wrong format

JobId const JobId  ) 
 

JobId const edg_wlc_JobId  ) 
 

~JobId  ) 
 

Destructor Destroy the Job Id instance.


Member Function Documentation

void clear  ) 
 

Unsets the JobId instance.

Clear all it's memebers

void fromString const std::string &  dg_JobId  ) 
 

This method sets the JobId instance from the JobId in string format given as input.

Parameters:
dg_JobId the string representing the job
Exceptions:
WrongIdException When a string is passed in a wrong format

edg_wlc_JobId getId  )  const
 

std::string getServer  )  const
 

Returns:
the LB address into its string format
Exceptions:
EmptyIdException If the jobId has not been initialised yet

std::string getUnique  )  const
 

Returns:
the Unique string into its string format
Exceptions:
EmptyIdException If the jobId has not been initialised yet

bool isSet  )  [inline]
 

Check wheater the jobId has been already created (true) or not (false).

Returns:
true (jobId created) or false (jobId not yet created)

operator const edg_wlc_JobId  )  const [inline]
 

JobId& operator= const edg_wlc_JobId  ) 
 

JobId& operator= JobId const &   ) 
 

void setJobId const std::string &  lb_server,
int  port = 0,
const std::string &  unique = ""
 

Set the JobId instance according to the LB and RB server addresses and the unique string passed as input parameters.

Parameters:
lb_server Loggin and Bookkeeping server address
port Loggin and Bookkeeping port ( dafault value is 9000 )
unique A Unique identification ( automatically generatad by md5 protocol )
Exceptions:
WrongIdException When one parameter has been passed in a wrong format

std::string toString  )  const
 

Converts the jobId into a string.

Returns:
the string representation of a JobId


Friends And Related Function Documentation

bool operator< JobId const &  lhs,
JobId const &  rhs
[friend]
 

bool operator== JobId const &  lhs,
JobId const &  rhs
[friend]
 


The documentation for this class was generated from the following file:
Generated on Wed Mar 1 00:37:56 2006 for COMMON API - configuration, jobid, ldif2classadi, logger, process, requestad, socket++i, task, utilities by doxygen 1.3.5