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)); } }
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)); } }
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))); }