作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.samza.rest.proxy.job.YarnRestJobStatusProvider.getJobStatuses()
方法的一些代码示例,展示了YarnRestJobStatusProvider.getJobStatuses()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YarnRestJobStatusProvider.getJobStatuses()
方法的具体详情如下:
包路径:org.apache.samza.rest.proxy.job.YarnRestJobStatusProvider
类名称:YarnRestJobStatusProvider
方法名:getJobStatuses
暂无
代码示例来源:origin: apache/samza
@Override
public Job getJobStatus(JobInstance jobInstance)
throws IOException, InterruptedException {
Job info = new Job(jobInstance.getJobName(), jobInstance.getJobId());
getJobStatuses(Collections.singletonList(info));
return info;
}
代码示例来源:origin: apache/samza
@Test
public void testGetJobStatuses() throws IOException, InterruptedException {
doReturn(APPS_RESPONSE.getBytes()).when(provider).httpGet(anyString());
List<Job> jobs = Lists.newArrayList(
new Job("job1", "1"), // Job with multiple applications, 1 RUNNING
new Job("job2", "1"), // Job with 1 KILLED application
new Job("job3", "1"), // Job with 1 RUNNING application
new Job("job4", "1")); // Job not found in YARN
provider.getJobStatuses(jobs);
Collections.sort(jobs, (o1, o2) -> o1.getJobName().compareTo(o2.getJobName()));
assertEquals(4, jobs.size());
verifyJobStatus(jobs.get(0), "job1", JobStatus.STARTED, "RUNNING");
verifyJobStatus(jobs.get(1), "job2", JobStatus.STOPPED, "KILLED");
verifyJobStatus(jobs.get(2), "job3", JobStatus.STARTED, "RUNNING");
verifyJobStatus(jobs.get(3), "job4", JobStatus.UNKNOWN, null);
}
本文整理了Java中org.apache.samza.rest.proxy.job.YarnRestJobStatusProvider.getJobStatuses()方法的一些代码示例,展示了Yar
本文整理了Java中org.apache.samza.rest.proxy.job.YarnRestJobStatusProvider.()方法的一些代码示例,展示了YarnRestJobStatus
我是一名优秀的程序员,十分优秀!