use of org.apache.heron.spi.metricsmgr.sink.SinkContext in project heron by twitter.
the class SinkExecutorTest method before.
@Before
public void before() throws Exception {
metricsSink = new DummyMetricsSink(EXPECTED_RECORDS, EXPECTED_FLUSHES);
executorLooper = new ExecutorLooper();
communicator = new Communicator<>(null, executorLooper);
SinkContext sinkContext = new SinkContextImpl("topology-name", "cluster", "role", "environment", "metricsmgr-id", "sink-id", new MultiCountMetric());
sinkExecutor = new SinkExecutor("testSinkId", metricsSink, executorLooper, communicator, sinkContext);
}
Aggregations