ROOT  6.06/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 #ifndef ROOT_TGridJDL
24 #include "TGridJDL.h"
25 #endif
26 
27 
28 class TAlienJDL : public TGridJDL {
29 
30 public:
31  TAlienJDL() : TGridJDL() { }
32  virtual ~TAlienJDL() { }
33 
34  virtual void SetExecutable(const char *value=0, const char *description=0);
35  virtual void SetArguments(const char *value=0, const char *description=0);
36  virtual void SetEMail(const char *value=0, const char *description=0);
37  virtual void SetOutputDirectory(const char *value=0, const char *description=0);
38  virtual void SetPrice(UInt_t price=1, const char *description=0);
39  virtual void SetMergedOutputDirectory(const char *value=0, const char *description=0);
40  virtual void SetTTL(UInt_t ttl=72000, const char *description=0);
41  virtual void SetJobTag(const char *jobtag=0, const char *description=0);
42  virtual void SetInputDataListFormat(const char *format="xml-single", const char *description=0);
43  virtual void SetInputDataList(const char *list="collection.xml", const char *description=0);
44 
45  virtual void SetSplitMode(const char *value, UInt_t maxnumberofinputfiles=0,
46  UInt_t maxinputfilesize=0, const char *d1=0, const char *d2=0,
47  const char *d3=0);
48  virtual void SetSplitModeMaxNumOfFiles(UInt_t maxnumberofinputfiles=0, const char *description=0);
49  virtual void SetSplitModeMaxInputFileSize(UInt_t maxinputfilesize=0, const char *description=0);
50  virtual void SetSplitArguments(const char *splitarguments=0, const char *description=0);
51  virtual void SetValidationCommand(const char *value, const char *description=0);
52  virtual void SetMaxInitFailed(Int_t maxInitFailed, const char *description=0);
53 
54  virtual void SetOwnCommand(const char *command=0, const char *value=0, const char *description=0);
55 
56  virtual void AddToInputSandbox(const char *value=0, const char *description=0);
57  virtual void AddToOutputSandbox(const char *value=0, const char *description=0);
58  virtual void AddToInputData(const char *value=0, const char *description=0);
59  virtual void AddToInputDataCollection(const char *value=0, const char *description=0);
60  virtual void AddToRequirements(const char *value=0, const char *description=0);
61  virtual void AddToPackages(const char *name/*="AliRoot"*/, const char *version/*="newest"*/,
62  const char *type/*="VO_ALICE"*/, const char *description=0);
63  virtual void AddToPackages(const char *name/*="VO_ALICE@AliRoot::newest"*/,
64  const char *description=0);
65  virtual void AddToOutputArchive(const char *value=0, const char *description=0);
66  virtual void AddToReqSet(const char *key, const char *value=0);
67 
68  virtual void AddToMerge(const char *filenameToMerge/*="histograms.root"*/,
69  const char *jdlToSubmit/*="/alice/jdl/mergerootfile.jdl"*/,
70  const char *mergedFile/*="histograms-merged.root"*/,
71  const char *description=0);
72  virtual void AddToMerge(const char *merge="histo.root:/alice/jdl/mergerootfile.jdl:histo-merged.root",
73  const char *description=0);
74 
76  virtual void Parse(const char *filename);
77  void Simulate();
78 
80 
81  ClassDef(TAlienJDL,1) // Creates JDL files for the AliEn middleware
82 };
83 
84 #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
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:31
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
static const char * filename()
Basic string class.
Definition: TString.h:137
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:254
virtual void SetArguments(const char *value=0, const char *description=0)
Sets the arguments.
Definition: TAlienJDL.cxx:45
virtual ~TAlienJDL()
Definition: TAlienJDL.h:32
virtual void SetExecutable(const char *value=0, const char *description=0)
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
#define name(a, b)
Definition: linkTestLib0.cpp:5
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
float value
Definition: math.cpp:443
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