예제 #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 vertex)
        {
            int streamNumber = Interlocked.Increment(ref this.streamCounter);

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