@UESComponent public interface UESProcessManager
Modifier and Type | Method and Description |
---|---|
void |
exitProcess()
Exits active process and sets its parent process as active one.
|
void |
forkProcess()
Creates the new child-process for current process and makes it active (all
following commands are executed in this child-process).
|
<T> T |
getParameter(java.lang.String aName,
Returns parameter from environment of active process, or from parent process environment if parameter is
not present in active active process environment.
|
void |
setParameter(java.lang.String aName,
Sets local parameter to active process environment.
|
void |
setRetainedParameter(java.lang.String aName,
Sets parameter to active process environment.
|
This method can be used to fork either system process or application process. In case system process is forked, new session process ID is associated with this new child-process.
UESProcessManagerRTException
- In case fork of process failed or fork is not possibleUESProcessManagerRTException
- In case exit of process failed or exit is not possibleaName
- Name of parameter. Should be in format system_subsystem_module[_submodule]_parameterName.aValue
- Value of parameter. Value may be null in which case parameter is removed from process
environment (does not remove parameter from parent process environment).UESProcessManagerRTException
- In case store of parameter fails or store is not possible (e.g. there
is already another parameter set under given name but of different type)aName
- Name of parameter. Should be in format system_subsystem_module[_submodule]_parameterName.aValue
- Value of parameter. Value may be null in which case parameter is removed from process
environment (does not remove parameter from parent process environment).UESProcessManagerRTException
- In case store of parameter fails or store is not possible (e.g. there
is already another parameter set under given name but of different type)
Returned parameter should be always handled as immutable. If you need to change some internal value
of parameter object, create new parameter object and store it as whole.
T
- Type of parameter valueaName
- Name of parameteraParamClass
- Class of parameter valueUESProcessManagerRTException
- In case reading of parameter fails or read is not possible(e.g. given
class does not match type of parameter stored under given name)