public class ProcessExecutorFactory extends Object
ProcessExecutor instance. As the creation and assembly of a ProcessExecutor
is not trivial this has been moved to this Factory bean.
The ProcessExecutor created depends on the operation system and the associated property configuration.
Furthermore the ProcessExecutor might be wrapped by a LimitedProcessExecutor to restrict the amount
of parallel processes at a time.| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGURATION_KEY_PREFIX
Property key prefix for operation specific process executor flavor setup.
|
| Constructor and Description |
|---|
ProcessExecutorFactory() |
| Modifier and Type | Method and Description |
|---|---|
ProcessExecutor |
create()
Creates a new
ProcessExecutor. |
protected ProcessExecutor |
create(String flavor)
Creates the 'core' process executor for the specified configured 'flavor'.
|
protected ProcessExecutor |
createOSSpecific()
Chooses which os specific
ProcessExecutor to create and return it. |
void |
destroy()
Destroys all created
ProcessExecutor instances created by this factory. |
ConfigurationService |
getConfigurationService() |
int |
getLimit()
Gets the maximum amount of parallel process to execute (if positive).
|
OsConfigurationService |
getOsConfigurationService() |
ProcessContextRegistry |
getProcessContextRegistry() |
RMIRegistryService |
getRmiRegistryService() |
protected String |
getTenantId()
Accesses the current tenant's id.
|
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setLimit(int limit)
Sets the maximum amount of parallel processes.
|
void |
setOsConfigurationService(OsConfigurationService osConfigurationService) |
void |
setProcessContextRegistry(ProcessContextRegistry processContextRegistry) |
void |
setRmiRegistryService(RMIRegistryService rmiRegistryService) |
public static final String CONFIGURATION_KEY_PREFIX
public ProcessExecutor create()
ProcessExecutor. This method isProcessExecutorpublic void destroy()
ProcessExecutor instances created by this factory.protected ProcessExecutor createOSSpecific()
ProcessExecutor to create and return it.ProcessExecutor instance ot use.protected ProcessExecutor create(String flavor)
flavor - the configured flavorIllegalArgumentException - if the specified flavor is not supported.protected String getTenantId()
public int getLimit()
public void setLimit(int limit)
limit - the maximum parallel process number.public ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
public RMIRegistryService getRmiRegistryService()
public void setRmiRegistryService(RMIRegistryService rmiRegistryService)
public OsConfigurationService getOsConfigurationService()
public void setOsConfigurationService(OsConfigurationService osConfigurationService)
public ProcessContextRegistry getProcessContextRegistry()
public void setProcessContextRegistry(ProcessContextRegistry processContextRegistry)
Copyright © 2017 SAP SE. All Rights Reserved.