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

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


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

  @Override
  protected RichGaugeResource instantiateResource(RichGauge entity) {
    return new RichGaugeResource(entity.getName(), entity.getValue(), entity.getAlpha(), entity.getAverage(),
        entity.getMax(), entity.getMin(), entity.getCount());
  }
View Full Code Here


  @CliCommand(value = DISPLAY_RICH_GAUGE, help = "Display Rich Gauge value")
  public Table display(
      @CliOption(key = { "", "name" }, help = "the name of the richgauge to display value", mandatory = true, optionContext = "existing-rich-gauge disable-string-converter") String name,
      @CliOption(key = "pattern", help = "the pattern used to format the richgauge value (see DecimalFormat)", mandatory = false, unspecifiedDefaultValue = NumberFormatConverter.DEFAULT) NumberFormat pattern) {
    RichGaugeResource resource = richGaugeOperations().retrieve(name);
    return displayRichGauge(resource, pattern);
  }
View Full Code Here

TOP

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

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.