Search in sources :

Example 1 with ScheduledTaskStateModelFactory

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();
}
Also used : ScheduledTaskStateModelFactory(org.apache.helix.participant.statemachine.ScheduledTaskStateModelFactory)

Aggregations

ScheduledTaskStateModelFactory (org.apache.helix.participant.statemachine.ScheduledTaskStateModelFactory)1