@Component public class FieldValueCounterCommands extends AbstractMetricsCommands implements org.springframework.shell.core.CommandMarker
| Modifier and Type | Field and Description |
|---|---|
static String |
DISPLAY_COUNTER |
static String |
LIST_COUNTERS |
static String |
RESET_COUNTER |
| Modifier | Constructor and Description |
|---|---|
protected |
FieldValueCounterCommands() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
availableWithCreateRole() |
boolean |
availableWithViewRole() |
List<Object> |
display(String name,
NumberFormat pattern) |
org.springframework.shell.table.Table |
list() |
String |
reset(String name) |
displayMetricspublic static final String DISPLAY_COUNTER
public static final String LIST_COUNTERS
public static final String RESET_COUNTER
@CliAvailabilityIndicator(value={"field-value-counter list","field-value-counter display"})
public boolean availableWithViewRole()
@CliAvailabilityIndicator(value="field-value-counter reset") public boolean availableWithCreateRole()
@CliCommand(value="field-value-counter display",
help="Display the value of a field value counter")
public List<Object> display(@CliOption(key={"","name"},help="the name of the field value counter to display",mandatory=true,optionContext="existing-field-value-counter disable-string-converter")
String name,
@CliOption(key="pattern",help="the pattern used to format the values (see DecimalFormat)",mandatory=false,unspecifiedDefaultValue="<use platform locale>")
NumberFormat pattern)
@CliCommand(value="field-value-counter list",
help="List all available field value counter names")
public org.springframework.shell.table.Table list()
@CliCommand(value="field-value-counter reset",
help="Reset the field value counter with the given name")
public String reset(@CliOption(mandatory=true,key={"","name"},help="the name of the field value counter to reset",optionContext="existing-field-value-counter disable-string-converter")
String name)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.