GetProto()
 {
     proto = viaProto ? proto : ((YarnServerResourceManagerServiceProtos.RefreshSuperUserGroupsConfigurationRequestProto
                                  )builder.Build());
     viaProto = true;
     return(proto);
 }
Exemplo n.º 2
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public virtual RefreshSuperUserGroupsConfigurationResponse RefreshSuperUserGroupsConfiguration
     (RefreshSuperUserGroupsConfigurationRequest request)
 {
     YarnServerResourceManagerServiceProtos.RefreshSuperUserGroupsConfigurationRequestProto
         requestProto = ((RefreshSuperUserGroupsConfigurationRequestPBImpl)request).GetProto
                            ();
     try
     {
         return(new RefreshSuperUserGroupsConfigurationResponsePBImpl(proxy.RefreshSuperUserGroupsConfiguration
                                                                          (null, requestProto)));
     }
     catch (ServiceException e)
     {
         RPCUtil.UnwrapAndThrowException(e);
         return(null);
     }
 }
        RefreshSuperUserGroupsConfiguration(RpcController controller, YarnServerResourceManagerServiceProtos.RefreshSuperUserGroupsConfigurationRequestProto
                                            proto)
        {
            RefreshSuperUserGroupsConfigurationRequestPBImpl request = new RefreshSuperUserGroupsConfigurationRequestPBImpl
                                                                           (proto);

            try
            {
                RefreshSuperUserGroupsConfigurationResponse response = real.RefreshSuperUserGroupsConfiguration
                                                                           (request);
                return(((RefreshSuperUserGroupsConfigurationResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }
 public RefreshSuperUserGroupsConfigurationRequestPBImpl(YarnServerResourceManagerServiceProtos.RefreshSuperUserGroupsConfigurationRequestProto
                                                         proto)
 {
     this.proto = proto;
     viaProto   = true;
 }