|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mesos.MesosExecutorDriver
public class MesosExecutorDriver
Concrete implementation of an ExecutorDriver that connects an
Executor with a Mesos slave. The MesosExecutorDriver is
thread-safe.
The driver is responsible for invoking the Executor callbacks as it
communicates with the Mesos slave.
Note that blocking on the MesosExecutorDriver (e.g., via join()) doesn't affect the executor callbacks in anyway because
they are handled by a different thread.
See src/examples/java/TestExecutor.java for an example of using the
MesosExecutorDriver.
| Constructor Summary | |
|---|---|
MesosExecutorDriver(Executor executor)
Creates a new driver that uses the specified Executor. |
|
| Method Summary | |
|---|---|
org.apache.mesos.Protos.Status |
abort()
Aborts the driver so that no more callbacks can be made to the executor. |
protected void |
finalize()
|
protected void |
initialize()
|
org.apache.mesos.Protos.Status |
join()
Waits for the driver to be stopped or aborted, possibly _blocking_ the current thread indefinitely. |
org.apache.mesos.Protos.Status |
run()
Starts and immediately joins (i.e., blocks on) the driver. |
org.apache.mesos.Protos.Status |
sendFrameworkMessage(byte[] data)
Sends a message to the framework scheduler. |
org.apache.mesos.Protos.Status |
sendStatusUpdate(org.apache.mesos.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). |
org.apache.mesos.Protos.Status |
start()
See ExecutorDriver for descriptions of these. |
org.apache.mesos.Protos.Status |
stop()
Stops the executor driver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MesosExecutorDriver(Executor executor)
| Method Detail |
|---|
public org.apache.mesos.Protos.Status start()
start in interface ExecutorDriverpublic org.apache.mesos.Protos.Status stop()
ExecutorDriver
stop in interface ExecutorDriverpublic org.apache.mesos.Protos.Status abort()
ExecutorDriverExecutorDriver.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).
abort in interface ExecutorDriverpublic org.apache.mesos.Protos.Status join()
ExecutorDriver
join in interface ExecutorDriverpublic org.apache.mesos.Protos.Status run()
ExecutorDriver
run in interface ExecutorDriverpublic org.apache.mesos.Protos.Status sendStatusUpdate(org.apache.mesos.Protos.TaskStatus status)
ExecutorDriverScheduler.statusUpdate(org.apache.mesos.SchedulerDriver, org.apache.mesos.Protos.TaskStatus) for more
information about status update acknowledgements.
sendStatusUpdate in interface ExecutorDriverpublic org.apache.mesos.Protos.Status sendFrameworkMessage(byte[] data)
ExecutorDriver
sendFrameworkMessage in interface ExecutorDriverprotected void initialize()
protected void finalize()
finalize in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||