Package org.apache.hadoop.yarn.api.protocolrecords.impl.pb

Examples of org.apache.hadoop.yarn.api.protocolrecords.impl.pb.GetApplicationsRequestPBImpl


  @Override
  public GetApplicationsResponseProto getApplications(
      RpcController controller, GetApplicationsRequestProto proto)
      throws ServiceException {
    GetApplicationsRequestPBImpl request =
      new GetApplicationsRequestPBImpl(proto);
    try {
      GetApplicationsResponse response = real.getApplications(request);
      return ((GetApplicationsResponsePBImpl)response).getProto();
    } catch (YarnException e) {
      throw new ServiceException(e);
View Full Code Here


    request.setUsers(users);
   
    ApplicationsRequestScope scope = ApplicationsRequestScope.ALL;
    request.setScope(scope);
   
    GetApplicationsRequest requestFromProto = new GetApplicationsRequestPBImpl(
        ((GetApplicationsRequestPBImpl)request).getProto());
   
    // verify all properties are the same as original request
    Assert.assertEquals(
        "ApplicationStates from proto is not the same with original request",
        requestFromProto.getApplicationStates(), appStates);
   
    Assert.assertEquals(
        "ApplicationTags from proto is not the same with original request",
        requestFromProto.getApplicationTags(), tags);
   
    Assert.assertEquals(
        "ApplicationTypes from proto is not the same with original request",
        requestFromProto.getApplicationTypes(), types);
   
    Assert.assertEquals(
        "StartRange from proto is not the same with original request",
        requestFromProto.getStartRange(), new LongRange(startBegin, startEnd));
   
    Assert.assertEquals(
        "FinishRange from proto is not the same with original request",
        requestFromProto.getFinishRange(), new LongRange(finishBegin, finishEnd));
   
    Assert.assertEquals(
        "Limit from proto is not the same with original request",
        requestFromProto.getLimit(), limit);
   
    Assert.assertEquals(
        "Queues from proto is not the same with original request",
        requestFromProto.getQueues(), queues);
   
    Assert.assertEquals(
        "Users from proto is not the same with original request",
        requestFromProto.getUsers(), users);
  }
View Full Code Here

  @Override
  public GetApplicationsResponseProto getApplications(
      RpcController controller, GetApplicationsRequestProto proto)
      throws ServiceException {
    GetApplicationsRequestPBImpl request =
      new GetApplicationsRequestPBImpl(proto);
    try {
      GetApplicationsResponse response = real.getApplications(request);
      return ((GetApplicationsResponsePBImpl)response).getProto();
    } catch (YarnException e) {
      throw new ServiceException(e);
View Full Code Here

  }

  @Override
  public GetApplicationsResponseProto getApplications(RpcController controller,
      GetApplicationsRequestProto proto) throws ServiceException {
    GetApplicationsRequestPBImpl request =
        new GetApplicationsRequestPBImpl(proto);
    try {
      GetApplicationsResponse response = real.getApplications(request);
      return ((GetApplicationsResponsePBImpl) response).getProto();
    } catch (YarnException e) {
      throw new ServiceException(e);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.yarn.api.protocolrecords.impl.pb.GetApplicationsRequestPBImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.