Search in sources :

Example 1 with TopicEvent

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;
}
Also used : TopicEvent(io.zeebe.broker.system.log.TopicEvent)

Example 2 with TopicEvent

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;
}
Also used : TopicEvent(io.zeebe.broker.system.log.TopicEvent)

Example 3 with TopicEvent

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;
}
Also used : TopicEvent(io.zeebe.broker.system.log.TopicEvent)

Example 4 with 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());
}
Also used : TopicEvent(io.zeebe.broker.system.log.TopicEvent) TopicSubscriptionEvent(io.zeebe.broker.event.processor.TopicSubscriptionEvent) TopicSubscriberEvent(io.zeebe.broker.event.processor.TopicSubscriberEvent) TaskEvent(io.zeebe.broker.task.data.TaskEvent) WorkflowInstanceEvent(io.zeebe.broker.workflow.data.WorkflowInstanceEvent) DeploymentEvent(io.zeebe.broker.workflow.data.DeploymentEvent)

Example 5 with 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;
}
Also used : TopicEvent(io.zeebe.broker.system.log.TopicEvent)

Aggregations

TopicEvent (io.zeebe.broker.system.log.TopicEvent)5 TopicSubscriberEvent (io.zeebe.broker.event.processor.TopicSubscriberEvent)1 TopicSubscriptionEvent (io.zeebe.broker.event.processor.TopicSubscriptionEvent)1 TaskEvent (io.zeebe.broker.task.data.TaskEvent)1 DeploymentEvent (io.zeebe.broker.workflow.data.DeploymentEvent)1 WorkflowInstanceEvent (io.zeebe.broker.workflow.data.WorkflowInstanceEvent)1