.setName("JVM_OPTS") .setValue(clusterProps.jmvOpts()))) .addUris(Protos.CommandInfo.URI.newBuilder() .setValue(clusterProps.ignitePackageUrl() != null ? clusterProps.ignitePackageUrl() : resourceProvider.igniteUrl()) .setExtract(true)) .addUris(Protos.CommandInfo.URI.newBuilder() .setValue(cfgUrl)); builder.addUris(Protos.CommandInfo.URI.newBuilder().setValue(url));
private Protos.CommandInfo buildCommand(final Protos.CommandInfo.URI uri, final String script, final ShardingContexts shardingContexts, final boolean isCommandExecutor) { Protos.CommandInfo.Builder result = Protos.CommandInfo.newBuilder().addUris(uri).setShell(true); if (isCommandExecutor) { CommandLine commandLine = CommandLine.parse(script); commandLine.addArgument(GsonFactory.getGson().toJson(shardingContexts), false); result.setValue(Joiner.on(" ").join(commandLine.getExecutable(), Joiner.on(" ").join(commandLine.getArguments()))); } else { result.setValue(script); } return result.build(); }
.setValue(String.format("cd %s && %s", directory, command)); if (uri != null) { commandInfo.addUris(CommandInfo.URI.newBuilder().setValue(uri));
.setEnvironment(envBuilder) .setValue(String.format("cd %s && %s", directory, command)) .addUris(CommandInfo.URI.newBuilder().setValue(uri)).build();
.setCommand(CommandInfo.newBuilder() .setValue(executorLaunchCommand) .addUris(URI.newBuilder().setValue(reefTarUri).build()) .build()) .build();
.addUris(URI.newBuilder().setValue(configUri)) .setValue(commandLineShim.getCommandLine(details.getId()))) .setContainer(ContainerInfo.newBuilder() } else { executorInfoBuilder.setCommand(CommandInfo.newBuilder() .addUris(URI.newBuilder().setValue((String) mesosStormConf.get(CONF_EXECUTOR_URI))) .addUris(URI.newBuilder().setValue(configUri)) .setValue(commandLineShim.getCommandLine(details.getId())));
commandBuilder.addUris( CommandInfo.URI.newBuilder().setValue( joinPaths(jenkinsMaster, SLAVE_JAR_URI_SUFFIX)).setExecutable(false).setExtract(false));
private void detectAndAddAdditionalURIs(Request request, CommandInfo.Builder commandBuilder) { if (request.request.slaveInfo.getAdditionalURIs() != null) { for (MesosSlaveInfo.URI uri : request.request.slaveInfo.getAdditionalURIs()) { commandBuilder.addUris( CommandInfo.URI.newBuilder().setValue( uri.getValue()).setExecutable(uri.isExecutable()).setExtract(uri.isExtract())); } } }