|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PipelineExecution
A handle to allow clients to control a Crunch pipeline as it runs. This interface is thread-safe.
Nested Class Summary | |
---|---|
static class |
PipelineExecution.Status
|
Method Summary | |
---|---|
String |
getPlanDotFile()
Returns the .dot file that allows a client to graph the Crunch execution plan for this pipeline. |
PipelineResult |
getResult()
Retrieve the result of a pipeline if it has been completed, otherwise null . |
PipelineExecution.Status |
getStatus()
|
void |
kill()
Kills the pipeline if it is running, no-op otherwise. |
void |
waitFor(long timeout,
TimeUnit timeUnit)
Blocks until pipeline completes or the specified waiting time elapsed. |
void |
waitUntilDone()
Blocks until pipeline completes, i.e. |
Method Detail |
---|
String getPlanDotFile()
void waitFor(long timeout, TimeUnit timeUnit) throws InterruptedException
InterruptedException
void waitUntilDone() throws InterruptedException
SUCCEEDED
, FAILED
or KILLED
.
InterruptedException
PipelineExecution.Status getStatus()
PipelineResult getResult()
null
.
void kill() throws InterruptedException
waitUntilDone()
after this call.
InterruptedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |