Examples of YarnRemoteExceptionPBImpl


Examples of org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl

    @Override
    public RegisterNodeManagerResponse registerNodeManager(
        RegisterNodeManagerRequest request) throws YarnRemoteException {
      if (exception) {
        throw new YarnRemoteExceptionPBImpl("testMessage");
      }
      return recordFactory.newRecordInstance(RegisterNodeManagerResponse.class);
    }
View Full Code Here

Examples of org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl

    @Override
    public NodeHeartbeatResponse nodeHeartbeat(NodeHeartbeatRequest request)
        throws YarnRemoteException {
      if (exception) {
        throw new YarnRemoteExceptionPBImpl("testMessage");
      }
      return recordFactory.newRecordInstance(NodeHeartbeatResponse.class);
    }
View Full Code Here

Examples of org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl

        long callTime = System.currentTimeMillis() - startTime;
        LOG.debug("Call: " + method.getName() + " " + callTime);
      }
      if (response.hasIsError() && response.getIsError() == true) {
        YarnRemoteExceptionPBImpl exception = new YarnRemoteExceptionPBImpl(response.getException());
        exception.fillInStackTrace();
        ServiceException se = new ServiceException(exception);
        throw se;
      }
     
      Message prototype = null;
View Full Code Here

Examples of org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl

      builder.setIsError(true);
      if (e.getCause() instanceof YarnRemoteExceptionPBImpl) {
        builder.setException(((YarnRemoteExceptionPBImpl) e.getCause())
            .getProto());
      } else {
        builder.setException(new YarnRemoteExceptionPBImpl(e).getProto());
      }
      ProtoSpecificRpcResponse response = builder.build();
      return new ProtoSpecificResponseWritable(response);
    }
View Full Code Here

Examples of org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl

      builder.setIsError(true);
      if (e.getCause() instanceof YarnRemoteExceptionPBImpl) {
        builder.setException(((YarnRemoteExceptionPBImpl) e.getCause())
            .getProto());
      } else {
        builder.setException(new YarnRemoteExceptionPBImpl(e).getProto());
      }
      ProtoSpecificRpcResponse response = builder.build();
      return new ProtoSpecificResponseWritable(response);
    }
View Full Code Here

Examples of org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl

        long callTime = System.currentTimeMillis() - startTime;
        LOG.debug("Call: " + method.getName() + " " + callTime);
      }
      if (response.hasIsError() && response.getIsError() == true) {
        YarnRemoteExceptionPBImpl exception = new YarnRemoteExceptionPBImpl(response.getException());
        exception.fillInStackTrace();
        ServiceException se = new ServiceException(exception);
        throw se;
      }
     
      Message prototype = null;
View Full Code Here

Examples of org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl

  private ResourceStatusType convertFromProtoFormat(ResourceStatusTypeProto e) {
    return ResourceStatusType.valueOf(e.name());
  }

  private YarnRemoteExceptionPBImpl convertFromProtoFormat(YarnRemoteExceptionProto p) {
    return new YarnRemoteExceptionPBImpl(p);
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl

    return self;
  }

  @Override
  public YarnRemoteException createYarnRemoteException(String message) {
    return new YarnRemoteExceptionPBImpl(message);
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl

  }

  @Override
  public YarnRemoteException createYarnRemoteException(String message,
      Throwable t) {
    return new YarnRemoteExceptionPBImpl(message, t);
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl

    return new YarnRemoteExceptionPBImpl(message, t);
  }

  @Override
  public YarnRemoteException createYarnRemoteException(Throwable t) {
    return new YarnRemoteExceptionPBImpl(t);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.