@InterfaceAudience.Private public interface JobHandle<T extends Serializable> extends Future<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
JobHandle.Listener<T extends Serializable>
A listener for monitoring the state of the job in the remote context.
|
static class |
JobHandle.State
The current state of the submitted job.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(JobHandle.Listener<T> l)
Add a listener to the job handle.
|
String |
getClientJobId()
The client job ID.
|
MetricsCollection |
getMetrics()
A collection of metrics collected from the Spark jobs triggered by this job.
|
SparkCounters |
getSparkCounters()
Get the SparkCounters for this job.
|
List<Integer> |
getSparkJobIds()
Get corresponding spark job IDs for this job.
|
JobHandle.State |
getState()
Return the current state of the job.
|
String getClientJobId()
MetricsCollection getMetrics()
SparkCounters getSparkCounters()
JobHandle.State getState()
void addListener(JobHandle.Listener<T> l)
l
- The listener to add.Copyright © 2017 The Apache Software Foundation. All rights reserved.