Java 类org.apache.hadoop.yarn.api.records.impl.pb.ApplicationReportPBImpl 实例源码

项目:aliyun-oss-hadoop-fs    文件:TestWebAppProxyServlet.java   
private FetchedAppReport getDefaultApplicationReport(ApplicationId appId,
    boolean isTrackingUrl) {
  FetchedAppReport fetchedReport;
  ApplicationReport result = new ApplicationReportPBImpl();
  result.setApplicationId(appId);
  result.setYarnApplicationState(YarnApplicationState.RUNNING);
  result.setUser(CommonConfigurationKeys.DEFAULT_HADOOP_HTTP_STATIC_USER);
  if (isTrackingUrl) {
    result.setOriginalTrackingUrl("localhost:" + originalPort + "/foo/bar");
  }
  if(configuration.getBoolean(YarnConfiguration.
      APPLICATION_HISTORY_ENABLED, false)) {
    fetchedReport = new FetchedAppReport(result, AppReportSource.AHS);
  } else {
    fetchedReport = new FetchedAppReport(result, AppReportSource.RM);
  }
  return fetchedReport;
}
项目:hops    文件:TestWebAppProxyServlet.java   
private FetchedAppReport getDefaultApplicationReport(ApplicationId appId,
    boolean isTrackingUrl) {
  FetchedAppReport fetchedReport;
  ApplicationReport result = new ApplicationReportPBImpl();
  result.setApplicationId(appId);
  result.setYarnApplicationState(YarnApplicationState.RUNNING);
  result.setUser(CommonConfigurationKeys.DEFAULT_HADOOP_HTTP_STATIC_USER);
  if (isTrackingUrl) {
    result.setOriginalTrackingUrl("localhost:" + originalPort + "/foo/bar");
  }
  if(configuration.getBoolean(YarnConfiguration.
      APPLICATION_HISTORY_ENABLED, false)) {
    fetchedReport = new FetchedAppReport(result, AppReportSource.AHS);
  } else {
    fetchedReport = new FetchedAppReport(result, AppReportSource.RM);
  }
  return fetchedReport;
}
项目:hadoop    文件:TestWebAppProxyServlet.java   
private ApplicationReport getDefaultApplicationReport(ApplicationId appId) {
  ApplicationReport result = new ApplicationReportPBImpl();
  result.setApplicationId(appId);
  result.setOriginalTrackingUrl("localhost:" + originalPort + "/foo/bar");
  result.setYarnApplicationState(YarnApplicationState.RUNNING);
  result.setUser(CommonConfigurationKeys.DEFAULT_HADOOP_HTTP_STATIC_USER);
  return result;
}
项目:hadoop    文件:TestRemoteAppChecker.java   
@Test
public void testRunningApp() throws Exception {
  YarnClient client = createCheckerWithMockedClient();
  ApplicationId id = ApplicationId.newInstance(1, 1);

  // create a report and set the state to an active one
  ApplicationReport report = new ApplicationReportPBImpl();
  report.setYarnApplicationState(YarnApplicationState.ACCEPTED);
  doReturn(report).when(client).getApplicationReport(id);

  assertTrue(checker.isApplicationActive(id));
}
项目:aliyun-oss-hadoop-fs    文件:TestRemoteAppChecker.java   
@Test
public void testRunningApp() throws Exception {
  YarnClient client = createCheckerWithMockedClient();
  ApplicationId id = ApplicationId.newInstance(1, 1);

  // create a report and set the state to an active one
  ApplicationReport report = new ApplicationReportPBImpl();
  report.setYarnApplicationState(YarnApplicationState.ACCEPTED);
  doReturn(report).when(client).getApplicationReport(id);

  assertTrue(checker.isApplicationActive(id));
}
项目:big-c    文件:TestWebAppProxyServlet.java   
private ApplicationReport getDefaultApplicationReport(ApplicationId appId) {
  ApplicationReport result = new ApplicationReportPBImpl();
  result.setApplicationId(appId);
  result.setOriginalTrackingUrl("localhost:" + originalPort + "/foo/bar");
  result.setYarnApplicationState(YarnApplicationState.RUNNING);
  result.setUser(CommonConfigurationKeys.DEFAULT_HADOOP_HTTP_STATIC_USER);
  return result;
}
项目:big-c    文件:TestRemoteAppChecker.java   
@Test
public void testRunningApp() throws Exception {
  YarnClient client = createCheckerWithMockedClient();
  ApplicationId id = ApplicationId.newInstance(1, 1);

  // create a report and set the state to an active one
  ApplicationReport report = new ApplicationReportPBImpl();
  report.setYarnApplicationState(YarnApplicationState.ACCEPTED);
  doReturn(report).when(client).getApplicationReport(id);

  assertTrue(checker.isApplicationActive(id));
}
项目:hadoop-2.6.0-cdh5.4.3    文件:TestWebAppProxyServlet.java   
private ApplicationReport getDefaultApplicationReport(ApplicationId appId) {
  ApplicationReport result = new ApplicationReportPBImpl();
  result.setApplicationId(appId);
  result.setOriginalTrackingUrl("localhost:" + originalPort + "/foo/bar");
  result.setYarnApplicationState(YarnApplicationState.RUNNING);
  result.setUser(CommonConfigurationKeys.DEFAULT_HADOOP_HTTP_STATIC_USER);
  return result;
}
项目:hops    文件:TestRemoteAppChecker.java   
@Test
public void testRunningApp() throws Exception {
  YarnClient client = createCheckerWithMockedClient();
  ApplicationId id = ApplicationId.newInstance(1, 1);

  // create a report and set the state to an active one
  ApplicationReport report = new ApplicationReportPBImpl();
  report.setYarnApplicationState(YarnApplicationState.ACCEPTED);
  doReturn(report).when(client).getApplicationReport(id);

  assertTrue(checker.isApplicationActive(id));
}
项目:incubator-slider    文件:TestSliderUtils.java   
private ApplicationReportPBImpl getApplicationReport(long startTime,
                                                     long finishTime,
                                                     String name,
                                                     YarnApplicationState state) {
  ApplicationReportPBImpl ar = new ApplicationReportPBImpl();
  ar.setFinishTime(finishTime);
  ar.setStartTime(startTime);
  ar.setApplicationType(name);
  ar.setYarnApplicationState(state);
  return ar;
}
项目:hadoop-on-lustre2    文件:TestWebAppProxyServlet.java   
private ApplicationReport getDefaultApplicationReport(ApplicationId appId) {
  ApplicationReport result = new ApplicationReportPBImpl();
  result.setApplicationId(appId);
  result.setOriginalTrackingUrl("localhost:" + originalPort + "/foo/bar");
  result.setYarnApplicationState(YarnApplicationState.RUNNING);
  result.setUser(CommonConfigurationKeys.DEFAULT_HADOOP_HTTP_STATIC_USER);
  return result;
}
项目:hadoop    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:hadoop    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:hadoop    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:hadoop    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:aliyun-oss-hadoop-fs    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:aliyun-oss-hadoop-fs    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:TestPBImplRecords.java   
@Test
public void testApplicationReportPBImpl() throws Exception {
  validatePBImplRecord(ApplicationReportPBImpl.class,
      ApplicationReportProto.class);
}
项目:big-c    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:big-c    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:big-c    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:big-c    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:hadoop-plus    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:hadoop-plus    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:hadoop-plus    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:hadoop-plus    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:hops    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:hops    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:hops    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:hops    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:hops    文件:TestPBImplRecords.java   
@Test
public void testApplicationReportPBImpl() throws Exception {
  validatePBImplRecord(ApplicationReportPBImpl.class,
      ApplicationReportProto.class);
}
项目:hadoop-TCP    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}
项目:hadoop-TCP    文件:GetApplicationReportResponsePBImpl.java   
private ApplicationReportProto convertToProtoFormat(ApplicationReport t) {
  return ((ApplicationReportPBImpl)t).getProto();
}
项目:hadoop-TCP    文件:GetApplicationsResponsePBImpl.java   
private ApplicationReportPBImpl convertFromProtoFormat(ApplicationReportProto p) {
  return new ApplicationReportPBImpl(p);
}