Search in sources :

Example 1 with BufferingServerTransport

use of io.zeebe.transport.BufferingServerTransport in project zeebe by zeebe-io.

the class ClusterManagerContextService method start.

@Override
public void start(ServiceStartContext startContext) {
    final ClientTransport clientTransport = managementClientInjector.getValue();
    final BufferingServerTransport serverTransport = managementApiTransportInjector.getValue();
    final ActorScheduler actorScheduler = startContext.getScheduler();
    final LogStreamsManager logStreamsManager = logStreamsManagerInjector.getValue();
    final WorkflowRequestMessageHandler workflowRequestMessageHandler = workflowRequestMessageHandlerInjector.getValue();
    context = new ClusterManagerContext();
    context.setGossip(gossipInjector.getValue());
    context.setActorScheduler(actorScheduler);
    context.setManagementClient(clientTransport);
    context.setReplicationClient(replicationClientInjector.getValue());
    context.setServerTransport(serverTransport);
    context.setMemberListService(memberListServiceInjector.getValue());
    context.setLogStreamsManager(logStreamsManager);
    context.setWorkflowRequestMessageHandler(workflowRequestMessageHandler);
}
Also used : ActorScheduler(io.zeebe.util.sched.ActorScheduler) WorkflowRequestMessageHandler(io.zeebe.broker.system.deployment.handler.WorkflowRequestMessageHandler) ClusterManagerContext(io.zeebe.broker.clustering.management.ClusterManagerContext) ClientTransport(io.zeebe.transport.ClientTransport) LogStreamsManager(io.zeebe.broker.logstreams.LogStreamsManager) BufferingServerTransport(io.zeebe.transport.BufferingServerTransport)

Aggregations

ClusterManagerContext (io.zeebe.broker.clustering.management.ClusterManagerContext)1 LogStreamsManager (io.zeebe.broker.logstreams.LogStreamsManager)1 WorkflowRequestMessageHandler (io.zeebe.broker.system.deployment.handler.WorkflowRequestMessageHandler)1 BufferingServerTransport (io.zeebe.transport.BufferingServerTransport)1 ClientTransport (io.zeebe.transport.ClientTransport)1 ActorScheduler (io.zeebe.util.sched.ActorScheduler)1