glite::jdl::JobAdSchema Class Reference

Provides a Schema used to check the attribute in the JobAd The default utilised schema is GLUE. More...

#include <src/requestad/JobAdSchema.h>

Public Types

enum  attribute {
  SCHEMA_DAC, SCHEMA_RTE, SCHEMA_TCPU, SCHEMA_FCPU,
  SCHEMA_OIP, SCHEMA_ARRAY
}

Public Member Functions

 JobAdSchema (std::vector< std::string > values)
 CUSTOM schema constructor.
std::string get (attribute attrName)
 Retrieve the value for a specified attribute attrName the attribute to be retrieved.
JobAdSchemaCopy ()
 Make a deep copy of the current JobAdSchema instance.

Static Public Member Functions

static JobAdSchemaglueSchema ()
 GLUE schema static constructor (JobAd default utilised schema).
static JobAdSchema edgSchema ()
 EDG schema static constructor: deprecated.

Detailed Description

Provides a Schema used to check the attribute in the JobAd The default utilised schema is GLUE.

To instanciate a schema you will need to provide an array of Strings, one per attribute

Version:
0.1
Author:
Alessandro Maraschini <alessandro.maraschini@datamat.it>

Member Enumeration Documentation

Enumerator:
SCHEMA_DAC 

other.DataAccessCost attribute

SCHEMA_RTE 

other.GlueHostApplicationSoftwareRunTimeEnvironment attribute.

Appended for MPI jobs in Requirements expression

SCHEMA_TCPU 

other.GlueCEInfoTotalCPUs attribute.

Appended for MPI jobs in Requirements expression

SCHEMA_FCPU 

other.GlueCEStateFreeCPUs attribute Set for MPI jobs as a default rank (if not given)

SCHEMA_OIP 

other.GlueHostNetworkAdapterOutboundIP Added for Interactive Jobs in requirements expression

SCHEMA_ARRAY 

Max index array dimension for Schema Attributes.


Constructor & Destructor Documentation

glite::jdl::JobAdSchema::JobAdSchema ( std::vector< std::string >  values  ) 

CUSTOM schema constructor.

Parameters:
values an array of string of SCHEMA_ARRAY dimension

Member Function Documentation

JobAdSchema* glite::jdl::JobAdSchema::Copy (  ) 

Make a deep copy of the current JobAdSchema instance.

Returns:
the copy of the current schema
static JobAdSchema glite::jdl::JobAdSchema::edgSchema (  )  [static]

EDG schema static constructor: deprecated.

std::string glite::jdl::JobAdSchema::get ( attribute  attrName  ) 

Retrieve the value for a specified attribute attrName the attribute to be retrieved.

Returns:
the string representation of the value to be retrieved
static JobAdSchema* glite::jdl::JobAdSchema::glueSchema (  )  [static]

GLUE schema static constructor (JobAd default utilised schema).


The documentation for this class was generated from the following file:

Generated on 15 May 2012 for glite-jdl-api-cpp-3.2.5 by  doxygen 1.6.1