use of io.zeebe.broker.system.log.TopicEvent in project zeebe by zeebe-io.
the class CreateDeploymentStreamProcessorTest method topicCreated.
protected TopicEvent topicCreated(String name, int partitions) {
final TopicEvent event = new TopicEvent();
event.setName(BufferUtil.wrapString(name));
event.setPartitions(partitions);
event.setState(TopicState.CREATED);
return event;
}
use of io.zeebe.broker.system.log.TopicEvent in project zeebe by zeebe-io.
the class CreateTopicStreamProcessorTest method createTopic.
protected TopicEvent createTopic(String name, int partitions) {
final TopicEvent event = new TopicEvent();
event.setName(BufferUtil.wrapString(name));
event.setPartitions(partitions);
event.setState(TopicState.CREATE);
return event;
}
use of io.zeebe.broker.system.log.TopicEvent in project zeebe by zeebe-io.
the class RequestPartitionsStreamProcessorTest method topicCreated.
protected static TopicEvent topicCreated(String topicName, int numPartitions) {
final TopicEvent topicEvent = new TopicEvent();
topicEvent.setName(BufferUtil.wrapString(topicName));
topicEvent.setPartitions(numPartitions);
topicEvent.setState(TopicState.CREATED);
return topicEvent;
}
use of io.zeebe.broker.system.log.TopicEvent in project zeebe by zeebe-io.
the class ClientApiMessageHandler method initEventTypeMap.
private void initEventTypeMap() {
eventsByType.put(EventType.DEPLOYMENT_EVENT, new DeploymentEvent());
eventsByType.put(EventType.TASK_EVENT, new TaskEvent());
eventsByType.put(EventType.WORKFLOW_INSTANCE_EVENT, new WorkflowInstanceEvent());
eventsByType.put(EventType.SUBSCRIBER_EVENT, new TopicSubscriberEvent());
eventsByType.put(EventType.SUBSCRIPTION_EVENT, new TopicSubscriptionEvent());
eventsByType.put(EventType.TOPIC_EVENT, new TopicEvent());
}
use of io.zeebe.broker.system.log.TopicEvent in project zeebe by zeebe-io.
the class TypedStreamProcessorTest method createTopic.
protected TopicEvent createTopic(String name, int partitions) {
final TopicEvent event = new TopicEvent();
event.setName(BufferUtil.wrapString(name));
event.setPartitions(partitions);
event.setState(TopicState.CREATE);
return event;
}
Aggregations