Package org.springframework.xd.shell.command.fixtures

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


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

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

  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

Related Classes of org.springframework.xd.shell.command.fixtures.RichGaugeSink

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.