Package org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos

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

Related Classes of org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.CanRollBackResponseProto

Copyright © 2018 www.massapicom. 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.