Package org.springframework.xd.test.fixtures

Examples of org.springframework.xd.test.fixtures.AggregateCounterSink


  }

  @Test
  public void testAggregateCounterList() throws Exception {
    httpSource = newHttpSource();
    AggregateCounterSink counter = metrics().newAggregateCounterSink();
    stream().create(generateStreamName(), "%s | %s", httpSource, counter);

    httpSource.postData("one");
    httpSource.postData("one");
    httpSource.postData("two");
View Full Code Here


    httpSource = newHttpSource();

    // Create sink object, but don't use its toString
    // in stream def. Instead, we know it should be named like
    // the streamname.
    AggregateCounterSink counter = metrics().newAggregateCounterSink(streamName);
    stream().create(streamName, "%s | aggregate-counter", httpSource);
    httpSource.postData("one");
    assertThat(counter, eventually(exists()));
  }
View Full Code Here

  public CounterSink newCounterSink() {
    return remember(new CounterSink(shell, randomName()));
  }

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

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

  public AggregateCounterSink newAggregateCounterSink() {
    return remember(new AggregateCounterSink(shell, randomName()));
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.test.fixtures.AggregateCounterSink

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.