@Component public class AppRegistryCommands extends Object implements org.springframework.shell.core.CommandMarker, org.springframework.context.ResourceLoaderAware
Modifier and Type | Class and Description |
---|---|
static class |
AppRegistryCommands.QualifiedApplicationName
Unique identifier for an application, including the name and type.
|
Constructor and Description |
---|
AppRegistryCommands() |
Modifier and Type | Method and Description |
---|---|
boolean |
availableWithCreateRole() |
boolean |
availableWithViewRole() |
String |
importFromResource(String uri,
boolean local,
boolean force) |
List<Object> |
info(AppRegistryCommands.QualifiedApplicationName application) |
Object |
list() |
String |
register(String name,
ApplicationType type,
String uri,
String metadataUri,
boolean force) |
void |
setDataFlowShell(DataFlowShell dataFlowShell) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
String |
unregister(String name,
ApplicationType type) |
@Autowired public void setDataFlowShell(DataFlowShell dataFlowShell)
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
@CliAvailabilityIndicator(value={"app list","app info"}) public boolean availableWithViewRole()
@CliAvailabilityIndicator(value={"app unregister","app register","app import"}) public boolean availableWithCreateRole()
@CliCommand(value="app info", help="Get information about an application") public List<Object> info(@CliOption(mandatory=true,key={"","id"},help="id of the application to query in the form of \'type:name\'") AppRegistryCommands.QualifiedApplicationName application)
@CliCommand(value="app register", help="Register a new application") public String register(@CliOption(mandatory=true,key={"","name"},help="the name for the registered application") String name, @CliOption(mandatory=true,key="type",help="the type for the registered application") ApplicationType type, @CliOption(mandatory=true,key="uri",help="URI for the application artifact") String uri, @CliOption(key="metadata-uri",help="Metadata URI for the application artifact") String metadataUri, @CliOption(key="force",help="force update if application is already registered (only if not in use)",specifiedDefaultValue="true",unspecifiedDefaultValue="false") boolean force)
@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)
@CliCommand(value="app list", help="List all registered applications") public Object list()
@CliCommand(value="app import", help="Register all applications listed in a properties file") public String importFromResource(@CliOption(mandatory=true,key={"","uri"},help="URI for the properties file") String uri, @CliOption(key="local",help="whether to resolve the URI locally (as opposed to on the server)",specifiedDefaultValue="true",unspecifiedDefaultValue="true") boolean local, @CliOption(key="force",help="force update if any module already exists (only if not in use)",specifiedDefaultValue="true",unspecifiedDefaultValue="false") boolean force)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.