Beispiel #1
0
 public virtual YarnServiceProtos.StopContainersRequestProto GetProto()
 {
     MergeLocalToProto();
     proto = viaProto ? proto : ((YarnServiceProtos.StopContainersRequestProto)builder
                                 .Build());
     viaProto = true;
     return(proto);
 }
Beispiel #2
0
 private void MergeLocalToProto()
 {
     if (viaProto)
     {
         MaybeInitBuilder();
     }
     MergeLocalToBuilder();
     proto    = ((YarnServiceProtos.StopContainersRequestProto)builder.Build());
     viaProto = true;
 }
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public virtual StopContainersResponse StopContainers(StopContainersRequest requests
                                                      )
 {
     YarnServiceProtos.StopContainersRequestProto requestProto = ((StopContainersRequestPBImpl
                                                                   )requests).GetProto();
     try
     {
         return(new StopContainersResponsePBImpl(proxy.StopContainers(null, requestProto)));
     }
     catch (ServiceException e)
     {
         RPCUtil.UnwrapAndThrowException(e);
         return(null);
     }
 }
Beispiel #4
0
 public StopContainersRequestPBImpl(YarnServiceProtos.StopContainersRequestProto proto
                                    )
 {
     this.proto = proto;
     viaProto   = true;
 }
Beispiel #5
0
        /// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual YarnServiceProtos.StopContainersResponseProto StopContainers(RpcController
                                                                                    arg0, YarnServiceProtos.StopContainersRequestProto proto)
        {
            StopContainersRequestPBImpl request = new StopContainersRequestPBImpl(proto);

            try
            {
                StopContainersResponse response = real.StopContainers(request);
                return(((StopContainersResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }