public interface ExecutorDriver
Modifier and Type | Method and Description |
---|---|
Protos.Status |
abort()
Aborts the driver so that no more callbacks can be made to the
executor.
|
Protos.Status |
join()
Waits for the driver to be stopped or aborted, possibly
_blocking_ the current thread indefinitely.
|
Protos.Status |
run()
Starts and immediately joins (i.e., blocks on) the driver.
|
Protos.Status |
sendFrameworkMessage(byte[] data)
Sends a message to the framework scheduler.
|
Protos.Status |
sendStatusUpdate(Protos.TaskStatus status)
Sends a status update to the framework scheduler, retrying as
necessary until an acknowledgement has been received or the
executor is terminated (in which case, a TASK_LOST status update
will be sent).
|
Protos.Status |
start()
Starts the executor driver.
|
Protos.Status |
stop()
Stops the executor driver.
|
Protos.Status start()
Protos.Status
Protos.Status stop()
Protos.Status
Protos.Status abort()
join()
, see below),
and instantiate and start another driver if desired (from within
the same process ... although this functionality is currently not
supported for executors).Protos.Status
Protos.Status join()
Protos.Status
Protos.Status run()
Protos.Status
Protos.Status sendStatusUpdate(Protos.TaskStatus status)
Scheduler.statusUpdate(org.apache.mesos.SchedulerDriver, org.apache.mesos.Protos.TaskStatus)
for more
information about status update acknowledgements.status
- The status update to send.Protos.Status
Protos.Status sendFrameworkMessage(byte[] data)
data
- The message payload.Protos.Status