Search in sources :

Example 1 with ClusterManagerContext

use of io.zeebe.broker.clustering.management.ClusterManagerContext 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)

Example 2 with ClusterManagerContext

use of io.zeebe.broker.clustering.management.ClusterManagerContext in project zeebe by zeebe-io.

the class ClusterManagerService method start.

@Override
public void start(ServiceStartContext startContext) {
    startContext.run(() -> {
        final ClusterManagerContext context = clusterManagementContextInjector.getValue();
        clusterManager = new ClusterManager(context, serviceContainer, config);
        startContext.getScheduler().submitActor(clusterManager);
    });
}
Also used : ClusterManagerContext(io.zeebe.broker.clustering.management.ClusterManagerContext) ClusterManager(io.zeebe.broker.clustering.management.ClusterManager)

Aggregations

ClusterManagerContext (io.zeebe.broker.clustering.management.ClusterManagerContext)2 ClusterManager (io.zeebe.broker.clustering.management.ClusterManager)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