glite::jdl::JobAdSchema Class Reference

#include <glite/jdl/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)
std::string get (attribute attrName)
JobAdSchemaCopy ()

Static Public Member Functions

static JobAdSchemaglueSchema ()
static JobAdSchema edgSchema ()

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

Parameters:
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 9 Feb 2014 for jdl-api-cpp-3.4.3 by  doxygen 1.6.1