1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/
20 #ifndef _SALOME_CONTAINERMANAGER_IDL_
21 #define _SALOME_CONTAINERMANAGER_IDL_
23 #include "SALOME_Exception.idl"
24 #include "SALOME_Component.idl"
30 Type to describe properties of wanted resource.
32 struct MachineParameters
34 string container_name;
39 long nb_proc_per_node;
45 Type to transmit list of machines.
47 typedef sequence<string> MachineList;
50 exception thrown if a computer is not found in the catalog
52 exception NotFound {};
55 /*! \brief Interface of the %containerManager
56 This interface is used for interaction with the unique instance
59 interface ContainerManager
61 Container FindOrStartContainer( in MachineParameters params,
62 in MachineList possibleComputers);
64 string FindBest(in MachineList possibleComputers);
66 MachineList GetFittingResources( in MachineParameters params,
67 in string componentName )
68 raises (SALOME::SALOME_Exception);
72 void ShutdownContainers();