Search in sources :

Example 1 with StreamProcessingComposite

use of io.camunda.zeebe.engine.util.StreamProcessingComposite in project zeebe by camunda.

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.engine.util.ListLogStorage) StreamProcessingComposite(io.camunda.zeebe.engine.util.StreamProcessingComposite) Before(org.junit.Before)

Example 2 with StreamProcessingComposite

use of io.camunda.zeebe.engine.util.StreamProcessingComposite 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 3 with StreamProcessingComposite

use of io.camunda.zeebe.engine.util.StreamProcessingComposite 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)3 TestStreams (io.camunda.zeebe.engine.util.TestStreams)3 Before (org.junit.Before)3 ListLogStorage (io.camunda.zeebe.logstreams.util.ListLogStorage)2 ListLogStorage (io.camunda.zeebe.engine.util.ListLogStorage)1