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 |
| Constructor and Description |
|---|
LaunchableMesosWorker(MesosArtifactResolver resolver,
MesosTaskManagerParameters params,
org.apache.flink.runtime.clusterframework.ContainerSpecification containerSpec,
org.apache.mesos.Protos.TaskID taskID,
MesosConfiguration mesosConfiguration)
Construct a launchable Mesos worker.
|
| 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 LaunchableMesosWorker(MesosArtifactResolver resolver, MesosTaskManagerParameters params, org.apache.flink.runtime.clusterframework.ContainerSpecification containerSpec, org.apache.mesos.Protos.TaskID taskID, MesosConfiguration mesosConfiguration)
resolver - The resolver for retrieving artifacts (e.g. jars, configuration)params - the TM parameters such as memory, cpu to acquire.containerSpec - an abstract container specification for launch time.taskID - the taskID for this worker.public org.apache.mesos.Protos.TaskID taskID()
public com.netflix.fenzo.TaskRequest taskRequest()
LaunchableTasktaskRequest in interface LaunchableTaskpublic org.apache.mesos.Protos.TaskInfo launch(org.apache.mesos.Protos.SlaveID slaveId,
MesosResourceAllocation allocation)
launch in interface LaunchableTaskslaveId - the assigned slave.allocation - the resource allocation (available resources).Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.