Package org.springframework.xd.rest.domain.metrics

Examples of org.springframework.xd.rest.domain.metrics.FieldValueCounterResource


    return createResourceWithId(entity.getName(), entity);
  }

  @Override
  protected FieldValueCounterResource instantiateResource(FieldValueCounter entity) {
    return new FieldValueCounterResource(entity.getName(), entity.getFieldValueCount());
  }
View Full Code Here


  @CliCommand(value = DISPLAY_FV_COUNTER, 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") String name,
      @CliOption(key = "pattern", help = "the pattern used to format the field-value-counter's field count (see DecimalFormat)", mandatory = false, unspecifiedDefaultValue = NumberFormatConverter.DEFAULT) NumberFormat pattern,
      @CliOption(key = { "size" }, help = "the number of values to display", mandatory = false, unspecifiedDefaultValue = "25") int size) {
    FieldValueCounterResource fvcResource = fvcOperations().retrieve(name);
    return displayFVCvalue(fvcResource, pattern, size);
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.rest.domain.metrics.FieldValueCounterResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.