public class LaunchableMesosWorker extends Object implements LaunchableTask
Translates the abstract ContainerSpecification
into a concrete Mesos-specific Protos.TaskInfo
.
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Modifier and Type | Method and Description |
---|---|
org.apache.mesos.Protos.TaskInfo |
launch(org.apache.mesos.Protos.SlaveID slaveId,
MesosResourceAllocation allocation)
Construct the TaskInfo needed to launch the worker.
|
org.apache.mesos.Protos.TaskID |
taskID() |
com.netflix.fenzo.TaskRequest |
taskRequest()
Get a representation of the task requirements as understood by Fenzo.
|
String |
toString() |
public org.apache.mesos.Protos.TaskID taskID()
public com.netflix.fenzo.TaskRequest taskRequest()
LaunchableTask
taskRequest
in interface LaunchableTask
public org.apache.mesos.Protos.TaskInfo launch(org.apache.mesos.Protos.SlaveID slaveId, MesosResourceAllocation allocation)
launch
in interface LaunchableTask
slaveId
- the assigned slave.allocation
- the resource allocation (available resources).Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.