Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound 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 Methods

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

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

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. More...

 ~JobId ()
 Destructor Destroy the Job Id instance.

Miscellaneous
void clear ()
 Unsets the JobId instance. More...

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

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. More...

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


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: <LB address>:<LB port>/<Unique String>

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


Constructor & Destructor Documentation

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


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

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)

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


The documentation for this class was generated from the following file:
Generated on Fri May 14 14:18:26 2004 for COMMON API - configuration, jobid, ldif2classadi, logger, process, requestad, socket++i, task, utilities by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002