Chapter 3. The Pre-Processor

Table of Contents

3. The Pre-Processor
3.1. What is the Pre-Processor?
3.2. Compiling
3.3. Running

 

3.1. What is the Pre-Processor?

The Pre-Processor is a tool that takes in one or more plain text visualization log files generated by ODIN and returns a single GZIPed log file that has all of the log events combined and sorted by timestamp. The output ODIN Network Activity (ONA) file should have the extension .ona.gz, and can be opened with the Network Viewer.

In future iterations of this project, the Pre-Processor could be used to offload statistical processing from the Network Viewer so it would not have to be done in real time while drawing the visualization.

3.2. Compiling

Compile the Pre-Processor using the following command:

	$ javac Merger.java Record.java LogFile.java
		

3.3. Running

The Merger class of the Pre-Processor takes in source files and the name of the destination file, and can be run as follows:

	$ java Merger [source files] [destination file]
		

For example:

	$ java Merger sqrt1.log sqrt2.log sqrt3.log VisualizationLog.ona.gz