Package be.cylab.mark.data
Class FileSource
- java.lang.Object
-
- be.cylab.mark.data.FileSource
-
- All Implemented Interfaces:
DataAgentInterface
public class FileSource extends Object implements DataAgentInterface
A generic data agent that reads a file and parse it line by line using a named regular expression. This data agent is usually used for testing detection agents, or to run a demo. This data source takes 2 mandatory parameters:- file : the file to read
- regex : the named regex to use
- Author:
- Thibault Debatty
-
-
Constructor Summary
Constructors Constructor Description FileSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RawData
parse(String line)
void
run(DataAgentProfile profile, ServerInterface datastore)
-
-
-
Method Detail
-
run
public final void run(DataAgentProfile profile, ServerInterface datastore) throws Throwable
- Specified by:
run
in interfaceDataAgentInterface
- Parameters:
profile
-datastore
-- Throws:
Throwable
- if something went wrong...
-
-