|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcascading.flow.Flow
cascading.flow.ProcessFlow<P>
public class ProcessFlow<P>
Class ProcessFlow is a Flow subclass that supports custom Riffle jobs.
Cascade scheduler. If
other Flow instances in the Cascade share resources with this Flow instance, all participants will be scheduled
according to their dependencies (topologically).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class cascading.flow.Flow |
|---|
Flow.FlowHolder |
| Field Summary |
|---|
| Fields inherited from class cascading.flow.Flow |
|---|
sources, stopJobsOnExit |
| Constructor Summary | |
|---|---|
ProcessFlow(Map<Object,Object> properties,
String name,
P process)
Constructor ProcessFlow creates a new ProcessFlow instance. |
|
ProcessFlow(String name,
P process)
Constructor ProcessFlow creates a new ProcessFlow instance. |
|
| Method Summary | |
|---|---|
void |
cleanup()
|
void |
complete()
Method complete starts the current Flow instance if it has not be previously started, then block until completion. |
P |
getProcess()
Method getProcess returns the process of this ProcessFlow object. |
void |
prepare()
Method prepare is used by a Cascade to notify the given Flow it should initialize or clear any resources
necessary for Flow.start() to be called successfully. |
void |
setTapFromProcess()
Method setTapFromProcess build Tap instance for the give process incoming and outgoing dependencies. |
void |
start()
Method start begins the execution of this Flow instance. |
void |
stop()
Method stop stops all running jobs, killing any currently executing. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@ConstructorProperties(value={"name","process"})
public ProcessFlow(String name,
P process)
name - of type Stringprocess - of type JobConf
@ConstructorProperties(value={"properties","name","process"})
public ProcessFlow(Map<Object,Object> properties,
String name,
P process)
properties - of type Map| Method Detail |
|---|
public void setTapFromProcess()
Tap instance for the give process incoming and outgoing dependencies.
This method may be called repeatedly to re-configure the source and sink taps.
public P getProcess()
public void prepare()
FlowCascade to notify the given Flow it should initialize or clear any resources
necessary for Flow.start() to be called successfully.
Specifically, this implementation calls Flow.deleteSinksIfNotUpdate().
prepare in class Flowpublic void start()
FlowFlow.complete()
to block until this Flow completes.
start in class Flowpublic void stop()
Flow
stop in class Flowpublic void complete()
Flow
complete in class Flowpublic void cleanup()
cleanup in class Flowpublic String toString()
toString in class Flow
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||