Beispiel #1
0
 /// <exception cref="System.IO.IOException"/>
 public override void RequestShortCircuitShm(string clientName)
 {
     DataTransferProtos.ShortCircuitShmRequestProto.Builder builder = DataTransferProtos.ShortCircuitShmRequestProto
                                                                      .NewBuilder().SetClientName(clientName);
     if (Trace.IsTracing())
     {
         Span s = Trace.CurrentSpan();
         builder.SetTraceInfo(DataTransferProtos.DataTransferTraceInfoProto.NewBuilder().SetTraceId
                                  (s.GetTraceId()).SetParentId(s.GetSpanId()));
     }
     DataTransferProtos.ShortCircuitShmRequestProto proto = ((DataTransferProtos.ShortCircuitShmRequestProto
                                                              )builder.Build());
     Send(@out, OP.RequestShortCircuitShm, proto);
 }
Beispiel #2
0
        /// <summary>
        /// Receive
        /// <see cref="OP.RequestShortCircuitShm"/>
        ///
        /// </summary>
        /// <exception cref="System.IO.IOException"/>
        private void OpRequestShortCircuitShm(DataInputStream @in)
        {
            DataTransferProtos.ShortCircuitShmRequestProto proto = DataTransferProtos.ShortCircuitShmRequestProto
                                                                   .ParseFrom(PBHelper.VintPrefixed(@in));
            TraceScope traceScope = DataTransferProtoUtil.ContinueTraceSpan(proto.GetTraceInfo
                                                                                (), proto.GetType().Name);

            try
            {
                RequestShortCircuitShm(proto.GetClientName());
            }
            finally
            {
                if (traceScope != null)
                {
                    traceScope.Close();
                }
            }
        }