break;
case CONTROLLER:
_stateMachineEngine = null;
_participantHealthInfoCollector = null;
_controllerTimerTasks.add(new HealthStatsAggregationTask(new HealthStatsAggregator(this)));
_controllerTimerTasks.add(new StatusDumpTask(_zkclient, this));
break;
case CONTROLLER_PARTICIPANT:
_stateMachineEngine = new HelixStateMachineEngine(this);
_participantHealthInfoCollector =
new ParticipantHealthReportCollectorImpl(this, _instanceName);
_timerTasks.add(new ParticipantHealthReportTask(_participantHealthInfoCollector));
_controllerTimerTasks.add(new HealthStatsAggregationTask(new HealthStatsAggregator(this)));
_controllerTimerTasks.add(new StatusDumpTask(_zkclient, this));
break;
case ADMINISTRATOR:
case SPECTATOR: