From: Aleš Křenek Date: Fri, 10 Dec 2004 09:32:29 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: glite-lb-client-interface_R_1_0_0~21 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=cbd2d57d43c36016398d7107b6a8faa443e468bb;p=jra1mw.git *** empty log message *** --- diff --git a/org.glite.jp.ws-interface/.cvsignore b/org.glite.jp.ws-interface/.cvsignore new file mode 100755 index 0000000..1df717b --- /dev/null +++ b/org.glite.jp.ws-interface/.cvsignore @@ -0,0 +1,2 @@ +.project +.cdtproject \ No newline at end of file diff --git a/org.glite.jp.ws-interface/LICENSE b/org.glite.jp.ws-interface/LICENSE new file mode 100755 index 0000000..01b973b --- /dev/null +++ b/org.glite.jp.ws-interface/LICENSE @@ -0,0 +1,69 @@ +LICENSE file for EGEE Middleware +================================ + +Copyright (c) 2004 on behalf of the EU EGEE Project: +The European Organization for Nuclear Research (CERN), +Istituto Nazionale di Fisica Nucleare (INFN), Italy +Datamat Spa, Italy +Centre National de la Recherche Scientifique (CNRS), France +CS Systeme d'Information (CSSI), France +Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden +Universiteit van Amsterdam (UvA), Netherlands +University of Helsinki (UH.HIP), Finlan +University of Bergen (UiB), Norway +Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. The end-user documentation included with the redistribution, if +any, must include the following acknowledgment: "This product includes +software developed by The EU EGEE Project (http://cern.ch/eu-egee/)." +Alternatively, this acknowledgment may appear in the software itself, if +and wherever such third-party acknowledgments normally appear. + +4. The names EGEE and the EU EGEE Project must not be +used to endorse or promote products derived from this software without +prior written permission. For written permission, please contact +. + +5. You are under no obligation whatsoever to provide anyone with any +bug fixes, patches, or upgrades to the features, functionality or +performance of the Software ("Enhancements") that you may develop over +time; however, if you choose to provide your Enhancements to The EU +EGEE Project, or if you choose to otherwise publish or distribute your +Enhancements, in source code form without contemporaneously requiring +end users of The EU EGEE Proejct to enter into a separate written license +agreement for such Enhancements, then you hereby grant The EU EGEE Project +a non-exclusive, royalty-free perpetual license to install, use, copy, +modify, prepare derivative works, incorporate into the EGEE Middleware +or any other computer software, distribute, and sublicense your +Enhancements or derivative works thereof, in binary and source code +form (if any), whether developed by The EU EGEE Project or third parties. + +THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL PROJECT OR ITS CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +This software consists of voluntary contributions made by many +individuals on behalf of the EU EGEE Prject. For more information on The +EU EGEE Project, please see http://cern.ch/eu-egee/. For more information on +EGEE Middleware, please see http://egee-jra1.web.cern.ch/egee-jra1/ + + diff --git a/org.glite.jp.ws-interface/Makefile b/org.glite.jp.ws-interface/Makefile new file mode 100644 index 0000000..73cd9ad --- /dev/null +++ b/org.glite.jp.ws-interface/Makefile @@ -0,0 +1,48 @@ +# Default values +top_srcdir=. +builddir=build +top_builddir=${top_srcdir}/${builddir} +stagedir=. +distdir=. +globalprefix=glite +package=glite-jp-ws-interface +version=0.0.0 +PREFIX=/opt/glite + +-include Makefile.inc + +VPATH=${top_srcdir}/interface +STAGETO=interface + +WSDL=JobProvenancePS.wsdl JobProvenanceTypes.wsdl + +all compile: + +check: + @echo No unit test required for interface-only module. + +stage: + $(MAKE) install PREFIX=${stagedir} + +dist: distsrc distbin + +distsrc: + mkdir -p ${top_srcdir}/${package}-${version} + cd ${top_srcdir} && GLOBIGNORE="${package}-${version}" && cp -Rf * ${package}-${version} + cd ${top_srcdir} && tar -czf ${distdir}/${package}-${version}_src.tar.gz --exclude-from=project/tar_exclude ${package}-${version} + rm -rf ${top_srcdir}/${package}-${version} + +distbin: + $(MAKE) install PREFIX=${top_srcdir}/tmpbuilddir + cd ${top_srcdir}/tmpbuilddir && tar -czf ${top_srcdir}/${distdir}/${package}-${version}_bin.tar.gz * + rm -rf ${top_srcdir}/tmpbuilddir + +install: + -mkdir -p ${PREFIX}/${STAGETO} + -mkdir -p ${PREFIX}/share/doc/${package}-${version} + install -m 644 ${top_srcdir}/LICENSE ${PREFIX}/share/doc/${package}-${version} + cd ${top_srcdir}/interface && install -m 644 ${WSDL} ${PREFIX}/${STAGETO} + +clean: + rm -f *.h + diff --git a/org.glite.jp.ws-interface/build.xml b/org.glite.jp.ws-interface/build.xml new file mode 100644 index 0000000..44d86eb --- /dev/null +++ b/org.glite.jp.ws-interface/build.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.glite.jp.ws-interface/interface/JobProvenanceIS.wsdl b/org.glite.jp.ws-interface/interface/JobProvenanceIS.wsdl new file mode 100644 index 0000000..84c8844 --- /dev/null +++ b/org.glite.jp.ws-interface/interface/JobProvenanceIS.wsdl @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Store or update information on jobs within the JP index server. +Called directly by the primary storage, used for both batch and incremental feed. + +Input: + +data: list of job record updates. Each contains jobid, list of JP attribute values and user tag values. + +feedDone: flag indicating end of batch feed. (In order to avoid potential problems with buffer allocation +the huge dataset of batch feed is split into reasonable chunks and delivered with more UpdateJobs calls.) + +Output: N/A + +Faults: GenericJPFault + + + + + + + + + Retrieve pointers to job records of jobs matching a query. +Input: conditions - list of lists of query conditions. + 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. + +Output: + +jobs: list of JobId, PSContact (URL of the primary storage which manges this job) pairs + +Faults: GenericJPFault + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Job Provenance Index service + + + + + + + diff --git a/org.glite.jp.ws-interface/interface/JobProvenancePS.wsdl b/org.glite.jp.ws-interface/interface/JobProvenancePS.wsdl new file mode 100644 index 0000000..7c777dd --- /dev/null +++ b/org.glite.jp.ws-interface/interface/JobProvenancePS.wsdl @@ -0,0 +1,307 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Register job with JP primary storage. +Job registration in LB is propagated to JP immediately so that JP is aware of the job, +despite no furhter information is available in it. + +Input: JobId + +Output: N/A + +Faults: GenericJPFault + + + + + + + Initiate upload of of sandbox/dump of job life log from LB. +WM component responsible for job sandbox management and LB server call JP to declare +intention to upload intput/output sandbox and job life log. + +Input: + +uclass: type of the upload - INPUT_SANDBOX, OUTPUT_SANDBOX, JOB_LOG + +commitTimeout: upper limit on time for which JP waits for committing this upload transaction + +contentType: MIME type of the uploaded file + +Output: + +destination: URL where the client should upload the file + +commitBefore: acutual time when the upload transaction times out + +Faults: GenericJPFault + + +Initiate upload of of sandbox/dump of job life log from LB. + + + + + + Confirm upload. +Should be called after a file upload initiaded with StartUpload is finished. + +Input: + +destination: Upload destination URL (to match with the original request) + +Output: + +Faults: GenericJPFault + + + + + + + Record a value of user tag. +JP tags are either standalone or override values of their LB counterparts. +However, JP tag values are still distinguishable those inherited from LB. +JP tags may be either strings or blobs. + +Input: + +jobid: + +tag: structure containing name, timestamp, optional sequence number to order tag values +without relying on timestamps, and string or blob value. + +Output: N/A + +Faults: GenericJPFault + + + + + + + Start feeding JP index server. +Called by the index server to start batch feed, and optionally also subscribe for incremental feed. + +JP index server subscribes with JP primary storage using a query +containing conditions on primary metadata and a list of queryable attributes +of the index server (i.e. data which should be sent to the index server). + +When a matching job record is created or modified within the primary storage +the job record data are sent to the subscribed index server. + +The subscription is soft-state, it expires after certain time unless refreshed by the client explicitely. + +In the batch mode the query has the same form +with additional flag asking for all matching records (i.e.\ not only +arriving afterwards). + +Input: + +destination: where to send the job record data + +attributes: which job record attributes should be sent to the requesting index server + +conditions: list of query conditions. Each conditions has the form Attribute Operator Value, +where Attribute is any of job record attributes and Operator is one of EQUAL, UNEQUAL, LESS, GREATER, WITHIN. + +continuous: flag determining that the query is incremental (not batch) + +Output: + +feedId: unique Id of the feed request, to be used in refresh, cancelation etc. + +expires: when the feed times out. Must be refreshed before this time. + +Faults: GenericJPFault + + + + + + + Extend batch feed subscription (used by index server) + +Input: feedId returned previously by FeedIndex + +Output: the same as for FeedIndex + +Faults: GenericJPFault + + + + + + + Retrieve job record URL's when jobid is known +Used either to bypass JP index server query for this specific case, or after the index server query to +retrieve actual job record. + +Input: jobid + +Output: + +jobLog, inputSandbox, outputSandbox, tags: URL's to components of the job record. + +Faults: GenericJPFault + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Job Provenance Primary Storage service + + + + + diff --git a/org.glite.jp.ws-interface/interface/JobProvenanceTypes.wsdl b/org.glite.jp.ws-interface/interface/JobProvenanceTypes.wsdl new file mode 100644 index 0000000..e1a6db4 --- /dev/null +++ b/org.glite.jp.ws-interface/interface/JobProvenanceTypes.wsdl @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.glite.jp.ws-interface/project/build.properties b/org.glite.jp.ws-interface/project/build.properties new file mode 100755 index 0000000..e69de29 diff --git a/org.glite.jp.ws-interface/project/configure.properties.xml b/org.glite.jp.ws-interface/project/configure.properties.xml new file mode 100644 index 0000000..4b08208 --- /dev/null +++ b/org.glite.jp.ws-interface/project/configure.properties.xml @@ -0,0 +1,54 @@ + + + + + + + + + +top_srcdir=.. +builddir=build +stagedir=${stage.abs.dir} +distdir=${dist.dir} +globalprefix=${global.prefix} +jpprefix=${subsystem.prefix} +package=${module.package.name} +PREFIX=${install.dir} +version=${module.version} +glite_location=${with.glite.location} + + + diff --git a/org.glite.jp.ws-interface/project/glite-jp-ws-interface.spec b/org.glite.jp.ws-interface/project/glite-jp-ws-interface.spec new file mode 100644 index 0000000..dba6d55 --- /dev/null +++ b/org.glite.jp.ws-interface/project/glite-jp-ws-interface.spec @@ -0,0 +1,42 @@ +Summary:Change me !!! +Name:glite-jp-ws-interface +Version:0.0.0 +Release:0 +Copyright:Open Source EGEE License +Vendor:EU EGEE project +Group:System/Application +Prefix:/opt/glite +BuildArch:x86_64 +BuildRoot:%{_builddir}/%{name}-%{version} +Source:glite-jp-ws-interface-0.0.0_bin.tar.gz + +%define debug_package %{nil} + +%description +Change me !!! + +%prep + + +%setup -c + +%build + + +%install + + +%clean + +%pre +%post +%preun +%postun +%files +%defattr(-,root,root) +%{prefix}/interface/JobProvenancePS.wsdl +%{prefix}/interface/JobProvenanceTypes.wsdl +%{prefix}/share/doc/glite-jp-ws-interface-0.0.0/LICENSE + +%changelog + diff --git a/org.glite.jp.ws-interface/project/properties.xml b/org.glite.jp.ws-interface/project/properties.xml new file mode 100644 index 0000000..4ec8018 --- /dev/null +++ b/org.glite.jp.ws-interface/project/properties.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.glite.jp.ws-interface/project/tar_exclude b/org.glite.jp.ws-interface/project/tar_exclude new file mode 100644 index 0000000..e69de29 diff --git a/org.glite.jp.ws-interface/project/version.properties b/org.glite.jp.ws-interface/project/version.properties new file mode 100755 index 0000000..e78612b --- /dev/null +++ b/org.glite.jp.ws-interface/project/version.properties @@ -0,0 +1,3 @@ +module.version = 0.0.0 +module.build = 0 +module.age = 0 \ No newline at end of file