Search in sources :

Example 1 with ListLogStorage

use of io.camunda.zeebe.logstreams.util.ListLogStorage in project zeebe by zeebe-io.

the class StreamProcessorInconsistentPositionTest method setup.

@Before
public void setup() {
    testStreams = new TestStreams(tempFolder, closeables, actorSchedulerRule.get());
    final var listLogStorage = new ListLogStorage();
    testStreams.createLogStream(getLogName(1), 1, listLogStorage);
    testStreams.createLogStream(getLogName(2), 2, listLogStorage);
    firstStreamProcessorComposite = new StreamProcessingComposite(testStreams, 1, DefaultZeebeDbFactory.defaultFactory(), actorSchedulerRule.get());
    secondStreamProcessorComposite = new StreamProcessingComposite(testStreams, 2, DefaultZeebeDbFactory.defaultFactory(), actorSchedulerRule.get());
}
Also used : TestStreams(io.camunda.zeebe.engine.util.TestStreams) ListLogStorage(io.camunda.zeebe.logstreams.util.ListLogStorage) StreamProcessingComposite(io.camunda.zeebe.engine.util.StreamProcessingComposite) Before(org.junit.Before)

Example 2 with ListLogStorage

use of io.camunda.zeebe.logstreams.util.ListLogStorage in project zeebe by camunda-cloud.

the class StreamProcessorInconsistentPositionTest method setup.

@Before
public void setup() {
    testStreams = new TestStreams(tempFolder, closeables, actorSchedulerRule.get());
    final var listLogStorage = new ListLogStorage();
    testStreams.createLogStream(getLogName(1), 1, listLogStorage);
    testStreams.createLogStream(getLogName(2), 2, listLogStorage);
    firstStreamProcessorComposite = new StreamProcessingComposite(testStreams, 1, DefaultZeebeDbFactory.defaultFactory(), actorSchedulerRule.get());
    secondStreamProcessorComposite = new StreamProcessingComposite(testStreams, 2, DefaultZeebeDbFactory.defaultFactory(), actorSchedulerRule.get());
}
Also used : TestStreams(io.camunda.zeebe.engine.util.TestStreams) ListLogStorage(io.camunda.zeebe.logstreams.util.ListLogStorage) StreamProcessingComposite(io.camunda.zeebe.engine.util.StreamProcessingComposite) Before(org.junit.Before)

Aggregations

StreamProcessingComposite (io.camunda.zeebe.engine.util.StreamProcessingComposite)2 TestStreams (io.camunda.zeebe.engine.util.TestStreams)2 ListLogStorage (io.camunda.zeebe.logstreams.util.ListLogStorage)2 Before (org.junit.Before)2