Beispiel #1
0
 public virtual YarnServiceProtos.KillApplicationRequestProto GetProto()
 {
     MergeLocalToProto();
     proto = viaProto ? proto : ((YarnServiceProtos.KillApplicationRequestProto)builder
                                 .Build());
     viaProto = true;
     return(proto);
 }
Beispiel #2
0
 private void MergeLocalToProto()
 {
     if (viaProto)
     {
         MaybeInitBuilder();
     }
     MergeLocalToBuilder();
     proto    = ((YarnServiceProtos.KillApplicationRequestProto)builder.Build());
     viaProto = true;
 }
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public virtual KillApplicationResponse ForceKillApplication(KillApplicationRequest
                                                             request)
 {
     YarnServiceProtos.KillApplicationRequestProto requestProto = ((KillApplicationRequestPBImpl
                                                                    )request).GetProto();
     try
     {
         return(new KillApplicationResponsePBImpl(proxy.ForceKillApplication(null, requestProto
                                                                             )));
     }
     catch (ServiceException e)
     {
         RPCUtil.UnwrapAndThrowException(e);
         return(null);
     }
 }
        /// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual YarnServiceProtos.KillApplicationResponseProto ForceKillApplication
            (RpcController arg0, YarnServiceProtos.KillApplicationRequestProto proto)
        {
            KillApplicationRequestPBImpl request = new KillApplicationRequestPBImpl(proto);

            try
            {
                KillApplicationResponse response = real.ForceKillApplication(request);
                return(((KillApplicationResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }
Beispiel #5
0
 public KillApplicationRequestPBImpl(YarnServiceProtos.KillApplicationRequestProto
                                     proto)
 {
     this.proto = proto;
     viaProto   = true;
 }