149 UInt_t maxinputfilesize,
const char *d1,
const char *d2,
152 if (value && !strcasecmp(value,
"SE")) {
155 if (maxnumberofinputfiles) {
158 if (maxinputfilesize) {
173 val += maxnumberofinputfiles;
186 val += maxinputfilesize;
219 str += maxInitFailed;
230 if ((command) && (value))
232 if ((command) && (description))
286 AddToSet(
"InputDataCollection", value);
295 const char *
type,
const char *description)
302 packagename += version;
338 const char *oldValue =
GetValue(key);
341 newString = oldValue;
359 const char *mergedFile,
const char *description )
361 TString mergename ( filenameToMerge );
363 mergename += jdlToSubmit;
365 mergename += mergedFile;
386 Info(
"SubmitTest",
"submitting test job /bin/date");
389 Error(
"SubmitTest",
"you must have a proper GRID environment initialized");
397 printf(
"Sending:\n%s\n",
Generate().Data());
399 Error(
"SubmitTest",
"submitting failed");
438 Error (
"SetValueByCmd()",
"Cmd Value not supported.." );
447 file.open ( filename );
448 if ( !
file.is_open() ) {
449 Error(
"Parse",
"error opening file %s", filename);
455 while (
file.good() ) {
459 if ( !lineString.
IsNull() ) {
460 if (lineString.
Index(
'#') == 0)
continue;
char * Form(const char *fmt,...)
virtual void SetSplitArguments(const char *splitarguments=0, const char *description=0)
Sets the split.
virtual void SetMaxInitFailed(Int_t maxInitFailed, const char *description=0)
Sets the Maxium init failed.
virtual void SetOutputDirectory(const char *value=0, const char *description=0)
Sets OutputDirectory.
virtual void SetOwnCommand(const char *command=0, const char *value=0, const char *description=0)
Sets the Own Command.
virtual void AddToMerge(const char *filenameToMerge, const char *jdlToSubmit, const char *mergedFile, const char *description=0)
Adds a package name to the package section.
virtual void Parse(const char *filename)
fills the TAlienJDL from inputfile (should be AliEn JDL file)
virtual void SetInputDataList(const char *list="collection.xml", const char *description=0)
Sets InputDataList name.
void Simulate()
Not implemented.
virtual void AddToRequirements(const char *value=0, const char *description=0)
Adds a requirement.
virtual void SetTTL(UInt_t ttl=72000, const char *description=0)
To inform AliEn master about estimated Time-To-Live of included nodes.
virtual void AddToOutputArchive(const char *value=0, const char *description=0)
Adds an output archive definition.
virtual void SetSplitModeMaxInputFileSize(UInt_t maxinputfilesize=0, const char *description=0)
Sets the SplitMaxInputFileSize.
virtual void SetValidationCommand(const char *value, const char *description=0)
Sets the validation command.
virtual void SetEMail(const char *value=0, const char *description=0)
Sets eMail address.
virtual void SetPrice(UInt_t price=1, const char *description=0)
Sets OutputDirectory.
virtual void SetInputDataListFormat(const char *format="xml-single", const char *description=0)
Sets InputDataListFormat - can be "xml-single" or "xml-multi".
virtual void SetSplitMode(const char *value, UInt_t maxnumberofinputfiles=0, UInt_t maxinputfilesize=0, const char *d1=0, const char *d2=0, const char *d3=0)
Sets the split mode.
virtual void AddToOutputSandbox(const char *value=0, const char *description=0)
Adds a file to the output sandbox.
virtual void AddToInputSandbox(const char *value=0, const char *description=0)
Adds a file to the input sandbox.
virtual void AddToReqSet(const char *key, const char *value=0)
Adds a value to a key value which hosts a set of values.
virtual void AddToPackages(const char *name, const char *version, const char *type, const char *description=0)
Adds a package name to the package section.
virtual void AddToInputDataCollection(const char *value=0, const char *description=0)
Adds a file to the input data collection.
virtual void SetSplitModeMaxNumOfFiles(UInt_t maxnumberofinputfiles=0, const char *description=0)
Sets the SplitMaxNumOfFiles.
virtual void SetMergedOutputDirectory(const char *value=0, const char *description=0)
Sets merged OutputDirectory.
virtual void SetExecutable(const char *value=0, const char *description=0)
Sets the executable.
Bool_t SubmitTest()
Tests the submission of a simple job.
virtual void AddToInputData(const char *value=0, const char *description=0)
Adds a file to the input data.
virtual void SetArguments(const char *value=0, const char *description=0)
Sets the arguments.
virtual void SetJobTag(const char *jobtag=0, const char *description=0)
Sets Job Tag.
void SetValueByCmd(TString cmd, TString value)
Set the specified value to the specified command.
void SetValue(const char *key, const char *value)
Sets a value. If the entry already exists the old one is replaced.
void AddToSetDescription(const char *key, const char *description)
Adds a value to a key value which hosts a set of values.
virtual void Clear(const Option_t *=0)
Clears the JDL information.
virtual TString Generate()
Generates the JDL snippet.
TString AddQuotes(const char *value)
Adds quotes to the provided string.
void AddToSet(const char *key, const char *value)
Adds a value to a key value which hosts a set of values.
void SetDescription(const char *key, const char *description)
Sets a value. If the entry already exists the old one is replaced.
const char * GetValue(const char *key)
Returns the value corresponding to the provided key.
virtual TGridJob * Submit(const char *)
Int_t GetEntries() const
Return the number of objects in array (i.e.
TObject * At(Int_t idx) const
Collectable string class.
const TString & GetString() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
int CompareTo(const char *cs, ECaseCompare cmp=kExact) const
Compare a string to char *cs2.
Int_t Atoi() const
Return integer value of string.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
TObjArray * Tokenize(const TString &delim) const
This function is used to isolate sequential tokens in a TString.
TString & Remove(Ssiz_t pos)
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const