Search in sources :

Example 1 with SaturnExecutor

use of com.vip.saturn.job.executor.SaturnExecutor in project Saturn by vipshop.

the class AbstractSaturnIT method getExecutorConfig.

public ExecutorConfig getExecutorConfig(int index) {
    assertThat(saturnExecutorList.size()).isGreaterThan(index);
    Main main = saturnExecutorList.get(index);
    SaturnExecutor saturnExecutor = (SaturnExecutor) main.getSaturnExecutor();
    return saturnExecutor.getSaturnExecutorService().getExecutorConfig();
}
Also used : SaturnExecutor(com.vip.saturn.job.executor.SaturnExecutor) Main(com.vip.saturn.job.executor.Main)

Aggregations

Main (com.vip.saturn.job.executor.Main)1 SaturnExecutor (com.vip.saturn.job.executor.SaturnExecutor)1