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);
}
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);
});
}
Aggregations