Ejemplo n.º 1
0
 public void TruncateAllIntervalStatisticAndTestTables()
 {
     BatchIntervalData bid = new BatchIntervalData();
     bid.TruncateAllIntervalStatisticAndTestTables();
 }
Ejemplo n.º 2
0
        public void RecalculateBatchIntervals()
        {
            // Recalculate intervals for all existing batch data using a new interval size

            // First delete all existing batch intervals and cumulative intervals
            BatchIntervalData bid = new BatchIntervalData();
            //bid.RemoveAllBatchIntervals();
            bid.TruncateAllIntervalStatisticAndTestTables();

            // Get a list of all capture files
            CaptureFileData cfd = new CaptureFileData();

            BindingList<CurrentCaptureFile> captureFiles = new BindingList<CurrentCaptureFile>();
            captureFiles = cfd.GetBatchIds();

            // Create new intervals for each capture file and update the cumulative intervals
            foreach (CurrentCaptureFile file in captureFiles)
            {
                BindingList<PacketInterval> intervals = new BindingList<PacketInterval>();
                intervals = CreateBatchIntervals(file.FileName);
                UpdateCumulativeIntervals(intervals);
                UpdateCaptureBatchParseStatusForRecalculation(file.CaptureBatchId);
            }
        }