Interface LifeCycleInstance
-
public interface LifeCycleInstanceLifeCycle- Version:
- $Id: $
- Author:
- brozow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LifeCycleInstancecreateNestedLifeCycle(BatchTask currentPhase, String lifeCycleName)createNestedLifeCycle<T> TfindAttributeByType(Class<T> clazz)findAttributeByTypeObjectgetAttribute(String key)getAttribute<T> TgetAttribute(String key, Class<T> type)getAttribute<T> TgetAttribute(String key, T defaultValue)getAttributeTaskCoordinatorgetCoordinator()getCoordinatorStringgetName()getNameList<String>getPhaseNames()getPhaseNamesLifeCycleInstancesetAttribute(String key, Object value)setAttributevoidtrigger()triggervoidwaitFor()waitFor
-
-
-
Method Detail
-
setAttribute
LifeCycleInstance setAttribute(String key, Object value)
setAttribute
- Parameters:
key- aStringobject.value- aObjectobject.- Returns:
- a
LifeCycleInstanceobject.
-
findAttributeByType
<T> T findAttributeByType(Class<T> clazz)
findAttributeByType
- Type Parameters:
T- a T object.- Parameters:
clazz- aClassobject.- Returns:
- a T object.
-
getAttribute
<T> T getAttribute(String key, T defaultValue)
getAttribute
- Type Parameters:
T- a T object.- Parameters:
key- aStringobject.defaultValue- a T object.- Returns:
- a T object.
-
createNestedLifeCycle
LifeCycleInstance createNestedLifeCycle(BatchTask currentPhase, String lifeCycleName)
createNestedLifeCycle
- Parameters:
currentPhase- aBatchTaskobject.lifeCycleName- aStringobject.- Returns:
- a
LifeCycleInstanceobject.
-
trigger
void trigger()
trigger
-
waitFor
void waitFor() throws InterruptedException, ExecutionExceptionwaitFor
- Throws:
InterruptedException- if any.ExecutionException- if any.
-
getCoordinator
TaskCoordinator getCoordinator()
getCoordinator
- Returns:
- a
TaskCoordinatorobject.
-
-