当前位置: 首页>>代码示例>>Java>>正文


Java RPCUtil.unwrapAndThrowException方法代码示例

本文整理汇总了Java中org.apache.hadoop.yarn.ipc.RPCUtil.unwrapAndThrowException方法的典型用法代码示例。如果您正苦于以下问题:Java RPCUtil.unwrapAndThrowException方法的具体用法?Java RPCUtil.unwrapAndThrowException怎么用?Java RPCUtil.unwrapAndThrowException使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.hadoop.yarn.ipc.RPCUtil的用法示例。


在下文中一共展示了RPCUtil.unwrapAndThrowException方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: submitApplication

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public SubmitApplicationResponse submitApplication(
    SubmitApplicationRequest request) throws YarnException,
    IOException {
  SubmitApplicationRequestProto requestProto =
      ((SubmitApplicationRequestPBImpl) request).getProto();
  try {
    return new SubmitApplicationResponsePBImpl(proxy.submitApplication(null,
      requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:15,代码来源:ApplicationClientProtocolPBClientImpl.java

示例2: allocate

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public AllocateResponse allocate(AllocateRequest request)
    throws YarnException, IOException {
  AllocateRequestProto requestProto =
      ((AllocateRequestPBImpl) request).getProto();
  try {
    return new AllocateResponsePBImpl(proxy.allocate(null, requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:13,代码来源:ApplicationMasterProtocolPBClientImpl.java

示例3: getApplications

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public GetApplicationsResponse getApplications(
    GetApplicationsRequest request) throws YarnException,
    IOException {
  GetApplicationsRequestProto requestProto =
      ((GetApplicationsRequestPBImpl) request).getProto();
  try {
    return new GetApplicationsResponsePBImpl(proxy.getApplications(
      null, requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:15,代码来源:ApplicationClientProtocolPBClientImpl.java

示例4: canUpload

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public SCMUploaderCanUploadResponse canUpload(
    SCMUploaderCanUploadRequest request) throws YarnException, IOException {
  SCMUploaderCanUploadRequestProto requestProto =
      ((SCMUploaderCanUploadRequestPBImpl)request).getProto();
  try {
    return new SCMUploaderCanUploadResponsePBImpl(proxy.canUpload(null,
        requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:14,代码来源:SCMUploaderProtocolPBClientImpl.java

示例5: removeFromClusterNodeLabels

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public RemoveFromClusterNodeLabelsResponse removeFromClusterNodeLabels(
    RemoveFromClusterNodeLabelsRequest request) throws YarnException,
    IOException {
  RemoveFromClusterNodeLabelsRequestProto requestProto =
      ((RemoveFromClusterNodeLabelsRequestPBImpl) request).getProto();
  try {
    return new RemoveFromClusterNodeLabelsResponsePBImpl(
        proxy.removeFromClusterNodeLabels(null, requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:15,代码来源:ResourceManagerAdministrationProtocolPBClientImpl.java

示例6: getClusterMetrics

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public GetClusterMetricsResponse getClusterMetrics(
    GetClusterMetricsRequest request) throws YarnException,
    IOException {
  GetClusterMetricsRequestProto requestProto =
      ((GetClusterMetricsRequestPBImpl) request).getProto();
  try {
    return new GetClusterMetricsResponsePBImpl(proxy.getClusterMetrics(null,
      requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:15,代码来源:ApplicationClientProtocolPBClientImpl.java

示例7: replaceLabelsOnNode

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public ReplaceLabelsOnNodeResponse replaceLabelsOnNode(
    ReplaceLabelsOnNodeRequest request) throws YarnException, IOException {
  ReplaceLabelsOnNodeRequestProto requestProto =
      ((ReplaceLabelsOnNodeRequestPBImpl) request).getProto();
  try {
    return new ReplaceLabelsOnNodeResponsePBImpl(proxy.replaceLabelsOnNodes(
        null, requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:14,代码来源:ResourceManagerAdministrationProtocolPBClientImpl.java

示例8: runCleanerTask

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public RunSharedCacheCleanerTaskResponse runCleanerTask(
    RunSharedCacheCleanerTaskRequest request) throws YarnException,
    IOException {
  YarnServiceProtos.RunSharedCacheCleanerTaskRequestProto requestProto =
      ((RunSharedCacheCleanerTaskRequestPBImpl) request).getProto();
  try {
    return new RunSharedCacheCleanerTaskResponsePBImpl(proxy.runCleanerTask(null,
        requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:15,代码来源:SCMAdminProtocolPBClientImpl.java

示例9: notify

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public SCMUploaderNotifyResponse notify(SCMUploaderNotifyRequest request)
    throws YarnException, IOException {
  SCMUploaderNotifyRequestProto requestProto =
      ((SCMUploaderNotifyRequestPBImpl) request).getProto();
  try {
    return new SCMUploaderNotifyResponsePBImpl(proxy.notify(null,
        requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:14,代码来源:SCMUploaderProtocolPBClientImpl.java

示例10: getClusterNodeLabels

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public GetClusterNodeLabelsResponse getClusterNodeLabels(
    GetClusterNodeLabelsRequest request) throws YarnException, IOException {
    GetClusterNodeLabelsRequestProto
      requestProto =
      ((GetClusterNodeLabelsRequestPBImpl) request).getProto();
  try {
    return new GetClusterNodeLabelsResponsePBImpl(proxy.getClusterNodeLabels(
        null, requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:15,代码来源:ApplicationClientProtocolPBClientImpl.java

示例11: getContainerReport

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public GetContainerReportResponse getContainerReport(
    GetContainerReportRequest request) throws YarnException, IOException {
  GetContainerReportRequestProto requestProto =
      ((GetContainerReportRequestPBImpl) request).getProto();
  try {
    return new GetContainerReportResponsePBImpl(proxy.getContainerReport(
      null, requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:14,代码来源:ApplicationClientProtocolPBClientImpl.java

示例12: getNewApplication

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public GetNewApplicationResponse getNewApplication(
    GetNewApplicationRequest request) throws YarnException,
    IOException {
  GetNewApplicationRequestProto requestProto =
      ((GetNewApplicationRequestPBImpl) request).getProto();
  try {
    return new GetNewApplicationResponsePBImpl(proxy.getNewApplication(null,
      requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:15,代码来源:ApplicationClientProtocolPBClientImpl.java

示例13: refreshUserToGroupsMappings

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public RefreshUserToGroupsMappingsResponse refreshUserToGroupsMappings(
    RefreshUserToGroupsMappingsRequest request) throws YarnException,
    IOException {
  RefreshUserToGroupsMappingsRequestProto requestProto = 
    ((RefreshUserToGroupsMappingsRequestPBImpl)request).getProto();
  try {
    return new RefreshUserToGroupsMappingsResponsePBImpl(
        proxy.refreshUserToGroupsMappings(null, requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:15,代码来源:ResourceManagerAdministrationProtocolPBClientImpl.java

示例14: use

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public UseSharedCacheResourceResponse use(
    UseSharedCacheResourceRequest request) throws YarnException, IOException {
  UseSharedCacheResourceRequestProto requestProto =
      ((UseSharedCacheResourceRequestPBImpl) request).getProto();
  try {
    return new UseSharedCacheResourceResponsePBImpl(proxy.use(null,
        requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:14,代码来源:ClientSCMProtocolPBClientImpl.java

示例15: submitReservation

import org.apache.hadoop.yarn.ipc.RPCUtil; //导入方法依赖的package包/类
@Override
public ReservationSubmissionResponse submitReservation(ReservationSubmissionRequest request)
    throws YarnException, IOException {
  ReservationSubmissionRequestProto requestProto =
      ((ReservationSubmissionRequestPBImpl) request).getProto();
  try {
    return new ReservationSubmissionResponsePBImpl(proxy.submitReservation(null,
        requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:14,代码来源:ApplicationClientProtocolPBClientImpl.java


注:本文中的org.apache.hadoop.yarn.ipc.RPCUtil.unwrapAndThrowException方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。