public class ArchivedExecutionGraph extends Object implements AccessExecutionGraph, Serializable
ExecutionGraph.| Constructor and Description |
|---|
ArchivedExecutionGraph(org.apache.flink.api.common.JobID jobID,
String jobName,
Map<JobVertexID,ArchivedExecutionJobVertex> tasks,
List<ArchivedExecutionJobVertex> verticesInCreationOrder,
long[] stateTimestamps,
org.apache.flink.api.common.JobStatus state,
ErrorInfo failureCause,
String jsonPlan,
StringifiedAccumulatorResult[] archivedUserAccumulators,
Map<String,org.apache.flink.util.SerializedValue<org.apache.flink.util.OptionalFailure<Object>>> serializedUserAccumulators,
org.apache.flink.api.common.ArchivedExecutionConfig executionConfig,
boolean isStoppable,
CheckpointCoordinatorConfiguration jobCheckpointingConfiguration,
CheckpointStatsSnapshot checkpointStatsSnapshot,
String stateBackendName,
String checkpointStorageName) |
| Modifier and Type | Method and Description |
|---|---|
static ArchivedExecutionGraph |
createFrom(ExecutionGraph executionGraph)
Create a
ArchivedExecutionGraph from the given ExecutionGraph. |
static ArchivedExecutionGraph |
createFrom(ExecutionGraph executionGraph,
org.apache.flink.api.common.JobStatus statusOverride)
Create a
ArchivedExecutionGraph from the given ExecutionGraph. |
static ArchivedExecutionGraph |
createSparseArchivedExecutionGraph(org.apache.flink.api.common.JobID jobId,
String jobName,
org.apache.flink.api.common.JobStatus jobStatus,
Throwable throwable,
JobCheckpointingSettings checkpointingSettings,
long initializationTimestamp)
Create a sparse ArchivedExecutionGraph for a job.
|
StringifiedAccumulatorResult[] |
getAccumulatorResultsStringified()
Returns the aggregated user-defined accumulators as strings.
|
Map<String,org.apache.flink.util.SerializedValue<org.apache.flink.util.OptionalFailure<Object>>> |
getAccumulatorsSerialized()
Returns a map containing the serialized values of user-defined accumulators.
|
Iterable<ArchivedExecutionVertex> |
getAllExecutionVertices()
Returns an iterable containing all execution vertices for this execution graph.
|
Map<JobVertexID,AccessExecutionJobVertex> |
getAllVertices()
Returns a map containing all job vertices for this execution graph.
|
org.apache.flink.api.common.ArchivedExecutionConfig |
getArchivedExecutionConfig()
Returns the
ArchivedExecutionConfig for this execution graph. |
CheckpointCoordinatorConfiguration |
getCheckpointCoordinatorConfiguration()
Returns the
CheckpointCoordinatorConfiguration or null if checkpointing
is disabled. |
CheckpointStatsSnapshot |
getCheckpointStatsSnapshot()
Returns a snapshot of the checkpoint statistics or
null if checkpointing is
disabled. |
Optional<String> |
getCheckpointStorageName()
Returns the checkpoint storage name for this ExecutionGraph.
|
ErrorInfo |
getFailureInfo()
Returns the exception that caused the job to fail.
|
org.apache.flink.api.common.JobID |
getJobID()
Returns the
JobID for this execution graph. |
String |
getJobName()
Returns the job name for the execution graph.
|
ArchivedExecutionJobVertex |
getJobVertex(JobVertexID id)
Returns the job vertex for the given
JobVertexID. |
String |
getJsonPlan()
Returns the job plan as a JSON string.
|
org.apache.flink.api.common.JobStatus |
getState()
Returns the current
JobStatus for this execution graph. |
Optional<String> |
getStateBackendName()
Returns the state backend name for this ExecutionGraph.
|
long |
getStatusTimestamp(org.apache.flink.api.common.JobStatus status)
Returns the timestamp for the given
JobStatus. |
Iterable<ArchivedExecutionJobVertex> |
getVerticesTopologically()
Returns an iterable containing all job vertices for this execution graph in the order they
were created.
|
boolean |
isStoppable()
Returns whether the job for this execution graph is stoppable.
|
public ArchivedExecutionGraph(org.apache.flink.api.common.JobID jobID,
String jobName,
Map<JobVertexID,ArchivedExecutionJobVertex> tasks,
List<ArchivedExecutionJobVertex> verticesInCreationOrder,
long[] stateTimestamps,
org.apache.flink.api.common.JobStatus state,
@Nullable
ErrorInfo failureCause,
String jsonPlan,
StringifiedAccumulatorResult[] archivedUserAccumulators,
Map<String,org.apache.flink.util.SerializedValue<org.apache.flink.util.OptionalFailure<Object>>> serializedUserAccumulators,
org.apache.flink.api.common.ArchivedExecutionConfig executionConfig,
boolean isStoppable,
@Nullable
CheckpointCoordinatorConfiguration jobCheckpointingConfiguration,
@Nullable
CheckpointStatsSnapshot checkpointStatsSnapshot,
@Nullable
String stateBackendName,
@Nullable
String checkpointStorageName)
public String getJsonPlan()
AccessExecutionGraphgetJsonPlan in interface AccessExecutionGraphpublic org.apache.flink.api.common.JobID getJobID()
AccessExecutionGraphJobID for this execution graph.getJobID in interface AccessExecutionGraphpublic String getJobName()
AccessExecutionGraphgetJobName in interface AccessExecutionGraphpublic org.apache.flink.api.common.JobStatus getState()
AccessExecutionGraphJobStatus for this execution graph.getState in interface AccessExecutionGraphgetState in interface JobStatusProvider@Nullable public ErrorInfo getFailureInfo()
AccessExecutionGraphgetFailureInfo in interface AccessExecutionGraphpublic ArchivedExecutionJobVertex getJobVertex(JobVertexID id)
AccessExecutionGraphJobVertexID.getJobVertex in interface AccessExecutionGraphid - id of job vertex to be returnednullpublic Map<JobVertexID,AccessExecutionJobVertex> getAllVertices()
AccessExecutionGraphgetAllVertices in interface AccessExecutionGraphpublic Iterable<ArchivedExecutionJobVertex> getVerticesTopologically()
AccessExecutionGraphgetVerticesTopologically in interface AccessExecutionGraphpublic Iterable<ArchivedExecutionVertex> getAllExecutionVertices()
AccessExecutionGraphgetAllExecutionVertices in interface AccessExecutionGraphpublic long getStatusTimestamp(org.apache.flink.api.common.JobStatus status)
AccessExecutionGraphJobStatus.getStatusTimestamp in interface AccessExecutionGraphgetStatusTimestamp in interface JobStatusProviderstatus - status for which the timestamp should be returnedpublic CheckpointCoordinatorConfiguration getCheckpointCoordinatorConfiguration()
AccessExecutionGraphCheckpointCoordinatorConfiguration or null if checkpointing
is disabled.getCheckpointCoordinatorConfiguration in interface AccessExecutionGraphpublic CheckpointStatsSnapshot getCheckpointStatsSnapshot()
AccessExecutionGraphnull if checkpointing is
disabled.getCheckpointStatsSnapshot in interface AccessExecutionGraphpublic org.apache.flink.api.common.ArchivedExecutionConfig getArchivedExecutionConfig()
AccessExecutionGraphArchivedExecutionConfig for this execution graph.getArchivedExecutionConfig in interface AccessExecutionGraphpublic boolean isStoppable()
AccessExecutionGraphisStoppable in interface AccessExecutionGraphpublic StringifiedAccumulatorResult[] getAccumulatorResultsStringified()
AccessExecutionGraphgetAccumulatorResultsStringified in interface AccessExecutionGraphpublic Map<String,org.apache.flink.util.SerializedValue<org.apache.flink.util.OptionalFailure<Object>>> getAccumulatorsSerialized()
AccessExecutionGraphgetAccumulatorsSerialized in interface AccessExecutionGraphpublic Optional<String> getStateBackendName()
AccessExecutionGraphgetStateBackendName in interface AccessExecutionGraphpublic Optional<String> getCheckpointStorageName()
AccessExecutionGraphgetCheckpointStorageName in interface AccessExecutionGraphpublic static ArchivedExecutionGraph createFrom(ExecutionGraph executionGraph)
ArchivedExecutionGraph from the given ExecutionGraph.executionGraph - to create the ArchivedExecutionGraph frompublic static ArchivedExecutionGraph createFrom(ExecutionGraph executionGraph, @Nullable org.apache.flink.api.common.JobStatus statusOverride)
ArchivedExecutionGraph from the given ExecutionGraph.executionGraph - to create the ArchivedExecutionGraph fromstatusOverride - optionally overrides the JobStatus of the ExecutionGraph with a
non-globally-terminal state and clears timestamps of globally-terminal statespublic static ArchivedExecutionGraph createSparseArchivedExecutionGraph(org.apache.flink.api.common.JobID jobId, String jobName, org.apache.flink.api.common.JobStatus jobStatus, @Nullable Throwable throwable, @Nullable JobCheckpointingSettings checkpointingSettings, long initializationTimestamp)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.