.setTaskId(TaskID.newBuilder().setValue(task.getTaskId()))
.setSlaveId(slaveId)
.addAllResources(resources)
.setData(ByteString.copyFrom(taskInBytes));
ExecutorInfo executor = ExecutorInfo.newBuilder()
.setCommand(CommandUtil.create(executorPath))
.setExecutorId(getExecutorId(task.getTaskId()))
.setName(EXECUTOR_NAME)
.setSource(getInstanceSourceName(config, task.getInstanceId()))
.addResources(Resources.makeMesosResource(Resources.CPUS, ResourceSlot.EXECUTOR_CPUS))