@Component public class FieldValueCounterCommands extends AbstractMetricsCommands implements org.springframework.shell.core.CommandMarker
| Modifier | Constructor and Description |
|---|---|
protected |
FieldValueCounterCommands() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
available() |
java.lang.String |
delete(java.lang.String name) |
Table |
display(java.lang.String name,
java.text.NumberFormat pattern,
int size) |
Table |
list() |
displayMetrics@CliAvailabilityIndicator(value={"field-value-counter display","field-value-counter list","field-value-counter delete"})
public boolean available()
@CliCommand(value="field-value-counter display",
help="Display the value of a field-value-counter")
public Table display(@CliOption(key={"","name"},help="the name of the field-value-counter to display",mandatory=true,optionContext="existing-fvc disable-string-converter")
java.lang.String name,
@CliOption(key="pattern",help="the pattern used to format the field-value-counter\'s field count (see DecimalFormat)",mandatory=false,unspecifiedDefaultValue="
@CliCommand(value="field-value-counter list",
help="List all available field-value-counter names")
public Table list()
@CliCommand(value="field-value-counter delete",
help="Delete the field-value-counter with the given name")
public java.lang.String delete(@CliOption(key={"","name"},help="the name of the field-value-counter to delete",mandatory=true,optionContext="existing-fvc disable-string-converter")
java.lang.String name)