| 1 |
/* |
| 2 |
* Argus Client Software. Tools to read, analyze and manage Argus data. |
| 3 |
* Copyright (c) 2000-2024 QoSient, LLC |
| 4 |
* All rights reserved. |
| 5 |
* |
| 6 |
* This program is free software; you can redistribute it and/or modify |
| 7 |
* it under the terms of the GNU General Public License as published by |
| 8 |
* the Free Software Foundation; either version 3, or (at your option) |
| 9 |
* any later version. |
| 10 |
* |
| 11 |
* This program is distributed in the hope that it will be useful, |
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
* GNU General Public License for more details. |
| 15 |
* |
| 16 |
* You should have received a copy of the GNU General Public License |
| 17 |
* along with this program; if not, write to the Free Software |
| 18 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 19 |
* |
| 20 |
* rastream - argus data stream block processor |
| 21 |
* |
| 22 |
* Author: Carter Bullard [email protected] |
| 23 |
* |
| 24 |
*/ |
| 25 |
|
| 26 |
/* |
| 27 |
* $Id: //depot/gargoyle/clients/examples/rastream/README#4 $ |
| 28 |
* $DateTime: 2014/10/07 15:23:30 $ |
| 29 |
* $Change: 2939 $ |
| 30 |
*/ |
| 31 |
|
| 32 |
|
| 33 |
This directory contains source code for rastream.1, a program that extends |
| 34 |
the features of rasplit.1, and acts as a true stream block processor. |
| 35 |
|
| 36 |
The basic idea is that rasplit is good a generating files, but there isn't |
| 37 |
the idea that the file is " done " so that additional processing can be |
| 38 |
done. With time based streaming data, you only need to wait until all the |
| 39 |
time data arrives and you then you can post-process the data. |
| 40 |
|
| 41 |
rastream.1 needs a time delay using the "-B secs" option (block buffer). |
| 42 |
This defines the time period needed to ensure that all the records have |
| 43 |
arrived from all the sensors being collected. If all the argi generate |
| 44 |
5 second flow status records, and they are time synchronized, then the |
| 45 |
block buffer should be just greater than 5 seconds. Because the time of |
| 46 |
day on each sensor is not quite perfect, we add a bit of wobble, so |
| 47 |
values such as "-B 15" are reasonable. |
| 48 |
|
| 49 |
It is VERY important to know that when records are behind the block buffer, |
| 50 |
((record stime) < (current time - Boption)), they will be discarded !!!! |
| 51 |
rastream.1 should be able to figure out what the hold buffer should be, |
| 52 |
and that is for future work. |
| 53 |
|
| 54 |
When rastream.1 is splitting based on time, and the time boundary for the |
| 55 |
file is reached, rastream.1 will wait the hold buffer, and then it will |
| 56 |
close the file, and run a single program, passing the arguements |
| 57 |
"-r filename". This is where you provide the post-processing you want to |
| 58 |
do on the file. Things like aggregation, filtering, indexing, and |
| 59 |
compression are very common. Examples programs are provides in |
| 60 |
./support/Config/rastream.sh. |
| 61 |
|
| 62 |
See the manpage for rastream.1 for details. |