Пример #1
0
 public void NotifyOperatorReceivedRecords(Dataflow.Vertex op, int channelId, int recordsReceived)
 {
     if (this.ReceivedRecords != null)
     {
         this.ReceivedRecords(this, new OperatorReceiveArgs(op.Stage, op.VertexId, channelId, recordsReceived));
     }
 }
Пример #2
0
 public void NotifyOperatorSentRecords(Dataflow.Vertex op, int channelId, int recordsSent)
 {
     if (this.SentRecords != null)
     {
         this.SentRecords(this, new OperatorSendArgs(op.Stage, op.VertexId, channelId, recordsSent));
     }
 }
Пример #3
0
        public Stream GetLoggingOutputStream(Dataflow.Vertex shard)
        {
            int streamNumber = Interlocked.Increment(ref this.streamCounter);

            return(File.OpenWrite(string.Format("log_{0}_{1}-{2}.nad", streamNumber, shard.Stage.StageId, shard.VertexId)));
        }