Class ExecutionStateSampler
- java.lang.Object
-
- org.apache.beam.fn.harness.control.ExecutionStateSampler
-
public class ExecutionStateSampler extends java.lang.ObjectMonitors the execution of one or more execution threads.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceExecutionStateSampler.ExecutionStateAnExecutionStateSampler.ExecutionStaterepresents the current state of an execution thread.classExecutionStateSampler.ExecutionStateTrackerTracks the current state of a single execution thread.static classExecutionStateSampler.ExecutionStateTrackerStatus
-
Constructor Summary
Constructors Constructor Description ExecutionStateSampler(org.apache.beam.sdk.options.PipelineOptions options, org.joda.time.DateTimeUtils.MillisProvider clock, @Nullable java.util.function.Consumer<java.lang.String> onTimeoutExceededCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionStateSampler.ExecutionStateTrackercreate()Returns a newExecutionStateSampler.ExecutionStateTrackerassociated with this state sampler.longgetUserSpecifiedLullTimeMsForRestart()booleangetUserSpecifiedTimeoutForRestart()voidstop()Stops the execution of the state sampler.
-
-
-
Method Detail
-
stop
public void stop()
Stops the execution of the state sampler.
-
getUserSpecifiedTimeoutForRestart
public boolean getUserSpecifiedTimeoutForRestart()
-
getUserSpecifiedLullTimeMsForRestart
public long getUserSpecifiedLullTimeMsForRestart()
-
create
public ExecutionStateSampler.ExecutionStateTracker create()
Returns a newExecutionStateSampler.ExecutionStateTrackerassociated with this state sampler.
-
-