use of org.apache.helix.participant.statemachine.ScheduledTaskStateModelFactory in project helix by apache.
the class ParticipantManager method setupMsgHandler.
private void setupMsgHandler() throws Exception {
_messagingService.registerMessageHandlerFactory(_stateMachineEngine.getMessageTypes(), _stateMachineEngine);
_manager.addMessageListener(_messagingService.getExecutor(), _instanceName);
ScheduledTaskStateModelFactory stStateModelFactory = new ScheduledTaskStateModelFactory(_messagingService.getExecutor());
_stateMachineEngine.registerStateModelFactory(DefaultSchedulerMessageHandlerFactory.SCHEDULER_TASK_QUEUE, stStateModelFactory);
_messagingService.onConnected();
}
Aggregations