Search in sources :

Example 1 with SchedulerService

use of com.dangdang.ddframe.job.cloud.scheduler.mesos.SchedulerService in project elastic-job by dangdangdotcom.

the class SchedulerElectionCandidate method startLeadership.

@Override
public void startLeadership() throws Exception {
    try {
        schedulerService = new SchedulerService(regCenter);
        schedulerService.start();
    //CHECKSTYLE:OFF
    } catch (final Throwable throwable) {
        throw new JobSystemException(throwable);
    }
}
Also used : SchedulerService(com.dangdang.ddframe.job.cloud.scheduler.mesos.SchedulerService) JobSystemException(com.dangdang.ddframe.job.exception.JobSystemException)

Aggregations

SchedulerService (com.dangdang.ddframe.job.cloud.scheduler.mesos.SchedulerService)1 JobSystemException (com.dangdang.ddframe.job.exception.JobSystemException)1