Java 类org.apache.hadoop.hdfs.server.protocol.FenceResponse 实例源码

项目:hadoop    文件:BackupNode.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  LOG.info("Fenced by " + fencerInfo + " with epoch " + epoch);
  throw new UnsupportedOperationException(
      "BackupNode does not support fence");
}
项目:hadoop    文件:JournalProtocolTranslatorPB.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  FenceRequestProto req = FenceRequestProto.newBuilder().setEpoch(epoch)
      .setJournalInfo(PBHelper.convert(journalInfo)).build();
  try {
    FenceResponseProto resp = rpcProxy.fence(NULL_CONTROLLER, req);
    return new FenceResponse(resp.getPreviousEpoch(),
        resp.getLastTransactionId(), resp.getInSync());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:hadoop    文件:JournalProtocolServerSideTranslatorPB.java   
@Override
public FenceResponseProto fence(RpcController controller,
    FenceRequestProto req) throws ServiceException {
  try {
    FenceResponse resp = impl.fence(PBHelper.convert(req.getJournalInfo()), req.getEpoch(),
        req.getFencerInfo());
    return FenceResponseProto.newBuilder().setInSync(resp.isInSync())
        .setLastTransactionId(resp.getLastTransactionId())
        .setPreviousEpoch(resp.getPreviousEpoch()).build();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:aliyun-oss-hadoop-fs    文件:BackupNode.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  LOG.info("Fenced by " + fencerInfo + " with epoch " + epoch);
  throw new UnsupportedOperationException(
      "BackupNode does not support fence");
}
项目:aliyun-oss-hadoop-fs    文件:JournalProtocolTranslatorPB.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  FenceRequestProto req = FenceRequestProto.newBuilder().setEpoch(epoch)
      .setJournalInfo(PBHelper.convert(journalInfo)).build();
  try {
    FenceResponseProto resp = rpcProxy.fence(NULL_CONTROLLER, req);
    return new FenceResponse(resp.getPreviousEpoch(),
        resp.getLastTransactionId(), resp.getInSync());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:aliyun-oss-hadoop-fs    文件:JournalProtocolServerSideTranslatorPB.java   
@Override
public FenceResponseProto fence(RpcController controller,
    FenceRequestProto req) throws ServiceException {
  try {
    FenceResponse resp = impl.fence(PBHelper.convert(req.getJournalInfo()), req.getEpoch(),
        req.getFencerInfo());
    return FenceResponseProto.newBuilder().setInSync(resp.isInSync())
        .setLastTransactionId(resp.getLastTransactionId())
        .setPreviousEpoch(resp.getPreviousEpoch()).build();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:big-c    文件:BackupNode.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  LOG.info("Fenced by " + fencerInfo + " with epoch " + epoch);
  throw new UnsupportedOperationException(
      "BackupNode does not support fence");
}
项目:big-c    文件:JournalProtocolTranslatorPB.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  FenceRequestProto req = FenceRequestProto.newBuilder().setEpoch(epoch)
      .setJournalInfo(PBHelper.convert(journalInfo)).build();
  try {
    FenceResponseProto resp = rpcProxy.fence(NULL_CONTROLLER, req);
    return new FenceResponse(resp.getPreviousEpoch(),
        resp.getLastTransactionId(), resp.getInSync());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:big-c    文件:JournalProtocolServerSideTranslatorPB.java   
@Override
public FenceResponseProto fence(RpcController controller,
    FenceRequestProto req) throws ServiceException {
  try {
    FenceResponse resp = impl.fence(PBHelper.convert(req.getJournalInfo()), req.getEpoch(),
        req.getFencerInfo());
    return FenceResponseProto.newBuilder().setInSync(resp.isInSync())
        .setLastTransactionId(resp.getLastTransactionId())
        .setPreviousEpoch(resp.getPreviousEpoch()).build();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:BackupNode.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  LOG.info("Fenced by " + fencerInfo + " with epoch " + epoch);
  throw new UnsupportedOperationException(
      "BackupNode does not support fence");
}
项目:hadoop-2.6.0-cdh5.4.3    文件:JournalProtocolTranslatorPB.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  FenceRequestProto req = FenceRequestProto.newBuilder().setEpoch(epoch)
      .setJournalInfo(PBHelper.convert(journalInfo)).build();
  try {
    FenceResponseProto resp = rpcProxy.fence(NULL_CONTROLLER, req);
    return new FenceResponse(resp.getPreviousEpoch(),
        resp.getLastTransactionId(), resp.getInSync());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:JournalProtocolServerSideTranslatorPB.java   
@Override
public FenceResponseProto fence(RpcController controller,
    FenceRequestProto req) throws ServiceException {
  try {
    FenceResponse resp = impl.fence(PBHelper.convert(req.getJournalInfo()), req.getEpoch(),
        req.getFencerInfo());
    return FenceResponseProto.newBuilder().setInSync(resp.isInSync())
        .setLastTransactionId(resp.getLastTransactionId())
        .setPreviousEpoch(resp.getPreviousEpoch()).build();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:hadoop-plus    文件:BackupNode.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  LOG.info("Fenced by " + fencerInfo + " with epoch " + epoch);
  throw new UnsupportedOperationException(
      "BackupNode does not support fence");
}
项目:hadoop-plus    文件:JournalProtocolTranslatorPB.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  FenceRequestProto req = FenceRequestProto.newBuilder().setEpoch(epoch)
      .setJournalInfo(PBHelper.convert(journalInfo)).build();
  try {
    FenceResponseProto resp = rpcProxy.fence(NULL_CONTROLLER, req);
    return new FenceResponse(resp.getPreviousEpoch(),
        resp.getLastTransactionId(), resp.getInSync());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:hadoop-plus    文件:JournalProtocolServerSideTranslatorPB.java   
@Override
public FenceResponseProto fence(RpcController controller,
    FenceRequestProto req) throws ServiceException {
  try {
    FenceResponse resp = impl.fence(PBHelper.convert(req.getJournalInfo()), req.getEpoch(),
        req.getFencerInfo());
    return FenceResponseProto.newBuilder().setInSync(resp.isInSync())
        .setLastTransactionId(resp.getLastTransactionId())
        .setPreviousEpoch(resp.getPreviousEpoch()).build();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:FlexMap    文件:BackupNode.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  LOG.info("Fenced by " + fencerInfo + " with epoch " + epoch);
  throw new UnsupportedOperationException(
      "BackupNode does not support fence");
}
项目:FlexMap    文件:JournalProtocolTranslatorPB.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  FenceRequestProto req = FenceRequestProto.newBuilder().setEpoch(epoch)
      .setJournalInfo(PBHelper.convert(journalInfo)).build();
  try {
    FenceResponseProto resp = rpcProxy.fence(NULL_CONTROLLER, req);
    return new FenceResponse(resp.getPreviousEpoch(),
        resp.getLastTransactionId(), resp.getInSync());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:FlexMap    文件:JournalProtocolServerSideTranslatorPB.java   
@Override
public FenceResponseProto fence(RpcController controller,
    FenceRequestProto req) throws ServiceException {
  try {
    FenceResponse resp = impl.fence(PBHelper.convert(req.getJournalInfo()), req.getEpoch(),
        req.getFencerInfo());
    return FenceResponseProto.newBuilder().setInSync(resp.isInSync())
        .setLastTransactionId(resp.getLastTransactionId())
        .setPreviousEpoch(resp.getPreviousEpoch()).build();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:hadoop-TCP    文件:BackupNode.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  LOG.info("Fenced by " + fencerInfo + " with epoch " + epoch);
  throw new UnsupportedOperationException(
      "BackupNode does not support fence");
}
项目:hadoop-TCP    文件:JournalProtocolTranslatorPB.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  FenceRequestProto req = FenceRequestProto.newBuilder().setEpoch(epoch)
      .setJournalInfo(PBHelper.convert(journalInfo)).build();
  try {
    FenceResponseProto resp = rpcProxy.fence(NULL_CONTROLLER, req);
    return new FenceResponse(resp.getPreviousEpoch(),
        resp.getLastTransactionId(), resp.getInSync());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:hadoop-TCP    文件:JournalProtocolServerSideTranslatorPB.java   
@Override
public FenceResponseProto fence(RpcController controller,
    FenceRequestProto req) throws ServiceException {
  try {
    FenceResponse resp = impl.fence(PBHelper.convert(req.getJournalInfo()), req.getEpoch(),
        req.getFencerInfo());
    return FenceResponseProto.newBuilder().setInSync(resp.isInSync())
        .setLastTransactionId(resp.getLastTransactionId())
        .setPreviousEpoch(resp.getPreviousEpoch()).build();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:hardfs    文件:BackupNode.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  LOG.info("Fenced by " + fencerInfo + " with epoch " + epoch);
  throw new UnsupportedOperationException(
      "BackupNode does not support fence");
}
项目:hardfs    文件:JournalProtocolTranslatorPB.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  FenceRequestProto req = FenceRequestProto.newBuilder().setEpoch(epoch)
      .setJournalInfo(PBHelper.convert(journalInfo)).build();
  try {
    FenceResponseProto resp = rpcProxy.fence(NULL_CONTROLLER, req);
    return new FenceResponse(resp.getPreviousEpoch(),
        resp.getLastTransactionId(), resp.getInSync());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:hardfs    文件:JournalProtocolServerSideTranslatorPB.java   
@Override
public FenceResponseProto fence(RpcController controller,
    FenceRequestProto req) throws ServiceException {
  try {
    FenceResponse resp = impl.fence(PBHelper.convert(req.getJournalInfo()), req.getEpoch(),
        req.getFencerInfo());
    return FenceResponseProto.newBuilder().setInSync(resp.isInSync())
        .setLastTransactionId(resp.getLastTransactionId())
        .setPreviousEpoch(resp.getPreviousEpoch()).build();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:hadoop-on-lustre2    文件:BackupNode.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  LOG.info("Fenced by " + fencerInfo + " with epoch " + epoch);
  throw new UnsupportedOperationException(
      "BackupNode does not support fence");
}
项目:hadoop-on-lustre2    文件:JournalProtocolTranslatorPB.java   
@Override
public FenceResponse fence(JournalInfo journalInfo, long epoch,
    String fencerInfo) throws IOException {
  FenceRequestProto req = FenceRequestProto.newBuilder().setEpoch(epoch)
      .setJournalInfo(PBHelper.convert(journalInfo)).build();
  try {
    FenceResponseProto resp = rpcProxy.fence(NULL_CONTROLLER, req);
    return new FenceResponse(resp.getPreviousEpoch(),
        resp.getLastTransactionId(), resp.getInSync());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:hadoop-on-lustre2    文件:JournalProtocolServerSideTranslatorPB.java   
@Override
public FenceResponseProto fence(RpcController controller,
    FenceRequestProto req) throws ServiceException {
  try {
    FenceResponse resp = impl.fence(PBHelper.convert(req.getJournalInfo()), req.getEpoch(),
        req.getFencerInfo());
    return FenceResponseProto.newBuilder().setInSync(resp.isInSync())
        .setLastTransactionId(resp.getLastTransactionId())
        .setPreviousEpoch(resp.getPreviousEpoch()).build();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}