Search in sources :

Example 6 with PartitionEvent

use of io.zeebe.broker.system.log.PartitionEvent in project zeebe by zeebe-io.

the class RequestPartitionsStreamProcessorTest method partitionCreated.

protected static PartitionEvent partitionCreated(String topicName, int partitionId) {
    final PartitionEvent partitionEvent = new PartitionEvent();
    partitionEvent.setId(partitionId);
    partitionEvent.setTopicName(BufferUtil.wrapString(topicName));
    partitionEvent.setState(PartitionState.CREATED);
    partitionEvent.setCreator(BufferUtil.wrapString("foo"), 123);
    return partitionEvent;
}
Also used : PartitionEvent(io.zeebe.broker.system.log.PartitionEvent)

Aggregations

PartitionEvent (io.zeebe.broker.system.log.PartitionEvent)6 Test (org.junit.Test)4 TopologyBroker (io.zeebe.broker.clustering.handler.TopologyBroker)1 PartitionRequest (io.zeebe.broker.topic.TestPartitionManager.PartitionRequest)1 Instant (java.time.Instant)1 Optional (java.util.Optional)1