From d507b2be83da67e2f51674269870d9b41078c5c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Fri, 25 Feb 2005 14:37:06 +0000 Subject: [PATCH] better documentation again --- org.glite.lb.ws-interface/src/LB.xml.T | 84 +++++++++++++++++++++++- org.glite.lb.ws-interface/src/puke-ug.xsl | 102 ++++++++++++++++++++---------- 2 files changed, 152 insertions(+), 34 deletions(-) diff --git a/org.glite.lb.ws-interface/src/LB.xml.T b/org.glite.lb.ws-interface/src/LB.xml.T index 6f5895e..4471e92 100644 --- a/org.glite.lb.ws-interface/src/LB.xml.T +++ b/org.glite.lb.ws-interface/src/LB.xml.T @@ -9,18 +9,20 @@ ns="http://glite.org/wsdl/services/lb" prefix="lb"> - Keeping track of state of grid jobs. +LB web service interface currently reflects the functionality of legacy +LB query API. + Flags determining which fields of job status should be retrieved. - Can be combined arbitrarily. Include also long job descriptions (JDL). Return list of subjobs of a DAG. Return state of the subjobs, i.e. apply other flags recursively + Classification of job states. @@@{ for my $stat ($status->getTypesOrdered) { my $u = uc $stat; @@ -40,6 +42,7 @@ $n = $1.ucfirst $2 while $n =~ /([[:alpha:]]*)_([[:alpha:]]*)/; gen qq{ ! +! Auxiliary type; values of the jobStatus.$n field. }; for (@{$f->{codes}}) { my $uc = uc $_->{name}; @@ -104,6 +107,7 @@ Generic SOAP fault, used to deliver any LB errors. + May be returned by any of the operations. Source component (module) of the error. Numeric error code. Error text corresponding to the code. @@ -114,6 +118,55 @@ + + An element of outer list of query conditions in job queries. + It expresses possibly several conditions (records) on a single job attribute. + These conditions are logically OR-ed. + The job attribute to which the query conditions apply. + Name of the queried user tag if attr is USERTAG. + Name of the job state to which "attr = TIME" condition refers. + The conditions. + + + + Specification of a job attribute in query. + A concrete JobId + Owner of the job (X509 certificate subject). + Status of the job (see statName type). + Where the job is currently handled (hostname). + Where the job is or was scheduled to be executed. + How the job terminated (see doneCode type) + Value of particular user tag. The tag name has to be specified in queryConditions.tagName. + When the job entered a particular state. The state has to be specified in queryCondition.statName. + The job was resubmitted. + JobId of the job parend (DAG). + UNIX exit code of the job. + + + + A single query condition. + Relational operator of the condition. + Value to compare the attribute with. + Another value to compare the attribute with (op = WITHIN only). + + + + Relational operator of query conditions. + Attribute is equal to the specified value + Attribute is less than the specified value or equal + Attribute is greater than the specified value or equal + Attribute is withing a range (queryRecord.value2 must be specified) + Attribute is not equal to the specified value. + + + + A value to compare an attribute with in queries. + Exactly one of the elements must be specified. + Integer. + String. + Timestamp. + + @@ -126,4 +179,31 @@ Any error. + + Retrieve a list of jobs, including their states, based on + query conditions. + The conditions take the form of a list of lists. + Elements of the inner lists refer to a single job attribute, the conditions are or-ed. + Elements of the outer list may refer to different job attributes, they are and-ed. + + The query conditions. + Which data fields to retrieve. + JobId's of jobs matching the query. + States of jobs matching the query. + Any error. + + + + Return version of the service. + Returned version. + Any error. + + + + Simplified query, return all jobs of the authenticated user. + JobId's of jobs matching the query. + States of jobs matching the query. + Any error. + + diff --git a/org.glite.lb.ws-interface/src/puke-ug.xsl b/org.glite.lb.ws-interface/src/puke-ug.xsl index 14c558d..2536d40 100644 --- a/org.glite.lb.ws-interface/src/puke-ug.xsl +++ b/org.glite.lb.ws-interface/src/puke-ug.xsl @@ -11,12 +11,11 @@ <xsl:value-of select="@name"/> - Operations - - - + + + @@ -28,57 +27,92 @@ + + + + + + + + + + + xsd: + + + + + + + + + + - + + <xsl:value-of select="@name"/> + - - - - - - - - - - - - - - - - + Inputs: + + + + + + + N/A + - - - - - + + Outputs: + + + + + - + <xsl:value-of select="@name"/> + Structure (sequence complex type in WSDL) + Fields: ( type name description ) - Enumeration (restriction of xsd:string in WSDL) + Enumeration (restriction of xsd:string in WSDL), + exactly one of the values must be specified. + + Values: - Flags (sequence of restricted xsd:string in WSDL) + Flags (sequence of restricted xsd:string in WSDL), + any number of values can be specified together. + + Values: - - + + + + + + + + + + + @@ -88,7 +122,11 @@ - + + (optional) + (multiple occurence) + + -- 1.8.2.3