public class SparkDeploySchedulerBackend extends CoarseGrainedSchedulerBackend implements org.apache.spark.deploy.client.AppClientListener, Logging
CoarseGrainedSchedulerBackend.DriverActor| Constructor and Description |
|---|
SparkDeploySchedulerBackend(TaskSchedulerImpl scheduler,
SparkContext sc,
String[] masters) |
| Modifier and Type | Method and Description |
|---|---|
String |
appId() |
String |
applicationId()
Get an application ID associated with the job.
|
org.apache.spark.deploy.client.AppClient |
client() |
void |
connected(String appId) |
void |
dead(String reason) |
void |
disconnected() |
void |
executorAdded(String fullId,
String workerId,
String hostPort,
int cores,
int memory) |
void |
executorRemoved(String fullId,
String message,
scala.Option<Object> exitStatus) |
scala.Option<Object> |
maxCores() |
boolean |
registrationDone() |
Object |
registrationLock() |
scala.Function1<SparkDeploySchedulerBackend,scala.runtime.BoxedUnit> |
shutdownCallback() |
void |
start() |
void |
stop() |
boolean |
stopping() |
boolean |
sufficientResourcesRegistered() |
int |
totalExpectedCores() |
ACTOR_NAME, actorSystem, conf, createTime, defaultParallelism, driverActor, isReady, killExecutors, killTask, maxRegisteredWaitingTime, minRegisteredRatio, numExistingExecutors, removeExecutor, requestExecutors, requestTotalExecutors, reviveOffers, stopExecutors, taskIdsOnSlave, totalCoreCount, totalRegisteredExecutorsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningkillExecutorpublic SparkDeploySchedulerBackend(TaskSchedulerImpl scheduler, SparkContext sc, String[] masters)
public org.apache.spark.deploy.client.AppClient client()
public boolean stopping()
public scala.Function1<SparkDeploySchedulerBackend,scala.runtime.BoxedUnit> shutdownCallback()
public String appId()
appId in interface SchedulerBackendpublic Object registrationLock()
public boolean registrationDone()
public scala.Option<Object> maxCores()
public int totalExpectedCores()
public void start()
start in interface SchedulerBackendstart in class CoarseGrainedSchedulerBackendpublic void stop()
stop in interface SchedulerBackendstop in class CoarseGrainedSchedulerBackendpublic void connected(String appId)
connected in interface org.apache.spark.deploy.client.AppClientListenerpublic void disconnected()
disconnected in interface org.apache.spark.deploy.client.AppClientListenerpublic void dead(String reason)
dead in interface org.apache.spark.deploy.client.AppClientListenerpublic void executorAdded(String fullId,
String workerId,
String hostPort,
int cores,
int memory)
executorAdded in interface org.apache.spark.deploy.client.AppClientListenerpublic void executorRemoved(String fullId,
String message,
scala.Option<Object> exitStatus)
executorRemoved in interface org.apache.spark.deploy.client.AppClientListenerpublic boolean sufficientResourcesRegistered()
sufficientResourcesRegistered in class CoarseGrainedSchedulerBackendpublic String applicationId()
SchedulerBackendapplicationId in interface SchedulerBackend