/// <seealso cref="Org.Apache.Hadoop.Hdfs.Server.Protocol.JournalProtocol.StartLogSegment(Org.Apache.Hadoop.Hdfs.Server.Protocol.JournalInfo, long, long) /// "></seealso> /// <exception cref="Com.Google.Protobuf.ServiceException"/> public virtual JournalProtocolProtos.StartLogSegmentResponseProto StartLogSegment (RpcController controller, JournalProtocolProtos.StartLogSegmentRequestProto req ) { try { impl.StartLogSegment(PBHelper.Convert(req.GetJournalInfo()), req.GetEpoch(), req. GetTxid()); } catch (IOException e) { throw new ServiceException(e); } return(VoidStartLogSegmentResponse); }
/// <exception cref="System.IO.IOException"/> public virtual void StartLogSegment(JournalInfo journalInfo, long epoch, long txid ) { JournalProtocolProtos.StartLogSegmentRequestProto req = ((JournalProtocolProtos.StartLogSegmentRequestProto )JournalProtocolProtos.StartLogSegmentRequestProto.NewBuilder().SetJournalInfo(PBHelper .Convert(journalInfo)).SetEpoch(epoch).SetTxid(txid).Build()); try { rpcProxy.StartLogSegment(NullController, req); } catch (ServiceException e) { throw ProtobufHelper.GetRemoteException(e); } }