|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcascading.property.UnitOfWorkDef<FlowDef>
cascading.flow.FlowDef
public class FlowDef
Class FlowDef is a fluent interface for defining a Flow.
FlowConnector connect methods, FlowConnector.connect(FlowDef)
can be called.
| Field Summary | |
|---|---|
protected AssertionLevel |
assertionLevel
|
protected Map<String,Tap> |
checkpoints
|
protected DebugLevel |
debugLevel
|
protected String |
runID
|
protected Map<String,Tap> |
sinks
|
protected Map<String,Tap> |
sources
|
protected List<Pipe> |
tails
|
protected Map<String,Tap> |
traps
|
| Fields inherited from class cascading.property.UnitOfWorkDef |
|---|
name, tags |
| Constructor Summary | |
|---|---|
FlowDef()
Constructor FlowDef creates a new FlowDef instance. |
|
| Method Summary | |
|---|---|
FlowDef |
addCheckpoint(Checkpoint pipe,
Tap checkpoint)
Method addCheckpoint adds a new checkpoint Tap named after the given Checkpoint for use in the resulting Flow. |
FlowDef |
addCheckpoint(String name,
Tap checkpoint)
Method addCheckpoint adds a new named checkpoint Tap for use in the resulting Flow. |
FlowDef |
addCheckpoints(Map<String,Tap> checkpoints)
Method addCheckpoints adds a Map of the names and Tap pairs. |
FlowDef |
addSink(Pipe tail,
Tap sink)
Method addSink adds a new sink Tap named after the given Pipe for use in the resulting Flow. |
FlowDef |
addSink(String name,
Tap sink)
Method addSink adds a new named sink Tap for use in the resulting Flow. |
FlowDef |
addSinks(Map<String,Tap> sinks)
Method addSinks adds a Map of the named and Tap pairs. |
FlowDef |
addSource(Pipe pipe,
Tap source)
Method addSource adds a new source Tap named after the given Pipe for use in the resulting Flow. |
FlowDef |
addSource(String name,
Tap source)
Method addSource adds a new named source Tap for use in the resulting Flow. |
FlowDef |
addSources(Map<String,Tap> sources)
Method addSources adds a map of name and Tap pairs. |
FlowDef |
addTail(Pipe tail)
Method addTail adds a new Pipe to this FlowDef that represents a tail in a pipe assembly. |
FlowDef |
addTails(Collection<Pipe> tails)
Method addTails adds a Collection of tails. |
FlowDef |
addTails(Pipe... tails)
Method addTails adds an array of tails. |
FlowDef |
addTailSink(Pipe tail,
Tap sink)
Method addTailSink adds the tail Pipe and sink Tap to this FlowDef. |
FlowDef |
addTrap(Pipe pipe,
Tap trap)
Method addTrap adds a new trap Tap named after the given Pipe for use in the resulting Flow. |
FlowDef |
addTrap(String name,
Tap trap)
Method addTrap adds a new named trap Tap for use in the resulting Flow. |
FlowDef |
addTraps(Map<String,Tap> traps)
Method addTraps adds a Map of the names and Tap pairs. |
static FlowDef |
flowDef()
Creates a new instance of a FlowDef. |
AssertionLevel |
getAssertionLevel()
|
Map<String,Tap> |
getCheckpoints()
Method getCheckpoints returns the checkpoint taps of this FlowDef object. |
Map<String,Tap> |
getCheckpointsCopy()
Method getCheckpointsCopy returns a copy of the checkpoint tap Map. |
DebugLevel |
getDebugLevel()
|
String |
getRunID()
|
Map<String,Tap> |
getSinks()
Method getSinks returns the sinks of this FlowDef object. |
Map<String,Tap> |
getSinksCopy()
Method getSinksCopy returns a copy of the sink Map. |
Map<String,Tap> |
getSources()
Method getSources returns the sources of this FlowDef object. |
Map<String,Tap> |
getSourcesCopy()
Method getSourcesCopy returns a copy of the sources Map. |
List<Pipe> |
getTails()
Method getTails returns all the current pipe assembly tails the FlowDef holds. |
Pipe[] |
getTailsArray()
Method getTailsArray returns all the current pipe assembly tails the FlowDef holds. |
Map<String,Tap> |
getTraps()
Method getTraps returns the traps of this FlowDef object. |
Map<String,Tap> |
getTrapsCopy()
Method getTrapsCopy returns a copy of the trap Map. |
FlowDef |
setAssertionLevel(AssertionLevel assertionLevel)
|
FlowDef |
setDebugLevel(DebugLevel debugLevel)
|
FlowDef |
setRunID(String runID)
Method setRunID sets the checkpoint run or execution ID to be used to find prior failed runs against this runID. |
| Methods inherited from class cascading.property.UnitOfWorkDef |
|---|
addTag, addTags, getName, getTags, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,Tap> sources
protected Map<String,Tap> sinks
protected Map<String,Tap> traps
protected Map<String,Tap> checkpoints
protected List<Pipe> tails
protected AssertionLevel assertionLevel
protected DebugLevel debugLevel
protected String runID
| Constructor Detail |
|---|
public FlowDef()
| Method Detail |
|---|
public static FlowDef flowDef()
public Map<String,Tap> getSources()
public Map<String,Tap> getSourcesCopy()
public FlowDef addSource(String name,
Tap source)
Tap for use in the resulting Flow.
name - of Stringsource - of Tap
public FlowDef addSource(Pipe pipe,
Tap source)
Tap named after the given Pipe for use in the resulting Flow.
If the given pipe is not a head pipe, it will be resolved. If more than one is found, an
IllegalArgumentException will be thrown.
pipe - of Pipesource - of Tap
public FlowDef addSources(Map<String,Tap> sources)
Tap pairs.
sources - of Mappublic Map<String,Tap> getSinks()
public Map<String,Tap> getSinksCopy()
public FlowDef addSink(String name,
Tap sink)
Tap for use in the resulting Flow.
name - of Stringsink - of Tap
public FlowDef addSink(Pipe tail,
Tap sink)
Tap named after the given Pipe for use in the resulting Flow.
tail - of Pipesink - of Tap
public FlowDef addTailSink(Pipe tail,
Tap sink)
Pipe and sink Tap to this FlowDef.
This is a convenience method for adding both a tail and sink simultaneously. There isn't a similar method
for heads and sources as the head Pipe can always be derived.
tail - of Pipesink - of Tap
public FlowDef addSinks(Map<String,Tap> sinks)
Tap pairs.
sinks - of Mappublic Map<String,Tap> getTraps()
public Map<String,Tap> getTrapsCopy()
public FlowDef addTrap(String name,
Tap trap)
Tap for use in the resulting Flow.
name - of Stringtrap - of Tap
public FlowDef addTrap(Pipe pipe,
Tap trap)
Tap named after the given Pipe for use in the resulting Flow.
pipe - of Pipetrap - of Tap
public FlowDef addTraps(Map<String,Tap> traps)
Tap pairs.
traps - of Mappublic Map<String,Tap> getCheckpoints()
public Map<String,Tap> getCheckpointsCopy()
public FlowDef addCheckpoint(String name,
Tap checkpoint)
Tap for use in the resulting Flow.
name - of Stringcheckpoint - of Tap
public FlowDef addCheckpoint(Checkpoint pipe,
Tap checkpoint)
Tap named after the given Checkpoint for use in the resulting Flow.
pipe - of Pipecheckpoint - of Tap
public FlowDef addCheckpoints(Map<String,Tap> checkpoints)
Tap pairs.
checkpoints - of Mappublic List<Pipe> getTails()
public Pipe[] getTailsArray()
public FlowDef addTail(Pipe tail)
Pipe to this FlowDef that represents a tail in a pipe assembly.
Be sure to add a sink tap that has the same name as this tail.
tail - of Pipe
public FlowDef addTails(Collection<Pipe> tails)
tails - of Collectionpublic FlowDef addTails(Pipe... tails)
tails - of Pipe...
public FlowDef setAssertionLevel(AssertionLevel assertionLevel)
public AssertionLevel getAssertionLevel()
public FlowDef setDebugLevel(DebugLevel debugLevel)
public DebugLevel getDebugLevel()
public FlowDef setRunID(String runID)
Flow fails to execute, a subsequent attempt to run the same Flow with the same
runID will allow the Flow instance to start where it left off.
Not all planners support this feature.
A Flow name is required when using a runID.
runID -
public String getRunID()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||