From: cvs2svn Date: Thu, 17 Feb 2005 15:40:49 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'glite-lb-ws- X-Git-Tag: glite-lb-ws-interface_R_1_0_1~48 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=24d79b5e4452c5561238cb9457b1ef035e424c24;p=jra1mw.git This commit was manufactured by cvs2svn to create branch 'glite-lb-ws- interface_branch_1_0_0'. Cherrypick from master 2005-02-17 15:40:48 UTC Aleš Křenek 'First attempt to generate LB.wsdl from LB's internal .T structure definitions': org.glite.lb.ws-interface/src/LB.xml.T --- diff --git a/org.glite.lb.ws-interface/src/LB.xml.T b/org.glite.lb.ws-interface/src/LB.xml.T new file mode 100644 index 0000000..a96551b --- /dev/null +++ b/org.glite.lb.ws-interface/src/LB.xml.T @@ -0,0 +1,127 @@ + + +@@@LANG: wsdl + + + + + Keeping track of state of grid jobs. + + + + 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 + + + +@@@{ + for my $stat ($status->getTypesOrdered) { + my $u = uc $stat; + my $c = getTypeComment $status $stat; + gen qq{ +! $c +}; + } +@@@} + + +@@@{ + for my $n ($status->getAllFieldsOrdered) { + my $f = selectField $status $n; + if ($f->{codes}) { + my $n = getName $f; + $n = $1.ucfirst $2 while $n =~ /([[:alpha:]]*)_([[:alpha:]]*)/; + gen qq{ +! +}; + for (@{$f->{codes}}) { + my $uc = uc $_->{name}; + gen qq{ +! $_->{comment} +}; + } + gen qq{ +! +}; + } + } +@@@} + + + + + Status of a job, possibly including subjobs. + Status name. +@@@{ + for my $n (getAllFieldsOrdered $status) { + selectField $status $n; + my $f = getField $status; + my $name = getName $f; + $name = $1.ucfirst $2 while $name =~ /([[:alpha:]]*)_([[:alpha:]]*)/; + my $type = $f->{type}; + my $list = 'no'; + + if ($main::baseTypes{$type}) { + $type = eval $main::types{wsdl}->{$main::baseTypes{$type}}; + $list = 'yes' + } + elsif ($f->{codes}) { + $type = $name; + } + else { + $type = getType $f; + } + + my $comment = getComment $f; +# XXX: currently nothing is "optional" as we don't know from status.T + gen qq{ +! $comment +}; + } +@@@} + + + + + + + + + + + + + + + Generic SOAP fault, used to deliver any LB errors. + Source component (module) of the error. + Numeric error code. + Error text corresponding to the code. + Additional description of the error (e.g. filename) + Reason of the error, coming from lower levels. + + + + + + + + + + + Query state of a single job. + Id of the queried job. + Which data fields to retrieve. + Current state of the job. + Any error. + + +