OpendTect-6_4  6.4
clusterjobdispatch.h
Go to the documentation of this file.
1 #ifndef clusterjobdispatch_h
2 #define clusterjobdispatch_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Raman K Singh
8  Date: Jan 2016
9  RCS: $Id $
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "mmprocmod.h"
15 #include "batchjobdispatch.h"
16 
17 
18 namespace Batch
19 {
20 
24 { mODTextTranslationClass(ClusterProgDef);
25 public:
26 
28 
29  virtual bool isSuitedFor(const char* prognm) const = 0;
30  virtual bool canHandle( const JobSpec& js ) const
31  { return isSuitedFor( js.prognm_ ); }
32  virtual bool canResume( const JobSpec& js ) const
33  { return false; }
34 
35 };
36 
41 public:
42 
44  virtual ~ClusterJobDispatcher() {}
45 
46  virtual uiString description() const;
47  virtual bool isSuitedFor(const char*) const;
48  virtual bool canHandle(const JobSpec&) const;
49  virtual bool canResume(const JobSpec&) const;
50 
52  "Cluster Process",tr("Cluster Process"));
53 
54  static void addDef(ClusterProgDef*);
55 
56 protected:
57 
58  virtual bool launch();
59 
60  int defIdx(const char* pnm=0) const;
61 
62 };
63 
64 
65 } // namespace Batch
66 
67 
68 #endif
#define mExpClass(module)
Definition: commondefs.h:160
ClusterProgDef()
Definition: clusterjobdispatch.h:27
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
kicks off OD batch jobs in a single process.
Definition: batchjobdispatch.h:117
Base class (with factory) for methods to kick-off an OD batch job.
Definition: batchjobdispatch.h:70
#define mDefaultFactoryInstantiation(baseclss, clss, keywrd, usernm)
Definition: factory.h:289
Definition: uistring.h:89
the data we need to specify an OD batch job.
Definition: batchjobdispatch.h:26
BufferString prognm_
Definition: batchjobdispatch.h:41
Multi Machine Processing.
Definition: mmassetmgr.h:23
Definition: batchjobdispatch.h:21
virtual ~ClusterJobDispatcher()
Definition: clusterjobdispatch.h:44
virtual bool canResume(const JobSpec &js) const
Definition: clusterjobdispatch.h:32
virtual bool canHandle(const JobSpec &js) const
Definition: clusterjobdispatch.h:30
Base class for Cluster prog definitions.
Definition: clusterjobdispatch.h:23
kicks off Cluster job dispatcher.
Definition: clusterjobdispatch.h:39

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019