JSDL est un dialecte XML pour décrire des jobs : http://en.wikipedia.org/wiki/Job_Submission_Description_Language Je pense l'utiliser pour (au moins en partie) pour décrire les jobs sur Diswork. Deux questions : * Existe-t-il une lib ? (j'en ai pas trouvé sur le net) * Si je dois coder le parser, quelle lib utiliser ? Exemple de fichier JSDL : <JobDefinition> <JobDescription> <JobIdentification> <JobName>My Gnuplot invocation</JobName> <Description> Simple application invocation: User wants to run the application 'gnuplot' to produce a plotted graphical file based on some data shipped in from elsewhere(perhaps as part of a workflow). A front-end application will then build into an animation of spinning data. Front-end application knows URL for data file which must be staged-in. Front-end application wants to stage in a control file that it specifies directly which directs gnuplot to produce the output files. In case of error, messages should be produced on stderr (also to be staged on completion) and no images are to be transferred. </Description> </JobIdentification> <Application> <ApplicationName>gnuplot</ApplicationName> <jsdl-posix:POSIXApplication> <jsdl-posix:Executable> /usr/local/bin/gnuplot </jsdl-posix:Executable> <jsdl-posix:Argument>control.txt</jsdl-posix:Argument> <jsdl-posix:Input>input.dat</jsdl-posix:Input> <jsdl-posix:Output>output1.png</jsdl-posix:Output> </jsdl-posix:POSIXApplication> </Application> <Resources> <IndividualPhysicalMemory> <LowerBoundedRange>2097152.0</LowerBoundedRange> </IndividualPhysicalMemory> <TotalCPUCount> <Exact>1.0</Exact> </TotalCPUCount> </Resources> <DataStaging> <FileName>control.txt</FileName> <CreationFlag>overwrite</CreationFlag> <DeleteOnTermination>true</DeleteOnTermination> <Source> <URI>http://foo.bar.com/~me/control.txt</URI> </Source> </DataStaging> <DataStaging> <FileName>input.dat</FileName> <CreationFlag>overwrite</CreationFlag> <DeleteOnTermination>true</DeleteOnTermination> <Source> <URI>http://foo.bar.com/~me/input.dat</URI> </Source> </DataStaging> <DataStaging> <FileName>output1.png</FileName> <CreationFlag>overwrite</CreationFlag> <DeleteOnTermination>true</DeleteOnTermination> <Target> <URI>rsync://spoolmachine/userdir</URI> </Target> </DataStaging> </JobDescription> </JobDefinition>
participants (1)
-
Brendan Le Ny