Exemple #1
0
 public virtual YarnServiceProtos.RunSharedCacheCleanerTaskRequestProto GetProto()
 {
     proto = viaProto ? proto : ((YarnServiceProtos.RunSharedCacheCleanerTaskRequestProto
                                  )builder.Build());
     viaProto = true;
     return(proto);
 }
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public virtual RunSharedCacheCleanerTaskResponse RunCleanerTask(RunSharedCacheCleanerTaskRequest
                                                                 request)
 {
     YarnServiceProtos.RunSharedCacheCleanerTaskRequestProto requestProto = ((RunSharedCacheCleanerTaskRequestPBImpl
                                                                              )request).GetProto();
     try
     {
         return(new RunSharedCacheCleanerTaskResponsePBImpl(proxy.RunCleanerTask(null, requestProto
                                                                                 )));
     }
     catch (ServiceException e)
     {
         RPCUtil.UnwrapAndThrowException(e);
         return(null);
     }
 }
Exemple #3
0
        /// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual YarnServiceProtos.RunSharedCacheCleanerTaskResponseProto RunCleanerTask
            (RpcController controller, YarnServiceProtos.RunSharedCacheCleanerTaskRequestProto
            proto)
        {
            RunSharedCacheCleanerTaskRequestPBImpl request = new RunSharedCacheCleanerTaskRequestPBImpl
                                                                 (proto);

            try
            {
                RunSharedCacheCleanerTaskResponse response = real.RunCleanerTask(request);
                return(((RunSharedCacheCleanerTaskResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }
Exemple #4
0
 public RunSharedCacheCleanerTaskRequestPBImpl(YarnServiceProtos.RunSharedCacheCleanerTaskRequestProto
                                               proto)
 {
     this.proto = proto;
     viaProto   = true;
 }