本文整理汇总了Java中org.apache.kylin.job.ErrorTestExecutable类的典型用法代码示例。如果您正苦于以下问题:Java ErrorTestExecutable类的具体用法?Java ErrorTestExecutable怎么用?Java ErrorTestExecutable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ErrorTestExecutable类属于org.apache.kylin.job包,在下文中一共展示了ErrorTestExecutable类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testSucceedAndError
import org.apache.kylin.job.ErrorTestExecutable; //导入依赖的package包/类
@Test
public void testSucceedAndError() throws Exception {
logger.info("testSucceedAndError");
DefaultChainedExecutable job = new DefaultChainedExecutable();
BaseTestExecutable task1 = new ErrorTestExecutable();
BaseTestExecutable task2 = new SucceedTestExecutable();
job.addTask(task1);
job.addTask(task2);
execMgr.addJob(job);
waitForJobFinish(job.getId(), 10000);
Assert.assertEquals(ExecutableState.ERROR, execMgr.getOutput(job.getId()).getState());
Assert.assertEquals(ExecutableState.ERROR, execMgr.getOutput(task1.getId()).getState());
Assert.assertEquals(ExecutableState.READY, execMgr.getOutput(task2.getId()).getState());
}
示例2: tesMetaStoreRecover
import org.apache.kylin.job.ErrorTestExecutable; //导入依赖的package包/类
@Test
public void tesMetaStoreRecover() throws Exception {
logger.info("tesMetaStoreRecover");
NoErrorStatusExecutable job = new NoErrorStatusExecutable();
ErrorTestExecutable task = new ErrorTestExecutable();
job.addTask(task);
execMgr.addJob(job);
Thread.sleep(2000);
runningJobToError(job.getId());
Thread.sleep(2000);
Assert.assertEquals(ExecutableState.ERROR, execMgr.getOutput(job.getId()).getState());
}
示例3: testSucceedAndError
import org.apache.kylin.job.ErrorTestExecutable; //导入依赖的package包/类
@Test
public void testSucceedAndError() throws Exception {
DefaultChainedExecutable job = new DefaultChainedExecutable();
BaseTestExecutable task1 = new ErrorTestExecutable();
BaseTestExecutable task2 = new SucceedTestExecutable();
job.addTask(task1);
job.addTask(task2);
jobService.addJob(job);
waitForJobFinish(job.getId());
assertEquals(ExecutableState.ERROR, jobService.getOutput(job.getId()).getState());
assertEquals(ExecutableState.ERROR, jobService.getOutput(task1.getId()).getState());
assertEquals(ExecutableState.READY, jobService.getOutput(task2.getId()).getState());
}