Examples of RichGaugeSink


Examples of org.springframework.xd.shell.command.fixtures.RichGaugeSink


  @Test
  public void testRichGaugeDisplay() throws Exception {
    httpSource = newHttpSource();
    RichGaugeSink sink = metrics().newRichGauge();
    stream().create(generateStreamName(), "%s | %s", httpSource, sink);

    httpSource.ensureReady();
    httpSource.postData("5");
    httpSource.postData("10");
    httpSource.postData("15");
    Table t = sink.constructRichGaugeDisplay(15d, -1d, 10d, 15d, 5d, 3L);

    assertThat(sink, eventually(exists()));
    assertThat(sink, eventually(hasValue(t)));
  }
View Full Code Here

Examples of org.springframework.xd.shell.command.fixtures.RichGaugeSink

  public AggregateCounterSink newAggregateCounterSink() {
    return remember(new AggregateCounterSink(shell, randomName()));
  }

  public RichGaugeSink newRichGauge(String name) {
    return remember(new RichGaugeSink(shell, name));
  }
View Full Code Here

Examples of org.springframework.xd.shell.command.fixtures.RichGaugeSink

  public RichGaugeSink newRichGauge(String name) {
    return remember(new RichGaugeSink(shell, name));
  }

  public RichGaugeSink newRichGauge() {
    return remember(new RichGaugeSink(shell, randomName()));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.