|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qedeq.kernel.bo.service.internal.ModuleArbiterImpl
public class ModuleArbiterImpl
Get locks for modules. TODO 20130508 m31: Currently we make no difference between read and write locks. We also lock a module during the whole plugin processing for that module. This could be limited to status changes only.
| Constructor Summary | |
|---|---|
ModuleArbiterImpl()
Constructor. |
|
| Method Summary | |
|---|---|
QedeqBoSet |
getBlockedModules(ServiceJob process)
Get all blocked modules from given process. |
boolean |
lockRequiredModule(InternalModuleServiceCall call)
Lock QEDEQ module for exclusive read and write access. |
boolean |
unlockRequiredModule(InternalModuleServiceCall call)
Unlock module again. |
boolean |
unlockRequiredModule(ServiceJob process,
QedeqBo qedeq)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleArbiterImpl()
| Method Detail |
|---|
public boolean lockRequiredModule(InternalModuleServiceCall call)
throws InterruptException
ModuleArbiter
lockRequiredModule in interface ModuleArbitercall - This service call acquires the lock.
InterruptException - Lock acquirement interrupted.public boolean unlockRequiredModule(InternalModuleServiceCall call)
ModuleArbiter
unlockRequiredModule in interface ModuleArbitercall - This call must have acquired the lock.
public boolean unlockRequiredModule(ServiceJob process,
QedeqBo qedeq)
public QedeqBoSet getBlockedModules(ServiceJob process)
ModuleArbiter
getBlockedModules in interface ModuleArbiterprocess - Get all modules blocked by this job.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||