Logo ROOT   6.10/09
Reference Guide
TAlienJDL.h
Go to the documentation of this file.
1 // @(#)root/alien:$Id$
2 // Author: Jan Fiete Grosse-Oetringhaus 28/9/2004
3 // Lucia.Jancurova@cern.ch Slovakia 2007
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TAlienJDL
13 #define ROOT_TAlienJDL
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TAlienJDL //
18 // //
19 // Class which creates JDL files for the alien middleware. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TGridJDL.h"
24 
25 
26 class TAlienJDL : public TGridJDL {
27 
28 public:
29  TAlienJDL() : TGridJDL() { }
30  virtual ~TAlienJDL() { }
31 
32  virtual void SetExecutable(const char *value=0, const char *description=0);
33  virtual void SetArguments(const char *value=0, const char *description=0);
34  virtual void SetEMail(const char *value=0, const char *description=0);
35  virtual void SetOutputDirectory(const char *value=0, const char *description=0);
36  virtual void SetPrice(UInt_t price=1, const char *description=0);
37  virtual void SetMergedOutputDirectory(const char *value=0, const char *description=0);
38  virtual void SetTTL(UInt_t ttl=72000, const char *description=0);
39  virtual void SetJobTag(const char *jobtag=0, const char *description=0);
40  virtual void SetInputDataListFormat(const char *format="xml-single", const char *description=0);
41  virtual void SetInputDataList(const char *list="collection.xml", const char *description=0);
42 
43  virtual void SetSplitMode(const char *value, UInt_t maxnumberofinputfiles=0,
44  UInt_t maxinputfilesize=0, const char *d1=0, const char *d2=0,
45  const char *d3=0);
46  virtual void SetSplitModeMaxNumOfFiles(UInt_t maxnumberofinputfiles=0, const char *description=0);
47  virtual void SetSplitModeMaxInputFileSize(UInt_t maxinputfilesize=0, const char *description=0);
48  virtual void SetSplitArguments(const char *splitarguments=0, const char *description=0);
49  virtual void SetValidationCommand(const char *value, const char *description=0);
50  virtual void SetMaxInitFailed(Int_t maxInitFailed, const char *description=0);
51 
52  virtual void SetOwnCommand(const char *command=0, const char *value=0, const char *description=0);
53 
54  virtual void AddToInputSandbox(const char *value=0, const char *description=0);
55  virtual void AddToOutputSandbox(const char *value=0, const char *description=0);
56  virtual void AddToInputData(const char *value=0, const char *description=0);
57  virtual void AddToInputDataCollection(const char *value=0, const char *description=0);
58  virtual void AddToRequirements(const char *value=0, const char *description=0);
59  virtual void AddToPackages(const char *name/*="AliRoot"*/, const char *version/*="newest"*/,
60  const char *type/*="VO_ALICE"*/, const char *description=0);
61  virtual void AddToPackages(const char *name/*="VO_ALICE@AliRoot::newest"*/,
62  const char *description=0);
63  virtual void AddToOutputArchive(const char *value=0, const char *description=0);
64  virtual void AddToReqSet(const char *key, const char *value=0);
65 
66  virtual void AddToMerge(const char *filenameToMerge/*="histograms.root"*/,
67  const char *jdlToSubmit/*="/alice/jdl/mergerootfile.jdl"*/,
68  const char *mergedFile/*="histograms-merged.root"*/,
69  const char *description=0);
70  virtual void AddToMerge(const char *merge="histo.root:/alice/jdl/mergerootfile.jdl:histo-merged.root",
71  const char *description=0);
72 
73  void SetValueByCmd(TString cmd, TString value);
74  virtual void Parse(const char *filename);
75  void Simulate();
76 
78 
79  ClassDef(TAlienJDL,1) // Creates JDL files for the AliEn middleware
80 };
81 
82 #endif
virtual void SetValidationCommand(const char *value, const char *description=0)
Sets the validation command.
Definition: TAlienJDL.cxx:206
virtual void SetOwnCommand(const char *command=0, const char *value=0, const char *description=0)
Sets the Own Command.
Definition: TAlienJDL.cxx:228
virtual void SetExecutable(const char *value=0, const char *description=0)
Sets the executable.
Definition: TAlienJDL.cxx:34
Bool_t SubmitTest()
Tests the submission of a simple job.
Definition: TAlienJDL.cxx:384
virtual void AddToInputDataCollection(const char *value=0, const char *description=0)
Adds a file to the input data collection.
Definition: TAlienJDL.cxx:283
virtual void SetJobTag(const char *jobtag=0, const char *description=0)
Sets Job Tag.
Definition: TAlienJDL.cxx:114
virtual void SetMergedOutputDirectory(const char *value=0, const char *description=0)
Sets merged OutputDirectory.
Definition: TAlienJDL.cxx:78
TAlienJDL()
Definition: TAlienJDL.h:29
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.
Definition: TAlienJDL.cxx:148
Basic string class.
Definition: TString.h:129
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
static std::string format(double x, double y, int digits, int width)
void Simulate()
Not implemented.
Definition: TAlienJDL.cxx:489
virtual void AddToReqSet(const char *key, const char *value=0)
Adds a value to a key value which hosts a set of values.
Definition: TAlienJDL.cxx:336
virtual void SetSplitArguments(const char *splitarguments=0, const char *description=0)
Sets the split.
Definition: TAlienJDL.cxx:195
#define ClassDef(name, id)
Definition: Rtypes.h:297
virtual void SetArguments(const char *value=0, const char *description=0)
Sets the arguments.
Definition: TAlienJDL.cxx:45
virtual ~TAlienJDL()
Definition: TAlienJDL.h:30
virtual void SetInputDataList(const char *list="collection.xml", const char *description=0)
Sets InputDataList name.
Definition: TAlienJDL.cxx:136
virtual void AddToPackages(const char *name, const char *version, const char *type, const char *description=0)
Adds a package name to the package section.
Definition: TAlienJDL.cxx:294
unsigned int UInt_t
Definition: RtypesCore.h:42
void SetValueByCmd(TString cmd, TString value)
Set the specified value to the specified command.
Definition: TAlienJDL.cxx:409
virtual void AddToInputSandbox(const char *value=0, const char *description=0)
Adds a file to the input sandbox.
Definition: TAlienJDL.cxx:250
virtual void AddToInputData(const char *value=0, const char *description=0)
Adds a file to the input data.
Definition: TAlienJDL.cxx:272
virtual void AddToMerge(const char *filenameToMerge, const char *jdlToSubmit, const char *mergedFile, const char *description=0)
Adds a package name to the package section.
Definition: TAlienJDL.cxx:358
virtual void AddToOutputSandbox(const char *value=0, const char *description=0)
Adds a file to the output sandbox.
Definition: TAlienJDL.cxx:261
virtual void SetOutputDirectory(const char *value=0, const char *description=0)
Sets OutputDirectory.
Definition: TAlienJDL.cxx:67
virtual void SetSplitModeMaxInputFileSize(UInt_t maxinputfilesize=0, const char *description=0)
Sets the SplitMaxInputFileSize.
Definition: TAlienJDL.cxx:183
int type
Definition: TGX11.cxx:120
virtual void AddToOutputArchive(const char *value=0, const char *description=0)
Adds an output archive definition.
Definition: TAlienJDL.cxx:324
virtual void SetInputDataListFormat(const char *format="xml-single", const char *description=0)
Sets InputDataListFormat - can be "xml-single" or "xml-multi".
Definition: TAlienJDL.cxx:125
virtual void AddToRequirements(const char *value=0, const char *description=0)
Adds a requirement.
Definition: TAlienJDL.cxx:239
virtual void Parse(const char *filename)
fills the TAlienJDL from inputfile (should be AliEn JDL file)
Definition: TAlienJDL.cxx:444
virtual void SetMaxInitFailed(Int_t maxInitFailed, const char *description=0)
Sets the Maxium init failed.
Definition: TAlienJDL.cxx:216
virtual void SetSplitModeMaxNumOfFiles(UInt_t maxnumberofinputfiles=0, const char *description=0)
Sets the SplitMaxNumOfFiles.
Definition: TAlienJDL.cxx:170
virtual void SetTTL(UInt_t ttl=72000, const char *description=0)
To inform AliEn master about estimated Time-To-Live of included nodes.
Definition: TAlienJDL.cxx:101
virtual void SetPrice(UInt_t price=1, const char *description=0)
Sets OutputDirectory.
Definition: TAlienJDL.cxx:89
virtual void SetEMail(const char *value=0, const char *description=0)
Sets eMail address.
Definition: TAlienJDL.cxx:56