Change in ovirt-engine[master]: core: Adding support for completion service for ThreadPoolUt...

emesika at redhat.com emesika at redhat.com
Sun Dec 30 07:56:20 UTC 2012


Eli Mesika has submitted this change and it was merged.

Change subject: core: Adding support for completion service for ThreadPoolUtil
......................................................................


core: Adding support for completion service for ThreadPoolUtil

Completion service (java.util.concurrent.ExecutorCompletionService) is a wrapper
for Exeuctor which allows to submit tasks, and to dequeue (using an internal blocking
queue) the results of the execution
Added a support for it on top of our ThreadPoolUtil, as we use an exeuctor to hold
the thread pool.
These new static methods will be used by the multi-agents RFE implementation

Bug-Url:
Change-Id:  If806302ecf028a5db1c9726a407a1643b5c000b6
signed-off-by: Yair Zaslavsky <yzaslavs at redhat.com>
---
M backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/threadpool/ThreadPoolUtil.java
1 file changed, 28 insertions(+), 0 deletions(-)

Approvals:
  Eli Mesika: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/10439
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If806302ecf028a5db1c9726a407a1643b5c000b6
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <yzaslavs at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Liron Aravot <laravot at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>
Gerrit-Reviewer: liron aravot <liron.aravot at gmail.com>



More information about the Engine-commits mailing list