public class ArchivedExecutionGraph extends Object implements AccessExecutionGraph, Serializable
| Constructor and Description |
|---|
ArchivedExecutionGraph(JobID jobID,
String jobName,
Map<JobVertexID,ArchivedExecutionJobVertex> tasks,
List<ArchivedExecutionJobVertex> verticesInCreationOrder,
long[] stateTimestamps,
JobStatus state,
String failureCause,
String jsonPlan,
StringifiedAccumulatorResult[] archivedUserAccumulators,
Map<String,SerializedValue<Object>> serializedUserAccumulators,
ArchivedExecutionConfig executionConfig,
boolean isStoppable,
JobCheckpointingSettings jobCheckpointingSettings,
CheckpointStatsSnapshot checkpointStatsSnapshot) |
| Modifier and Type | Method and Description |
|---|---|
StringifiedAccumulatorResult[] |
getAccumulatorResultsStringified()
Returns the aggregated user-defined accumulators as strings.
|
Map<String,SerializedValue<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.
|
ArchivedExecutionConfig |
getArchivedExecutionConfig()
Returns the
ArchivedExecutionConfig for this execution graph. |
CheckpointCoordinator |
getCheckpointCoordinator()
Returns the
CheckpointCoordinator for this execution graph. |
CheckpointStatsSnapshot |
getCheckpointStatsSnapshot()
Returns a snapshot of the checkpoint statistics or
null if
checkpointing is disabled. |
String |
getFailureCauseAsString()
Returns the exception that caused the job to fail.
|
JobCheckpointingSettings |
getJobCheckpointingSettings()
Returns the
JobCheckpointingSettings or null if
checkpointing is disabled. |
JobID |
getJobID()
Returns the
JobID for this execution graph. |
String |
getJobName()
Returns the job name for thie execution graph.
|
ArchivedExecutionJobVertex |
getJobVertex(JobVertexID id)
Returns the job vertex for the given
JobVertexID. |
String |
getJsonPlan()
Returns the job plan as a JSON string.
|
JobStatus |
getState()
Returns the current
JobStatus for this execution graph. |
long |
getStatusTimestamp(JobStatus status)
Returns the timestamp for the given
JobStatus |
StringifiedAccumulatorResult[] |
getUserAccumulators() |
Iterable<ArchivedExecutionJobVertex> |
getVerticesTopologically()
Returns an iterable containing all job vertices for this execution graph in the order they were created.
|
boolean |
isArchived()
Returns whether this execution graph was archived.
|
boolean |
isStoppable()
Returns whether the job for this execution graph is stoppable.
|
public ArchivedExecutionGraph(JobID jobID, String jobName, Map<JobVertexID,ArchivedExecutionJobVertex> tasks, List<ArchivedExecutionJobVertex> verticesInCreationOrder, long[] stateTimestamps, JobStatus state, String failureCause, String jsonPlan, StringifiedAccumulatorResult[] archivedUserAccumulators, Map<String,SerializedValue<Object>> serializedUserAccumulators, ArchivedExecutionConfig executionConfig, boolean isStoppable, @Nullable JobCheckpointingSettings jobCheckpointingSettings, @Nullable CheckpointStatsSnapshot checkpointStatsSnapshot)
public String getJsonPlan()
AccessExecutionGraphgetJsonPlan in interface AccessExecutionGraphpublic JobID getJobID()
AccessExecutionGraphJobID for this execution graph.getJobID in interface AccessExecutionGraphpublic String getJobName()
AccessExecutionGraphgetJobName in interface AccessExecutionGraphpublic JobStatus getState()
AccessExecutionGraphJobStatus for this execution graph.getState in interface AccessExecutionGraphpublic String getFailureCauseAsString()
AccessExecutionGraphgetFailureCauseAsString in interface AccessExecutionGraph"(null)"public ArchivedExecutionJobVertex getJobVertex(JobVertexID id)
AccessExecutionGraphJobVertexID.getJobVertex in interface AccessExecutionGraphid - id of job vertex to be returnedpublic Map<JobVertexID,AccessExecutionJobVertex> getAllVertices()
AccessExecutionGraphgetAllVertices in interface AccessExecutionGraphpublic Iterable<ArchivedExecutionJobVertex> getVerticesTopologically()
AccessExecutionGraphgetVerticesTopologically in interface AccessExecutionGraphpublic Iterable<ArchivedExecutionVertex> getAllExecutionVertices()
AccessExecutionGraphgetAllExecutionVertices in interface AccessExecutionGraphpublic long getStatusTimestamp(JobStatus status)
AccessExecutionGraphJobStatusgetStatusTimestamp in interface AccessExecutionGraphstatus - status for which the timestamp should be returnedpublic CheckpointCoordinator getCheckpointCoordinator()
AccessExecutionGraphCheckpointCoordinator for this execution graph.getCheckpointCoordinator in interface AccessExecutionGraphnull
if none is available.public JobCheckpointingSettings getJobCheckpointingSettings()
AccessExecutionGraphJobCheckpointingSettings or null if
checkpointing is disabled.getJobCheckpointingSettings in interface AccessExecutionGraphpublic CheckpointStatsSnapshot getCheckpointStatsSnapshot()
AccessExecutionGraphnull if
checkpointing is disabled.getCheckpointStatsSnapshot in interface AccessExecutionGraphpublic boolean isArchived()
AccessExecutionGraphisArchived in interface AccessExecutionGraphpublic StringifiedAccumulatorResult[] getUserAccumulators()
public 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,SerializedValue<Object>> getAccumulatorsSerialized()
AccessExecutionGraphgetAccumulatorsSerialized in interface AccessExecutionGraphCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.