Search in sources :

Example 1 with ProducerManager

use of com.dangdang.ddframe.job.cloud.scheduler.producer.ProducerManager in project elastic-job by dangdangdotcom.

the class AbstractCloudRestfulApiTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    regCenter = mock(CoordinatorRegistryCenter.class);
    jobEventRdbSearch = mock(JobEventRdbSearch.class);
    SchedulerDriver schedulerDriver = mock(SchedulerDriver.class);
    ProducerManager producerManager = new ProducerManager(schedulerDriver, regCenter);
    producerManager.startup();
    restfulService = new RestfulService(regCenter, new RestfulServerConfiguration(19000), producerManager);
    restfulService.start();
}
Also used : JobEventRdbSearch(com.dangdang.ddframe.job.event.rdb.JobEventRdbSearch) ProducerManager(com.dangdang.ddframe.job.cloud.scheduler.producer.ProducerManager) RestfulServerConfiguration(com.dangdang.ddframe.job.cloud.scheduler.env.RestfulServerConfiguration) SchedulerDriver(org.apache.mesos.SchedulerDriver) CoordinatorRegistryCenter(com.dangdang.ddframe.job.reg.base.CoordinatorRegistryCenter) BeforeClass(org.junit.BeforeClass)

Aggregations

RestfulServerConfiguration (com.dangdang.ddframe.job.cloud.scheduler.env.RestfulServerConfiguration)1 ProducerManager (com.dangdang.ddframe.job.cloud.scheduler.producer.ProducerManager)1 JobEventRdbSearch (com.dangdang.ddframe.job.event.rdb.JobEventRdbSearch)1 CoordinatorRegistryCenter (com.dangdang.ddframe.job.reg.base.CoordinatorRegistryCenter)1 SchedulerDriver (org.apache.mesos.SchedulerDriver)1 BeforeClass (org.junit.BeforeClass)1