1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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, or (at your option) any later version.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 #ifndef _SALOME_CONTAINERMANAGER_IDL_
24 #define _SALOME_CONTAINERMANAGER_IDL_
26 #include "SALOME_Exception.idl"
27 #include "SALOME_Component.idl"
28 #include "SALOME_ResourcesManager.idl"
30 /*! \file SALOME_ContainerManager.idl \brief interfaces for %SALOME Container Manager service
36 //! Type to describe required properties of a container
37 struct ContainerParameters
39 //! container name if given else automatic
40 string container_name;
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
49 //! container working directory if given else automatic
53 //! Number of proc of a parallel container
55 //! if true start a MPI container
57 //! PaCO specific informations
60 //! Parameters to choose a resource
61 ResourceParameters resource_params;
64 /*! \brief Interface of the %containerManager
65 This interface is used for interaction with the unique instance
68 interface ContainerManager
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);
75 //! Shutdown all containers that have been launched by the container manager
76 void ShutdownContainers();