public class ArchivedExecutionGraph extends Object implements AccessExecutionGraph, Serializable
ExecutionGraph.| 构造器和说明 |
|---|
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,
org.apache.flink.util.TernaryBoolean stateChangelogEnabled,
String changelogStorageName) |
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
Optional<String> |
getChangelogStorageName()
Returns the changelog storage name for this ExecutionGraph.
|
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.
|
org.apache.flink.util.TernaryBoolean |
isChangelogStateBackendEnabled()
Returns whether the state changelog is enabled for this ExecutionGraph.
|
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,
@Nullable
org.apache.flink.util.TernaryBoolean stateChangelogEnabled,
@Nullable
String changelogStorageName)
public String getJsonPlan()
AccessExecutionGraphgetJsonPlan 在接口中 AccessExecutionGraphpublic org.apache.flink.api.common.JobID getJobID()
AccessExecutionGraphJobID for this execution graph.getJobID 在接口中 AccessExecutionGraphpublic String getJobName()
AccessExecutionGraphgetJobName 在接口中 AccessExecutionGraphpublic org.apache.flink.api.common.JobStatus getState()
AccessExecutionGraphJobStatus for this execution graph.getState 在接口中 AccessExecutionGraphgetState 在接口中 JobStatusProvider@Nullable public ErrorInfo getFailureInfo()
AccessExecutionGraphgetFailureInfo 在接口中 AccessExecutionGraphpublic ArchivedExecutionJobVertex getJobVertex(JobVertexID id)
AccessExecutionGraphJobVertexID.getJobVertex 在接口中 AccessExecutionGraphid - id of job vertex to be returnednullpublic Map<JobVertexID,AccessExecutionJobVertex> getAllVertices()
AccessExecutionGraphgetAllVertices 在接口中 AccessExecutionGraphpublic Iterable<ArchivedExecutionJobVertex> getVerticesTopologically()
AccessExecutionGraphgetVerticesTopologically 在接口中 AccessExecutionGraphpublic Iterable<ArchivedExecutionVertex> getAllExecutionVertices()
AccessExecutionGraphgetAllExecutionVertices 在接口中 AccessExecutionGraphpublic long getStatusTimestamp(org.apache.flink.api.common.JobStatus status)
AccessExecutionGraphJobStatus.getStatusTimestamp 在接口中 AccessExecutionGraphgetStatusTimestamp 在接口中 JobStatusProviderstatus - status for which the timestamp should be returnedpublic CheckpointCoordinatorConfiguration getCheckpointCoordinatorConfiguration()
AccessExecutionGraphCheckpointCoordinatorConfiguration or null if checkpointing
is disabled.getCheckpointCoordinatorConfiguration 在接口中 AccessExecutionGraphpublic CheckpointStatsSnapshot getCheckpointStatsSnapshot()
AccessExecutionGraphnull if checkpointing is
disabled.getCheckpointStatsSnapshot 在接口中 AccessExecutionGraphpublic org.apache.flink.api.common.ArchivedExecutionConfig getArchivedExecutionConfig()
AccessExecutionGraphArchivedExecutionConfig for this execution graph.getArchivedExecutionConfig 在接口中 AccessExecutionGraphpublic boolean isStoppable()
AccessExecutionGraphisStoppable 在接口中 AccessExecutionGraphpublic StringifiedAccumulatorResult[] getAccumulatorResultsStringified()
AccessExecutionGraphgetAccumulatorResultsStringified 在接口中 AccessExecutionGraphpublic Map<String,org.apache.flink.util.SerializedValue<org.apache.flink.util.OptionalFailure<Object>>> getAccumulatorsSerialized()
AccessExecutionGraphgetAccumulatorsSerialized 在接口中 AccessExecutionGraphpublic Optional<String> getStateBackendName()
AccessExecutionGraphgetStateBackendName 在接口中 AccessExecutionGraphpublic Optional<String> getCheckpointStorageName()
AccessExecutionGraphgetCheckpointStorageName 在接口中 AccessExecutionGraphpublic org.apache.flink.util.TernaryBoolean isChangelogStateBackendEnabled()
AccessExecutionGraphisChangelogStateBackendEnabled 在接口中 AccessExecutionGraphpublic Optional<String> getChangelogStorageName()
AccessExecutionGraphgetChangelogStorageName 在接口中 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.