@Component public class ModuleCommands extends Object implements org.springframework.shell.core.CommandMarker
| Modifier and Type | Class and Description |
|---|---|
static class |
ModuleCommands.QualifiedModuleName
Unique identifier for a module, including the name and type.
|
| Constructor and Description |
|---|
ModuleCommands() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
available() |
List<Object> |
info(ModuleCommands.QualifiedModuleName module) |
org.springframework.shell.table.Table |
list() |
String |
register(String name,
org.springframework.cloud.dataflow.core.ArtifactType type,
String coordinates,
boolean force) |
void |
setDataFlowShell(DataFlowShell dataFlowShell) |
String |
unregister(String name,
org.springframework.cloud.dataflow.core.ArtifactType type) |
@Autowired public void setDataFlowShell(DataFlowShell dataFlowShell)
@CliAvailabilityIndicator(value={"module list","module info","module unregister","module register"})
public boolean available()
@CliCommand(value="module info",
help="Get information about a module")
public List<Object> info(@CliOption(mandatory=true,key={"","name"},help="name of the module to query in the form of \'type:name\'")
ModuleCommands.QualifiedModuleName module)
@CliCommand(value="module register",
help="Register a new module")
public String register(@CliOption(mandatory=true,key={"","name"},help="the name for the registered module")
String name,
@CliOption(mandatory=true,key="type",help="the type for the registered module")
org.springframework.cloud.dataflow.core.ArtifactType type,
@CliOption(mandatory=true,key="coordinates",help="coordinates to the module archive")
String coordinates,
@CliOption(key="force",help="force update if module already exists (only if not in use)",specifiedDefaultValue="true",unspecifiedDefaultValue="false")
boolean force)
@CliCommand(value="module unregister",
help="Unregister a module")
public String unregister(@CliOption(mandatory=true,key={"","name"},help="name of the module to unregister")
String name,
@CliOption(mandatory=false,key="type",help="type of the module to unregister")
org.springframework.cloud.dataflow.core.ArtifactType type)
@CliCommand(value="module list",
help="List all modules")
public org.springframework.shell.table.Table list()
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.