case LAUNCH_GROUP: { Protos.ExecutorInfo executor = operation.getLaunchGroup().getExecutor(); executorsById.put(executor.getExecutorId().getValue(), executor);
resourceSpecForRoleAndPrincipal.getPrincipal(), resourceSpecForRoleAndPrincipal.getPreReservedRole()), executorInfo.getResourcesList(), resourceNamespace); executorResourceMapper.getOrphanedResources()
/** * Gets the heap size. * * @return The size of the executor's JVM heap in Mb. */ public int getHeapMb() { return Integer.parseInt( getValue("JAVA_OPTS", info.getCommand().getEnvironment()) .replace("-Xmx", "") .replace("M", "")); }
.newBuilder() .setExecutorId(ExecutorID.newBuilder().setValue( "executor_" + taskId.getValue()))
String javaHome) { this.info = Protos.ExecutorInfo.newBuilder() .setFrameworkId(Protos.FrameworkID.newBuilder() .setValue(frameworkId))
.setExecutor( ExecutorInfo .newBuilder() .setExecutorId( ExecutorID.newBuilder().setValue(
.addExecutorIds(formatTaskToReoffer.getExecutor().getExecutorId()) .build(); recommendations = evaluator.evaluate(nodePodInstanceRequirement, Arrays.asList(offer));
.setState(Protos.TaskState.TASK_FAILED) .setSlaveId(info.getSlaveId()) .setExecutorId(info.getExecutor().getExecutorId()) .setTaskId(info.getTaskId()) .setMessage(String.format("Task not implemented: type = %s", cassandraTask.getType()))
final String executorLaunchCommand = getExecutorLaunchCommand(id, resourceRequestEvent.getMemorySize().get()); final ExecutorInfo executorInfo = ExecutorInfo.newBuilder() .setExecutorId(ExecutorID.newBuilder() .setValue(id)
Protos.CommandInfo cmd = executorInfo.getCommand(); Assert.assertEquals(4, cmd.getUrisList().size());
.map(e -> e.getExecutorId()) .collect(Collectors.toList()));
String executorIdString = executorInfo.getExecutorId().getValue(); Optional<Protos.ExecutorID> executorID = executorIdString.isEmpty() ? Optional.empty() : Optional.of(executorInfo.getExecutorId());
.setSlaveId(TestConstants.AGENT_ID) .build(), Protos.ExecutorInfo.newBuilder().setExecutorId( Protos.ExecutorID.newBuilder().setValue("executor")).build()); .setSlaveId(TestConstants.AGENT_ID) .build(), Protos.ExecutorInfo.newBuilder().setExecutorId( Protos.ExecutorID.newBuilder().setValue("executor")).build());
taskInfo.getTaskId(), taskInfo.getSlaveId(), taskInfo.getExecutor().getExecutorId(), ex.getMessage()); driver.abort();
.addExecutorIds(taskInfo.getExecutor().getExecutorId()) .build(); MesosResourcePool resources = new MesosResourcePool(offer, Optional.of(Constants.ANY_ROLE)); new ExecutorEvaluationStage(TestConstants.SERVICE_NAME, Optional.of(taskInfo.getExecutor().getExecutorId())); PodInfoBuilder podInfoBuilder = new PodInfoBuilder( taskInfo.getExecutor().getExecutorId(), launchExecutorId);
new ExecutorEvaluationStage(TestConstants.SERVICE_NAME, Optional.of(taskInfo.getExecutor().getExecutorId())); EvaluationOutcome outcome = executorEvaluationStage.evaluate(
ExecutorInfo.Builder executorInfoBuilder = ExecutorInfo.newBuilder();
LaunchedTask task = state.getLastLaunchedTask(taskName); expectedResourceIds.addAll(ResourceUtils.getResourceIds(task.getTask().getResourcesList())); expectedResourceIds.addAll(ResourceUtils.getResourceIds(task.getExecutor().getResourcesList()));
if (executor.getName().equals(podType)) { if (matchingExecutor != null) { throw new IllegalStateException(String.format( throw new IllegalStateException(String.format( "Expected at least one executor with pod type %s, got: %s", podType, executors.stream().map(e -> e.getName()).collect(Collectors.toList())));