public class WorkManager.WorkerBee extends Object
| Constructor and Description |
|---|
WorkManager.WorkerBee() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFragmentRunner(FragmentExecutor fragmentExecutor)
Currently used to start a root fragment that is not blocked on data, and leaf fragments.
|
void |
addNewForeman(Foreman foreman) |
void |
addNewWork(Runnable runnable)
Add a self contained runnable work to executor service.
|
DrillbitContext |
getContext() |
Foreman |
getForemanForQueryId(UserBitShared.QueryId queryId) |
FragmentExecutor |
getFragmentRunner(ExecProtos.FragmentHandle handle) |
void |
retireForeman(Foreman foreman)
Remove the given Foreman from the running query list.
|
void |
startFragmentPendingRemote(FragmentManager fragmentManager)
Currently used to start a root fragment that is blocked on data, and intermediate fragments.
|
public void addNewForeman(Foreman foreman)
public void addNewWork(Runnable runnable)
runnable - public void retireForeman(Foreman foreman)
The running query list is a bit of a misnomer, because it doesn't
necessarily mean that Foreman.run()
is executing. That only lasts for the duration of query setup, after which
the Foreman instance survives as a state machine that reacts to events
from the local root fragment as well as RPC responses from remote Drillbits.
foreman - the Foreman to retirepublic Foreman getForemanForQueryId(UserBitShared.QueryId queryId)
public DrillbitContext getContext()
public void addFragmentRunner(FragmentExecutor fragmentExecutor)
fragmentExecutor - the executor to runpublic void startFragmentPendingRemote(FragmentManager fragmentManager)
fragmentManager - the manager for the fragmentpublic FragmentExecutor getFragmentRunner(ExecProtos.FragmentHandle handle)
Copyright © 2017 The Apache Software Foundation. All rights reserved.