Class RuntimeCommands
java.lang.Object
org.springframework.cloud.dataflow.shell.command.RuntimeCommands
Commands for displaying the runtime state of deployed apps.
- Author:
- Eric Bottard, Mark Fisher, Gunnar Hillert, Chris Bono
-
Constructor Summary
ConstructorDescriptionRuntimeCommands
(DataFlowShell dataFlowShell, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptiongetFromActuator
(String appId, String instanceId, String endpoint) postToActuator
(String appId, String instanceId, String endpoint, String data)
-
Constructor Details
-
RuntimeCommands
public RuntimeCommands(DataFlowShell dataFlowShell, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
availableWithViewRole
-
availableWithModifyRole
-
getFromActuator
@ShellMethod(key="runtime actuator get", value="Invoke actuator GET endpoint on app instance") @ShellMethodAvailability("availableWithViewRole") public String getFromActuator(@ShellOption(value="--appId",help="app id of the app instance") String appId, @ShellOption(value="--instanceId",help="instance id of the app instance") String instanceId, @ShellOption(help="endpoint to invoke") String endpoint) -
postToActuator
@ShellMethod(key="runtime actuator post", value="Invoke actuator POST endpoint on app instance") @ShellMethodAvailability("availableWithModifyRole") public Object postToActuator(@ShellOption(value="--appId",help="app id of the app instance") String appId, @ShellOption(value="--instanceId",help="instance id of the app instance") String instanceId, @ShellOption(help="endpoint to invoke") String endpoint, @ShellOption(help="optional data to include in the request body in the form of a JSON string representing a Map<String, Object>",defaultValue="__NULL__") String data) -
list
@ShellMethod(key="runtime apps", value="List runtime apps") @ShellMethodAvailability("availableWithViewRole") public Table list(@ShellOption(help="whether to hide app instance details",defaultValue="false") boolean summary, @ShellOption(value={"--appId","--appIds"},help="app id(s) to display, also supports \'<group>.*\' pattern",defaultValue="__NULL__") String[] appIds)
-