public class LocalBackend extends Object implements SchedulerBackend, org.apache.spark.executor.ExecutorBackend
Constructor and Description |
---|
LocalBackend(TaskSchedulerImpl scheduler,
int totalCores) |
Modifier and Type | Method and Description |
---|---|
String |
applicationId()
Get an application ID associated with the job.
|
int |
defaultParallelism() |
void |
killTask(long taskId,
String executorId,
boolean interruptThread) |
akka.actor.ActorRef |
localActor() |
void |
reviveOffers() |
void |
start() |
void |
statusUpdate(long taskId,
scala.Enumeration.Value state,
java.nio.ByteBuffer serializedData) |
void |
stop() |
int |
totalCores() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isReady
public LocalBackend(TaskSchedulerImpl scheduler, int totalCores)
public int totalCores()
public akka.actor.ActorRef localActor()
public void start()
start
in interface SchedulerBackend
public void stop()
stop
in interface SchedulerBackend
public void reviveOffers()
reviveOffers
in interface SchedulerBackend
public int defaultParallelism()
defaultParallelism
in interface SchedulerBackend
public void killTask(long taskId, String executorId, boolean interruptThread)
killTask
in interface SchedulerBackend
public void statusUpdate(long taskId, scala.Enumeration.Value state, java.nio.ByteBuffer serializedData)
statusUpdate
in interface org.apache.spark.executor.ExecutorBackend
public String applicationId()
SchedulerBackend
applicationId
in interface SchedulerBackend