Version: 9.16.0
MESHJOB.idl
Go to the documentation of this file.
1// Copyright (C) 2011-2026 CEA, EDF
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20// Authors : Guillaume Boulant (EDF) - 31/01/2011
21
22#ifndef _MESHJOB_IDL_
23#define _MESHJOB_IDL_
24
25#include "SALOME_Exception.idl"
26#include "SALOME_Component.idl"
27
28//
29// This interface is used for mesh job submission from within the
30// SALOME plugin for PADDER.
31//
32module MESHJOB
33{
34
35 //
36 // Structure to transmit the parameters required for the job to run
37 // the executable program on the target resource. See configure
38 // service.
39 //
41 string resname; // The name of the SALOME resource to be used
42 string binpath; // The path of the executable program on this resource
43 string envpath; // The path of the environment file on this resource
44 };
45
46 //
47 // This set of specification defines the data structure used to
48 // initialize a job on a specific resource, then supervise the job
49 // and finally retrieve the result data.
50 //
51
52 // This defines the set of temporary folders used by the jobmanager
53 // when executing a job (may depend on the job).
55 {
59 };
60
61 // This defines the possible types for a job parameter
63
64 // This defines a single parameter for the job initialization (a med file)
66 {
67 string file_name;
69 string group_name;
70 };
71
72 // This defines a set of parameters for the job initialization
73 typedef sequence<MESHJOB::MeshJobFile> MeshJobFileList;
74
75 // This defines a single parameter for the job initialization
77 {
78 string name;
79 string value;
80 };
81
82 // This defines a set of parameters for the job initialization
83 typedef sequence<MESHJOB::MeshJobParameter> MeshJobParameterList;
84
85 // This defines the result data of a job
87 {
90 boolean status;
91 };
92
93 // This defines the possible states of a job
95
96 //
97 // This interface defines the computation services of the component
98 //
99
100 interface MeshJobManager: Engines::EngineComponent
101 {
102
106 boolean configure(in string configId, in MESHJOB::ConfigParameter configParameter)
107 raises (SALOME::SALOME_Exception);
108
110 long initialize(in MESHJOB::MeshJobFileList meshJobFileList,
112 in string configId)
113 raises (SALOME::SALOME_Exception);
114
116 boolean start(in long jobId)
117 raises (SALOME::SALOME_Exception);
118
120 string getState(in long jobId)
121 raises (SALOME::SALOME_Exception);
122
125 raises (SALOME::SALOME_Exception);
126
128 boolean clean(in long jobId)
129 raises (SALOME::SALOME_Exception);
130
132 MeshJobPaths getPaths(in long jobId)
133 raises (SALOME::SALOME_Exception);
134
137 };
138
139};
140
141#endif // _MESHJOB_IDL_
Definition: MESHJOB.idl:101
string getLastErrorMessage()
Returns the last error message (for user display)
MeshJobPaths getPaths(in long jobId)
Returns the set of temporary folders used by the job instance.
boolean start(in long jobId)
Submit the job execution and return true if submission is OK.
MeshJobResults finalize(in long jobid)
Request the launch manager for downloading the results.
string getState(in long jobId)
Request the launch manager for the state of the specified job.
long initialize(in MESHJOB::MeshJobFileList meshJobFileList, in MESHJOB::MeshJobParameterList MeshJobParameterList, in string configId)
Initialize a smesh computation job and return the job identifier.
boolean configure(in string configId, in MESHJOB::ConfigParameter configParameter)
Add a resource configuration, identified by the string configId and characterized by the parameters i...
boolean clean(in long jobId)
Clean all data associated to this job and remove the job from the launch manager.
Definition: MESHJOB.idl:33
MeshJobState
Definition: MESHJOB.idl:94
@ IN_PROCESS
Definition: MESHJOB.idl:94
@ ERROR
Definition: MESHJOB.idl:94
@ PAUSED
Definition: MESHJOB.idl:94
@ RUNNING
Definition: MESHJOB.idl:94
@ QUEUED
Definition: MESHJOB.idl:94
@ CREATED
Definition: MESHJOB.idl:94
@ FINISHED
Definition: MESHJOB.idl:94
FileType
Definition: MESHJOB.idl:62
@ MED_STEELBAR
Definition: MESHJOB.idl:62
@ MED_CONCRETE
Definition: MESHJOB.idl:62
sequence< MESHJOB::MeshJobParameter > MeshJobParameterList
Definition: MESHJOB.idl:83
sequence< MESHJOB::MeshJobFile > MeshJobFileList
Definition: MESHJOB.idl:73
Definition: MESHJOB.idl:40
string envpath
Definition: MESHJOB.idl:43
string resname
Definition: MESHJOB.idl:41
string binpath
Definition: MESHJOB.idl:42
Definition: MESHJOB.idl:66
string file_name
Definition: MESHJOB.idl:67
string group_name
Definition: MESHJOB.idl:69
FileType file_type
Definition: MESHJOB.idl:68
Definition: MESHJOB.idl:77
string name
Definition: MESHJOB.idl:78
string value
Definition: MESHJOB.idl:79
Definition: MESHJOB.idl:55
string local_resultdir
Definition: MESHJOB.idl:57
string local_inputdir
Definition: MESHJOB.idl:56
string remote_workdir
Definition: MESHJOB.idl:58
Definition: MESHJOB.idl:87
boolean status
Definition: MESHJOB.idl:90
string results_dirname
Definition: MESHJOB.idl:88
string outputmesh_filename
Definition: MESHJOB.idl:89