|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcascading.flow.BaseFlow<JobConf>
cascading.flow.hadoop.HadoopFlow
cascading.flow.hadoop.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).
Though this class sub-classes HadoopFlow
, it does not support all the methods available or features.
Currently FlowListener
s are supported but the
FlowListener.onThrowable(cascading.flow.Flow, Throwable)
event is not.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class cascading.flow.BaseFlow |
---|
BaseFlow.FlowHolder |
Field Summary |
---|
Fields inherited from class cascading.flow.BaseFlow |
---|
flowStats, sinks, sources, stop, stopJobsOnExit, thread |
Fields inherited from interface cascading.flow.Flow |
---|
CASCADING_FLOW_ID |
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()
|
P |
getProcess()
Method getProcess returns the process of this ProcessFlow object. |
void |
prepare()
|
void |
setTapFromProcess()
Method setTapFromProcess build Tap instance for the give process incoming and outgoing dependencies. |
void |
start()
|
void |
stop()
|
String |
toString()
|
Methods inherited from class cascading.flow.hadoop.HadoopFlow |
---|
getConfig, getConfigAsProperties, getConfigCopy, getFlowProcess, getMaxNumParallelSteps, getProperty, initConfig, initFromProperties, internalClean, internalShutdown, internalStart, isPreserveTemporaryFiles, newConfig, setConfigProperty, stepsAreLocal |
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 MapMethod 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()
prepare
in interface Flow<JobConf>
prepare
in interface UnitOfWork<FlowStats>
prepare
in class BaseFlow<JobConf>
public void start()
start
in interface Flow<JobConf>
start
in interface UnitOfWork<FlowStats>
start
in class BaseFlow<JobConf>
public void stop()
stop
in interface Flow<JobConf>
stop
in interface UnitOfWork<FlowStats>
stop
in class BaseFlow<JobConf>
public void complete()
complete
in interface Flow<JobConf>
complete
in interface UnitOfWork<FlowStats>
complete
in class BaseFlow<JobConf>
public void cleanup()
cleanup
in interface Flow<JobConf>
cleanup
in interface UnitOfWork<FlowStats>
cleanup
in class BaseFlow<JobConf>
public String toString()
toString
in class BaseFlow<JobConf>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |