Version: 7.8.0
Main Page
Related Pages
Packages
Data Structures
Files
File List
Globals
SALOME_ResourcesManager.idl
Go to the documentation of this file.
1
// Copyright (C) 2007-2016 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, or (at your option) any later version.
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_RESOURCESMANAGER_IDL_
24
#define _SALOME_RESOURCESMANAGER_IDL_
25
26
#include "
SALOME_Exception.idl
"
27
31
module Engines
32
{
33
35
typedef
sequence<string>
ResourceList
;
37
typedef
sequence<string>
CompoList
;
38
40
struct
ResourceParameters
41
{
43
47
string
name
;
48
50
string
hostname
;
52
boolean
can_launch_batch_jobs
;
54
boolean
can_run_containers
;
56
string
OS
;
58
59
CompoList
componentList
;
60
61
// Permits to order resources
63
66
long
nb_proc
;
67
69
88
long
mem_mb
;
90
long
cpu_clock
;
92
long
nb_node
;
94
long
nb_proc_per_node
;
95
96
// Permits to configure SALOME resource management
98
string
policy
;
100
ResourceList
resList
;
101
};
102
104
struct
ResourceDefinition
105
{
107
string
name
;
109
string
hostname
;
111
string
type
;
114
string
protocol
;
116
string
username
;
118
string
applipath
;
120
CompoList
componentList
;
121
123
string
OS
;
125
long
mem_mb
;
127
long
cpu_clock
;
129
long
nb_node
;
131
long
nb_proc_per_node
;
133
string
batch
;
135
string
mpiImpl
;
138
string
iprotocol
;
139
141
boolean
can_launch_batch_jobs
;
143
boolean
can_run_containers
;
144
146
string
working_directory
;
147
};
148
153
interface
ResourcesManager
154
{
156
string
FindFirst(in ResourceList possibleResources);
157
159
string
Find(in
string
policy, in ResourceList possibleResources);
160
162
165
ResourceList GetFittingResources(in
ResourceParameters
params) raises (
SALOME::SALOME_Exception
);
166
168
ResourceDefinition
GetResourceDefinition(in
string
name) raises (
SALOME::SALOME_Exception
);
169
171
176
void
AddResource(in
ResourceDefinition
new_resource, in
boolean
write, in
string
xml_file)
177
raises (
SALOME::SALOME_Exception
);
178
180
185
void
RemoveResource(in
string
resource_name, in
boolean
write, in
string
xml_file)
186
raises (
SALOME::SALOME_Exception
);
187
189
string
getMachineFile(in
string
resource_name, in
long
nb_procs, in
string
parallelLib)
190
raises (
SALOME::SALOME_Exception
);
191
};
192
193
};
194
195
#endif
idl
SALOME_ResourcesManager.idl
Copyright © 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS