Interface LifeCycleInstance
-
public interface LifeCycleInstance
LifeCycle- Version:
- $Id: $
- Author:
- brozow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LifeCycleInstance
createNestedLifeCycle(BatchTask currentPhase, java.lang.String lifeCycleName)
createNestedLifeCycle<T> T
findAttributeByType(java.lang.Class<T> clazz)
findAttributeByTypejava.lang.Object
getAttribute(java.lang.String key)
getAttribute<T> T
getAttribute(java.lang.String key, java.lang.Class<T> type)
getAttribute<T> T
getAttribute(java.lang.String key, T defaultValue)
getAttributeTaskCoordinator
getCoordinator()
getCoordinatorjava.lang.String
getName()
getNamejava.util.List<java.lang.String>
getPhaseNames()
getPhaseNamesLifeCycleInstance
setAttribute(java.lang.String key, java.lang.Object value)
setAttributevoid
trigger()
triggervoid
waitFor()
waitFor
-
-
-
Method Detail
-
getPhaseNames
java.util.List<java.lang.String> getPhaseNames()
getPhaseNames
- Returns:
- a
List
object.
-
getName
java.lang.String getName()
getName
- Returns:
- a
String
object.
-
setAttribute
LifeCycleInstance setAttribute(java.lang.String key, java.lang.Object value)
setAttribute
- Parameters:
key
- aString
object.value
- aObject
object.- Returns:
- a
LifeCycleInstance
object.
-
getAttribute
java.lang.Object getAttribute(java.lang.String key)
getAttribute
- Parameters:
key
- aString
object.- Returns:
- a
Object
object.
-
findAttributeByType
<T> T findAttributeByType(java.lang.Class<T> clazz)
findAttributeByType
- Type Parameters:
T
- a T object.- Parameters:
clazz
- aClass
object.- Returns:
- a T object.
-
getAttribute
<T> T getAttribute(java.lang.String key, java.lang.Class<T> type)
getAttribute
- Type Parameters:
T
- a T object.- Parameters:
key
- aString
object.type
- aClass
object.- Returns:
- a T object.
-
getAttribute
<T> T getAttribute(java.lang.String key, T defaultValue)
getAttribute
- Type Parameters:
T
- a T object.- Parameters:
key
- aString
object.defaultValue
- a T object.- Returns:
- a T object.
-
createNestedLifeCycle
LifeCycleInstance createNestedLifeCycle(BatchTask currentPhase, java.lang.String lifeCycleName)
createNestedLifeCycle
- Parameters:
currentPhase
- aBatchTask
object.lifeCycleName
- aString
object.- Returns:
- a
LifeCycleInstance
object.
-
trigger
void trigger()
trigger
-
waitFor
void waitFor() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
waitFor
- Throws:
java.lang.InterruptedException
- if any.java.util.concurrent.ExecutionException
- if any.
-
getCoordinator
TaskCoordinator getCoordinator()
getCoordinator
- Returns:
- a
TaskCoordinator
object.
-
-