26 #ifndef _SALOME_COMPONENT_IDL_
27 #define _SALOME_COMPONENT_IDL_
176 in
string componentName);
196 readonly attribute
string name ;
308 void setPyScriptForCPULoad(in
string script);
311 void resetScriptForCPULoad();
370 void SetOption(in
string optionName, in
string value);
376 string GetOption(in
string optionName);
385 void Names( in
string aGraphName , in
string aNodeName ) ;
391 boolean Kill_impl() ;
398 boolean Stop_impl() ;
405 boolean Suspend_impl() ;
411 boolean Resume_impl() ;
417 long CpuUsed_impl() ;
425 in
boolean isMultiFile,
426 out boolean isValidScript);
527 boolean hasObjectInfo();
540 string getObjectInfo(in
string entry);
628 typedef sequence<Engines::file>
files;
static std::ostream * out
Definition: DSC_interface.cxx:381
This file contains a set of interfaces used for creation, management and modification of the Study.
This file contains a set of interfaces used for communication between components.
This file contains the objects defining the main exception used in SALOME application.
interface for common behavior of SALOME transient CORBA objects
interface for remote python execution
The main exception in SALOME application.
Definition: SALOME_Exception.idl:71
Interface of the Container.
Definition: SALOME_Component.idl:81
vectorOfDouble loadOfCPUCores()
Return a load of each CPU core.
fileTransfer getFileTransfer()
Create a fileTransfer.
string getHostName()
Returns the hostname of the container.
boolean Kill_impl()
Kill the container.
void set_big_obj_on_disk_directory(in string directory)
Salome_file createSalome_file(in string origFileName)
Create a Salome_file.
void setVerbosity(in boolean activated, in string level)
void cleanAllPyScripts()
This method remove all refs of PyScriptNode servant objects stored in server.
void verbosity(out boolean activated, out string level)
fileRef createFileRef(in string origFileName)
Create a fileRef.
Engines::EngineComponent create_component_instance_env(in string componentName, in FieldsDict env, out string reason)
Create a new servant instance of a component with environment variables specified.
void set_current_directory(in string cwd)
void set_timeout_before_retrying(in long timeInSecond)
void set_big_obj_on_disk_threshold(in long thresholdInByte)
void removePyScriptNode(in string nodeName)
void finalize_removal()
Unload component libraries from the container.
attribute long monitoringtimeresms
interval of time between two measures of CPU/time process container
Definition: SALOME_Component.idl:208
FieldsDict get_os_environment()
EngineComponent find_component_instance(in string registeredName)
Find a servant instance of a component.
long getNumberOfCPUCores()
Return number of CPU cores in the calculation node.
void set_directory_for_replay_files(in string directory)
EngineComponent load_impl(in string nameToRegister, in string componentName)
Find a servant instance of a component, or create a new one.
EmbeddedNamingService get_embedded_NS_if_ssl()
In case of SSL mode Returns entry to Embedded NS.
PyNode getDefaultPyNode(in string nodeName)
Retrieves the last created PyNode instance with createPyNode.
attribute string locallogfilename
name of the container log file
Definition: SALOME_Component.idl:205
void ping()
Determines whether the server has been loaded or not.
boolean load_component_Library(in string componentName, out string reason)
Loads a new component class (dynamic library).
vectorOfVectorOfString getAllLogFileNameGroups()
void set_startup_code(in string codeAtStartUp)
void ShutdownNow()
Shutdown the Container process. Shutdown is immediate for this method.
string get_startup_code()
void execute_python_code(in string code)
void set_number_of_retry(in long nbRetry)
void remove_impl(in EngineComponent component_i)
Remove the component servant, and deletes all related objects.
string create_python_service_instance(in string serviceName, out string reason)
Create a new Python servant instance of a generic service.
attribute string logfilename
name of the container log file (this has been set by the launcher)
Definition: SALOME_Component.idl:202
void copyFile(in Container contai, in string remoteFile, in string localFile)
Copy a file from a remote host (container) to a local file.
void override_environment(in FieldsDict env)
void addLogFileNameGroup(in vectorOfString groupOfLogFileNames)
PyScriptNode getDefaultPyScriptNode(in string nodeName)
Retrieves the last created PyScriptNode instance with createPyScriptNode.
void override_environment_python(in FieldsDict env)
long getPID()
Returns the PID of the container.
PyNode createPyNode(in string nodeName, in string code)
Create a PyNode in the container.
readonly attribute string name
Name of the container.
Definition: SALOME_Component.idl:196
Engines::EngineComponent create_component_instance(in string componentName)
Create a new servant instance of a component.
void Shutdown()
Shutdown the Container process. Shutdown is not immediate. It waits for all remaining invokation comp...
PyScriptNode createPyScriptNode(in string nodeName, in string code)
Create a PyScriptNode in the container.
readonly attribute string workingdir
working directory of the container
Definition: SALOME_Component.idl:199
Definition: SALOME_Embedded_NamingService.idl:29
Interface of the component.
Definition: SALOME_Component.idl:328
void ping()
Determines whether the server has already been loaded or not.
readonly attribute string interfaceName
The name of the interface of the Component.
Definition: SALOME_Component.idl:333
readonly attribute string instanceName
The name of the instance of the Component.
Definition: SALOME_Component.idl:330
Base interface of the component that supports exporting data.
Definition: SALOME_Component.idl:558
boolean ImportDataAs(in string format, in SALOME::GenericObj exporter)
SALOME::StringSeq GetImportableFormats()
Get a list of supported formats.
Definition: SALOME_PyNode.idl:65
Definition: SALOME_PyNode.idl:77
Interface of a Salome_file managed This file is independent of a Salome module.
Definition: SALOME_Component.idl:650
void save_all(in string hdf5_file)
Save a Salome_file into a hdf5_file.
void connect(in Engines::Salome_file source_Salome_file)
Connect a Salome_file with another Salome_file.
void recvFiles()
Get all the distributed files managed by the Salome_file and check all the local files.
void setDistributedFile(in string comp_file_name)
Add a Distributed file to the Salome_file.
void setLocalFile(in string comp_file_name)
Add a Local file to the Salome_file.
void connectDistributedFile(in string file_name, in Engines::Salome_file source_Salome_file)
Connect the managed file file_name to a Salome_file.
void save(in string hdf5_file)
Save a Salome_file into a hdf5_file.
void load(in string hdf5_file)
Load a Salome_file from a hdf5 file.
void setDistributedSourceFile(in string file_name, in string source_file_name)
Connect the file_name with a Distributed file_name.
Interface of fileRef.
Definition: SALOME_Component.idl:805
boolean addRef(in string machine, in string fileName)
readonly attribute string refMachine
the machine of the original file
Definition: SALOME_Component.idl:809
readonly attribute string origFileName
the original file
Definition: SALOME_Component.idl:807
string getRef(in string machine)
Interface of fileTransfer.
Definition: SALOME_Component.idl:572
void putBlock(in long fileId, in fileBlock block)
Put a file data block.
fileBlock getBlock(in long fileId)
Get a file data block.
long openW(in string fileName)
Open the file transfer in write mode for file fileName.
long open(in string fileName)
Open the file transfer.
void close(in long fileId)
Close the file transfer.
interface for common behavior of SALOME transient CORBA objects
Definition: SALOME_GenericObj.idl:40
This is a package of interfaces used for connecting new components to SALOME application.
Definition: DSC_Engines.idl:36
sequence< octet > fileBlock
A block of binary data used for file transfer. The maximum size of the block is defined on server sid...
Definition: SALOME_Component.idl:562
sequence< vectorOfString > vectorOfVectorOfString
Definition: SALOME_Component.idl:68
sequence< KeyValuePair > FieldsDict
Definition: SALOME_Component.idl:65
sequence< double > vectorOfDouble
Definition: SALOME_Component.idl:66
sequence< Engines::file > files
A sequence of Engines::file.
Definition: SALOME_Component.idl:628
sequence< string > vectorOfString
Definition: SALOME_Component.idl:67
sequence< octet > TMPFile
A byte stream which is used for binary data transfer between different components.
Definition: SALOME_Component.idl:50
def getTotalPhysicalMemory()
Definition: salome_psutil.py:71
def getTotalPhysicalMemoryInUseByMe()
Definition: salome_psutil.py:87
def getTotalPhysicalMemoryInUse()
Definition: salome_psutil.py:79
def getVersion(mod="KERNEL", full=False)
Definition: salome_version.py:50
Module SALOME contains all base interfaces of SALOME Kernel.
Definition: SALOME_LockMasterImpl.hxx:29
sequence< string > StringSeq
Definition: SALOME_GenericObj.idl:35
format
Definition: extension_utilities.py:48
container
Definition: TestComponentPy.py:63
cwd
Definition: launcher_use_case.py:40
level
Definition: salome_common.py:28
General Key Value Structure to set or get properties, for component.
Definition: SALOME_Component.idl:54
any value
Definition: SALOME_Component.idl:56
string key
Definition: SALOME_Component.idl:55
The state of a Salome_file.
Definition: SALOME_Component.idl:632
string hdf5_file_name
hdf5 file where the file can be saved
Definition: SALOME_Component.idl:636
boolean files_ok
information if all the files are received
Definition: SALOME_Component.idl:640
string name
file name
Definition: SALOME_Component.idl:634
long number_of_files
number of files managed
Definition: SALOME_Component.idl:638
Structure data type to hold reference on data.
Definition: SALOME_Component.idl:61
string ref
Definition: SALOME_Component.idl:62
A file managed by a Salome_file.
Definition: SALOME_Component.idl:614
string source_file_name
Definition: SALOME_Component.idl:620
string type
Definition: SALOME_Component.idl:619
string status
status ("present" or "notpresent")
Definition: SALOME_Component.idl:622
string file_name
file name
Definition: SALOME_Component.idl:616
string path
path name
Definition: SALOME_Component.idl:618
Engines::Container container
Definition: SALOME_Component.idl:624
long node
Definition: SALOME_Component.idl:623