@Component public class ClassicStreamCommands extends AbstractStreamCommands implements org.springframework.shell.core.CommandMarker
dataFlowShell, PROPERTIES_FILE_OPTION, PROPERTIES_OPTION, userInput
Constructor and Description |
---|
ClassicStreamCommands() |
Modifier and Type | Method and Description |
---|---|
boolean |
availableWithCreateRole() |
String |
deployStream(String name,
String deploymentProperties,
File propertiesFile) |
void |
setDataFlowShell(DataFlowShell dataFlowShell) |
void |
setUserInput(UserInput userInput) |
availableWithViewRole, createStream, destroyAllStreams, destroyStream, getDeploymentProperties, listStreams, streamInfo, streamOperations, undeployAllStreams, undeployStream
@Autowired public void setDataFlowShell(DataFlowShell dataFlowShell)
@Autowired public void setUserInput(UserInput userInput)
@CliAvailabilityIndicator(value="stream deploy") public boolean availableWithCreateRole()
availableWithCreateRole
in class AbstractStreamCommands
@CliCommand(value="stream deploy", help="Deploy a previously created stream") public String deployStream(@CliOption(key={"","name"},help="the name of the stream to deploy",mandatory=true,optionContext="existing-stream disable-string-converter") String name, @CliOption(key="properties",help="the properties for this deployment") String deploymentProperties, @CliOption(key="propertiesFile",help="the properties for this deployment (as a File)") File propertiesFile) throws IOException
IOException
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.