General KERNEL Documentation     End User KERNEL Services  


idl/SALOME_ContainerManager.idl

Go to the documentation of this file.
00001 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00002 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00003 // 
00004 // This library is free software; you can redistribute it and/or
00005 // modify it under the terms of the GNU Lesser General Public
00006 // License as published by the Free Software Foundation; either 
00007 // version 2.1 of the License.
00008 // 
00009 // This library is distributed in the hope that it will be useful 
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00012 // Lesser General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU Lesser General Public  
00015 // License along with this library; if not, write to the Free Software 
00016 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00017 //
00018 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00019 //
00020 #ifndef _SALOME_CONTAINERMANAGER_IDL_
00021 #define _SALOME_CONTAINERMANAGER_IDL_
00022 
00023 #include "SALOME_Exception.idl"
00024 #include "SALOME_Component.idl"
00025 
00026 module Engines
00027 {
00028 
00032 struct MachineParameters
00033 {
00034   string container_name;
00035   string hostname;
00036   string OS;
00037   long mem_mb;
00038   long cpu_clock;
00039   long nb_proc_per_node;
00040   long nb_node;
00041   boolean isMPI;
00042 };
00043 
00047   typedef sequence<string> MachineList;
00048 
00052   exception NotFound {};
00053 
00054 
00059   interface ContainerManager
00060   {
00061     Container FindOrStartContainer( in MachineParameters params,
00062                         in MachineList possibleComputers);
00063 
00064     string FindBest(in MachineList possibleComputers);
00065 
00066     MachineList GetFittingResources( in MachineParameters params,
00067                          in string componentName )
00068       raises (SALOME::SALOME_Exception);
00069 
00070     void Shutdown();
00071 
00072     void ShutdownContainers();
00073   } ;
00074 };
00075   
00076 #endif