Salome HOME
Merge from V6_main 28/02/2013
[modules/kernel.git] / idl / SALOME_ContainerManager.idl
1 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 #ifndef _SALOME_CONTAINERMANAGER_IDL_
24 #define _SALOME_CONTAINERMANAGER_IDL_
25
26 #include "SALOME_Exception.idl"
27 #include "SALOME_Component.idl"
28 #include "SALOME_ResourcesManager.idl"
29
30 /*! \file SALOME_ContainerManager.idl \brief interfaces for %SALOME Container Manager service
31 */
32
33 module Engines
34 {
35
36 //! Type to describe required properties of a container
37 struct ContainerParameters
38 {
39   //! container name if given else automatic
40   string container_name;
41
42   //! creation mode for GiveContainer if given else automatic 
43   /*!start creates a new container
44    * get  try to find an existing container
45    * getorstart   use an existing container if it exists or creates a new one
46    */
47   string mode;
48
49   //! container working directory if given else automatic
50   string workingdir;
51
52   // Parallel part
53   //! Number of proc of a parallel container
54   long nb_proc;
55   //! if true start a MPI container
56   boolean isMPI;
57   //! PaCO specific informations
58   string parallelLib;
59
60   //! Parameters to choose a resource
61   ResourceParameters resource_params;
62 };
63
64 /*! \brief Interface of the %containerManager
65     This interface is used for interaction with the unique instance
66     of ContainerManager
67 */
68 interface ContainerManager
69 {
70   //! GiveContainer - use mode parameter of ContainerParameters to configure
71   //! how this method works
72   //! Currently: get, start, getorstart, findorstart, find
73   Container GiveContainer(in ContainerParameters params) raises (SALOME::SALOME_Exception);
74
75   //!  Shutdown all containers that have been launched by the container manager
76   void ShutdownContainers();
77 } ;
78
79 };
80   
81 #endif