Salome HOME
Rename new ResourcesManager CORBA method
[modules/kernel.git] / idl / SALOME_ContainerManager.idl
index 66d51d569bf96e660c871a1092f4bf79c4bc5814..917323813bd697fd1f46d5c9c9591ac7a4a1c808 100644 (file)
@@ -125,6 +125,8 @@ struct ResourceDefinition
   string applipath;
   //! list of available components 
   CompoList componentList;
+  //! Type of resource: interactive or batch
+  string mode;
 
   //! operating system 
   string OS;
@@ -239,6 +241,15 @@ interface ResourcesManager
 
   //!  Get definition of a resource
   ResourceDefinition GetResourceDefinition(in string name);
+
+  //! Add a new resource to the resource_manager
+  /*!
+      write -> true, resource manager will add it into a xml_file
+      xml_file -> could be empty, in this case if write is true, resource manager will write
+      the resource in its first ResourceCatalog file
+    */
+  void AddResource(in ResourceDefinition new_resource, in boolean write, in string xml_file) 
+    raises (SALOME::SALOME_Exception);
 };