@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:38.432Z") @Stability(value=Experimental) public abstract class TaskStateBase extends State implements INextable
Reaching a Task state causes some work to be executed, represented by the Task's resource property. Task constructs represent a generic Amazon States Language Task.
For some resource types, more specific subclasses of Task may be available which are more convenient to use.
software.amazon.jsii.JsiiObject.InitializationModeINextable.Jsii$DefaultIChainable.Jsii$Default| Modifier | Constructor and Description |
|---|---|
protected |
TaskStateBase(software.constructs.Construct scope,
String id,
TaskStateBaseProps props) |
protected |
TaskStateBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
TaskStateBase(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
TaskStateBase |
addCatch(IChainable handler)
(experimental) Add a recovery handler for this state.
|
TaskStateBase |
addCatch(IChainable handler,
CatchProps props)
(experimental) Add a recovery handler for this state.
|
TaskStateBase |
addRetry()
(experimental) Add retry configuration for this state.
|
TaskStateBase |
addRetry(RetryProps props)
(experimental) Add retry configuration for this state.
|
List<INextable> |
getEndStates()
(experimental) Continuable states of this Chainable.
|
protected abstract TaskMetricsConfig |
getTaskMetrics() |
protected abstract List<PolicyStatement> |
getTaskPolicies() |
Metric |
metric(String metricName)
(experimental) Return the given named metric for this Task.
|
Metric |
metric(String metricName,
MetricOptions props)
(experimental) Return the given named metric for this Task.
|
Metric |
metricFailed()
(experimental) Metric for the number of times this activity fails.
|
Metric |
metricFailed(MetricOptions props)
(experimental) Metric for the number of times this activity fails.
|
Metric |
metricHeartbeatTimedOut()
(experimental) Metric for the number of times the heartbeat times out for this activity.
|
Metric |
metricHeartbeatTimedOut(MetricOptions props)
(experimental) Metric for the number of times the heartbeat times out for this activity.
|
Metric |
metricRunTime()
(experimental) The interval, in milliseconds, between the time the Task starts and the time it closes.
|
Metric |
metricRunTime(MetricOptions props)
(experimental) The interval, in milliseconds, between the time the Task starts and the time it closes.
|
Metric |
metricScheduled()
(experimental) Metric for the number of times this activity is scheduled.
|
Metric |
metricScheduled(MetricOptions props)
(experimental) Metric for the number of times this activity is scheduled.
|
Metric |
metricScheduleTime()
(experimental) The interval, in milliseconds, for which the activity stays in the schedule state.
|
Metric |
metricScheduleTime(MetricOptions props)
(experimental) The interval, in milliseconds, for which the activity stays in the schedule state.
|
Metric |
metricStarted()
(experimental) Metric for the number of times this activity is started.
|
Metric |
metricStarted(MetricOptions props)
(experimental) Metric for the number of times this activity is started.
|
Metric |
metricSucceeded()
(experimental) Metric for the number of times this activity succeeds.
|
Metric |
metricSucceeded(MetricOptions props)
(experimental) Metric for the number of times this activity succeeds.
|
Metric |
metricTime()
(experimental) The interval, in milliseconds, between the time the activity is scheduled and the time it closes.
|
Metric |
metricTime(MetricOptions props)
(experimental) The interval, in milliseconds, between the time the activity is scheduled and the time it closes.
|
Metric |
metricTimedOut()
(experimental) Metric for the number of times this activity times out.
|
Metric |
metricTimedOut(MetricOptions props)
(experimental) Metric for the number of times this activity times out.
|
Chain |
next(IChainable next)
(experimental) Continue normal execution with the given state.
|
com.fasterxml.jackson.databind.node.ObjectNode |
toStateJson()
(experimental) Return the Amazon States Language object for this state.
|
protected void |
whenBoundToGraph(StateGraph graph)
(experimental) Called whenever this state is bound to a graph.
|
addBranch, addChoice, addIterator, addPrefix, bindToGraph, filterNextables, findReachableEndStates, findReachableEndStates, findReachableStates, findReachableStates, getBranches, getComment, getDefaultChoice, getId, getInputPath, getIteration, getOutputPath, getParameters, getResultPath, getResultSelector, getStartState, getStateId, makeDefault, makeNext, prefixStates, renderBranches, renderChoices, renderInputOutput, renderIterator, renderNextEnd, renderResultSelector, renderRetryCatch, setDefaultChoice, setIteration, validateStatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected TaskStateBase(software.amazon.jsii.JsiiObjectRef objRef)
protected TaskStateBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected TaskStateBase(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
TaskStateBaseProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public TaskStateBase addCatch(@NotNull IChainable handler, @Nullable CatchProps props)
When a particular error occurs, execution will continue at the error handler instead of failing the state machine execution.
handler - This parameter is required.props - @Stability(value=Experimental) @NotNull public TaskStateBase addCatch(@NotNull IChainable handler)
When a particular error occurs, execution will continue at the error handler instead of failing the state machine execution.
handler - This parameter is required.@Stability(value=Experimental) @NotNull public TaskStateBase addRetry(@Nullable RetryProps props)
This controls if and how the execution will be retried if a particular error occurs.
props - @Stability(value=Experimental) @NotNull public TaskStateBase addRetry()
This controls if and how the execution will be retried if a particular error occurs.
@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
Default: - sum over 5 minutes
metricName - This parameter is required.props - @Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName)
Default: - sum over 5 minutes
metricName - This parameter is required.@Stability(value=Experimental) @NotNull public Metric metricFailed(@Nullable MetricOptions props)
Default: - sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricFailed()
Default: - sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricHeartbeatTimedOut(@Nullable MetricOptions props)
Default: - sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricHeartbeatTimedOut()
Default: - sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricRunTime(@Nullable MetricOptions props)
Default: - average over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricRunTime()
Default: - average over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricScheduled(@Nullable MetricOptions props)
Default: - sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricScheduled()
Default: - sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricScheduleTime(@Nullable MetricOptions props)
Default: - average over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricScheduleTime()
Default: - average over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricStarted(@Nullable MetricOptions props)
Default: - sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricStarted()
Default: - sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricSucceeded(@Nullable MetricOptions props)
Default: - sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricSucceeded()
Default: - sum over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricTime(@Nullable MetricOptions props)
Default: - average over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricTime()
Default: - average over 5 minutes
@Stability(value=Experimental) @NotNull public Metric metricTimedOut(@Nullable MetricOptions props)
Default: - sum over 5 minutes
props - @Stability(value=Experimental) @NotNull public Metric metricTimedOut()
Default: - sum over 5 minutes
@Stability(value=Experimental) @NotNull public Chain next(@NotNull IChainable next)
@Stability(value=Experimental) @NotNull public com.fasterxml.jackson.databind.node.ObjectNode toStateJson()
toStateJson in class State@Stability(value=Experimental)
protected void whenBoundToGraph(@NotNull
StateGraph graph)
Can be overridden by subclasses.
whenBoundToGraph in class Stategraph - This parameter is required.@Stability(value=Experimental) @NotNull public List<INextable> getEndStates()
getEndStates in interface IChainablegetEndStates in class State@Stability(value=Experimental) @Nullable protected abstract TaskMetricsConfig getTaskMetrics()
@Stability(value=Experimental) @Nullable protected abstract List<PolicyStatement> getTaskPolicies()
Copyright © 2021. All rights reserved.