|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.hadoop.cascading.CascadingRunner
public class CascadingRunner
Simple runner for executing Cascades or Flows. By default, the runner waits for the jobs to finish and returns its status.
To make the runner execute at startup, use setRunAtStartup(boolean).
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
log
|
protected cascading.management.UnitOfWork<? extends cascading.stats.CascadingStats> |
uow
|
protected boolean |
waitToComplete
|
| Constructor Summary | |
|---|---|
CascadingRunner()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
cascading.stats.CascadingStats |
call()
|
void |
destroy()
|
protected cascading.stats.CascadingStats |
execute()
|
boolean |
isWaitForCompletion()
Indicates whether the 'runner' should wait for the UnitOfWork to complete (default). |
void |
setPostAction(java.util.Collection<java.util.concurrent.Callable<?>> actions)
Actions to be invoked after running the action. |
void |
setPreAction(java.util.Collection<java.util.concurrent.Callable<?>> actions)
Actions to be invoked before running the action. |
void |
setRunAtStartup(boolean runAtStartup)
Sets the run at startup. |
void |
setUnitOfWork(cascading.management.UnitOfWork<? extends cascading.stats.CascadingStats> uow)
Sets the unit of work. |
void |
setWaitForCompletion(boolean waitForCompletion)
Indicates whether the 'runner' should wait for the UnitOfWork to complete (default) after submission or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean waitToComplete
protected cascading.management.UnitOfWork<? extends cascading.stats.CascadingStats> uow
protected org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public CascadingRunner()
| Method Detail |
|---|
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception
public cascading.stats.CascadingStats call()
throws java.lang.Exception
call in interface java.util.concurrent.Callable<cascading.stats.CascadingStats>java.lang.Exceptionpublic void setRunAtStartup(boolean runAtStartup)
runAtStartup - The runAtStartup to set.public void setPreAction(java.util.Collection<java.util.concurrent.Callable<?>> actions)
actions - public void setPostAction(java.util.Collection<java.util.concurrent.Callable<?>> actions)
actions - protected cascading.stats.CascadingStats execute()
public void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanpublic void setUnitOfWork(cascading.management.UnitOfWork<? extends cascading.stats.CascadingStats> uow)
Flow or Cascade.
uow - the new unit of work.public boolean isWaitForCompletion()
public void setWaitForCompletion(boolean waitForCompletion)
waitForCompletion - whether to wait for the unit to complete or not.
|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||