@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 |
available() |
String |
importFromResource(String uri,
boolean local,
boolean force) |
List<Object> |
info(AppRegistryCommands.QualifiedApplicationName application) |
org.springframework.shell.table.Table |
list() |
String |
register(String name,
org.springframework.cloud.dataflow.core.ApplicationType type,
String uri,
boolean force) |
void |
setDataFlowShell(DataFlowShell dataFlowShell) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
String |
unregister(String name,
org.springframework.cloud.dataflow.core.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","app unregister","app register","app import"})
public boolean available()
@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")
org.springframework.cloud.dataflow.core.ApplicationType type,
@CliOption(mandatory=true,key="uri",help="URI for the application artifact")
String uri,
@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=false,key="type",help="type of the application to unregister")
org.springframework.cloud.dataflow.core.ApplicationType type)
@CliCommand(value="app list",
help="List all registered applications")
public org.springframework.shell.table.Table 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 © 2016 Pivotal Software, Inc.. All rights reserved.