Examples of CanRollBackResponseProto


Examples of org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.CanRollBackResponseProto

  @Override
  public Boolean canRollBack(String journalId, StorageInfo storage,
      StorageInfo prevStorage, int targetLayoutVersion) throws IOException {
    try {
      CanRollBackResponseProto response = rpcProxy.canRollBack(
          NULL_CONTROLLER,
          CanRollBackRequestProto.newBuilder()
            .setJid(convertJournalId(journalId))
            .setStorage(PBHelper.convert(storage))
            .setPrevStorage(PBHelper.convert(prevStorage))
            .setTargetLayoutVersion(targetLayoutVersion)
            .build());
      return response.getCanRollBack();
    } catch (ServiceException e) {
      throw ProtobufHelper.getRemoteException(e);
    }
  }
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.