@Component public class LibraryCommands extends Object implements org.springframework.shell.core.CommandMarker
| Constructor and Description |
|---|
LibraryCommands() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
available() |
org.springframework.shell.table.Table |
list() |
String |
register(String name,
String coordinates,
boolean force) |
void |
setDataFlowShell(DataFlowShell dataFlowShell) |
String |
unregister(String name) |
@Autowired public void setDataFlowShell(DataFlowShell dataFlowShell)
@CliAvailabilityIndicator(value={"library register","library unregister","library list"})
public boolean available()
@CliCommand(value="library register",
help="Register a new library")
public String register(@CliOption(mandatory=true,key={"","name"},help="the name for the library to register")
String name,
@CliOption(mandatory=true,key="coordinates",help="coordinates to the library")
String coordinates,
@CliOption(key="force",help="force update if library already exists (only if not in use)",specifiedDefaultValue="true",unspecifiedDefaultValue="false")
boolean force)
@CliCommand(value="library unregister",
help="Unregister a library")
public String unregister(@CliOption(mandatory=true,key={"","name"},help="name of the library to unregister")
String name)
@CliCommand(value="library list",
help="List all libraries")
public org.springframework.shell.table.Table list()
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.