|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qedeq.kernel.bo.service.internal.ServiceProcessManager
public class ServiceProcessManager
Manage all known processes.
Constructor Summary | |
---|---|
ServiceProcessManager(PluginManager pluginManager,
ModuleArbiter arbiter)
Constructor. |
Method Summary | |
---|---|
InternalModuleServiceCallImpl |
createServiceCall(Service service,
QedeqBo qedeq,
Parameters configParameters,
Parameters parameters,
InternalServiceJob process)
Create service call. |
InternalServiceJob |
createServiceJob(java.lang.String id)
Create a service job for executing a plugin. |
InternalServiceJobImpl |
createServiceProcess(java.lang.String action)
|
void |
endServiceCall(InternalModuleServiceCall call)
End service call by unlocking previously locked module. |
java.lang.Object |
executePlugin(java.lang.String id,
KernelQedeqBo qedeq,
java.lang.Object data,
InternalServiceJob process)
Execute a plugin on an QEDEQ module. |
ModuleServiceResult |
executeService(ModuleService service,
ModuleServiceExecutor executor,
QedeqBo qedeq,
InternalServiceJob process)
|
ServiceJob[] |
getRunningServiceProcesses()
Get all running service processes. |
ServiceJob[] |
getServiceProcesses()
Get all service processes. |
void |
terminateAllServiceProcesses()
Terminate all service processes. |
void |
terminateAndRemoveAllServiceProcesses()
Remove all service processes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceProcessManager(PluginManager pluginManager, ModuleArbiter arbiter)
pluginManager
- Collects process information.arbiter
- For module access synchronization.Method Detail |
---|
public ServiceJob[] getServiceProcesses()
public ServiceJob[] getRunningServiceProcesses()
public InternalModuleServiceCallImpl createServiceCall(Service service, QedeqBo qedeq, Parameters configParameters, Parameters parameters, InternalServiceJob process) throws InterruptException
service
- The service that runs in current thread.qedeq
- QEDEQ module for service.configParameters
- Config parameters for the service.parameters
- Parameter for this service call.process
- We run in this process.
null
(if no InterruptException
occurred).
InterruptException
- User canceled call.public void endServiceCall(InternalModuleServiceCall call)
call
- End this call, which should be finished, interrupted or halted before.public void terminateAndRemoveAllServiceProcesses()
public void terminateAllServiceProcesses()
public InternalServiceJobImpl createServiceProcess(java.lang.String action)
public ModuleServiceResult executeService(ModuleService service, ModuleServiceExecutor executor, QedeqBo qedeq, InternalServiceJob process) throws InterruptException
InterruptException
public java.lang.Object executePlugin(java.lang.String id, KernelQedeqBo qedeq, java.lang.Object data, InternalServiceJob process) throws InterruptException
id
- Plugin to use.qedeq
- QEDEQ module to work on.data
- Process parameters.process
- Process. Must not be null
..
null
.
InterruptException
- User interrupt occurred.
java.lang.RuntimeException
- Plugin unknown or process is not running any more.public InternalServiceJob createServiceJob(java.lang.String id)
id
- Plugin to use.
java.lang.RuntimeException
- Plugin unknown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |