@Component public class SkipperAppRegistryCommands extends AbstractAppRegistryCommands implements org.springframework.shell.core.CommandMarker, org.springframework.context.ResourceLoaderAware
AbstractAppRegistryCommands.QualifiedApplicationName
dataFlowShell, resourceLoader
Constructor and Description |
---|
SkipperAppRegistryCommands() |
Modifier and Type | Method and Description |
---|---|
boolean |
availableWithCreateRole() |
boolean |
availableWithViewRole() |
String |
defaultApplicaiton(AbstractAppRegistryCommands.QualifiedApplicationName application,
String version) |
List<Object> |
info(String name,
ApplicationType type,
String version,
boolean exhaustive) |
void |
setDataFlowShell(DataFlowShell dataFlowShell) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
String |
unregister(String name,
ApplicationType type,
String version) |
appRegistryOperations, importFromResource, list, prettyPrintDefaultValue, register
@Autowired public void setDataFlowShell(DataFlowShell dataFlowShell)
setDataFlowShell
in class AbstractAppRegistryCommands
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
setResourceLoader
in class AbstractAppRegistryCommands
@CliAvailabilityIndicator(value="app info") public boolean availableWithViewRole()
availableWithViewRole
in class AbstractAppRegistryCommands
@CliAvailabilityIndicator(value={"app unregister","app default"}) public boolean availableWithCreateRole()
availableWithCreateRole
in class AbstractAppRegistryCommands
@CliCommand(value="app info", help="Get information about an application") public List<Object> info(@CliOption(mandatory=true,key={"","name"},help="name of the application to query") String name, @CliOption(mandatory=true,key="type",help="type of the application to query") ApplicationType type, @CliOption(key="version",help="the version for the registered application") String version, @CliOption(key="exhaustive",help="return all metadata, including common Spring Boot properties",specifiedDefaultValue="true",unspecifiedDefaultValue="false") boolean exhaustive)
@CliCommand(value="app unregister", help="Unregister an application") public String unregister(@CliOption(mandatory=true,key={"","name"},help="name of the application to unregister") String name, @CliOption(mandatory=true,key="type",help="type of the application to unregister") ApplicationType type, @CliOption(key="version",help="the version application to unregister") String version)
@CliCommand(value="app default", help="Change the default application version") public String defaultApplicaiton(@CliOption(mandatory=true,key={"","id"},help="id of the application to query in the form of \'type:name\'") AbstractAppRegistryCommands.QualifiedApplicationName application, @CliOption(mandatory=true,key="version",help="the new default application version") String version)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.