public class SimulatorParser extends LogParser implements ExitCleaning
This can be used to fill the simulator done table simdone.
LogParser.Tail| Modifier and Type | Field and Description |
|---|---|
static String |
DAU1
How a daughter is traced.
|
static String |
DAU2 |
private long |
fake |
static String |
FIN1
This is the start of the line we scan for the pick end.
|
static String |
FIN2
This is the start of the line we scan for the pick end.
|
static String |
HEAD
How an pick procedure is started.
|
private Random |
r |
private HistorySql |
simhist |
static String |
UNIQUE
How a unique line starts .
|
DEFDATEFORMAT, KEY_DATEFORMAT, KEY_HASHOSTKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
SimulatorParser(Map<String,String> prop)
Constructs a new log parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exit() |
private void |
foundPick(String object,
HistoryAware.Pick pick) |
static void |
main(String[] arg)
Reads the log file on the first command line argument and parser all
offsets out of it.
|
Map<String,List<HistoryAware.Pick>> |
scan(File f)
Extracts the unique id plus a required offset from a log file
|
dateFilter, dateFilter, dateFilter, dateFilter, dateFilter, dateFilter, levelFilter, read, read, readFile, readFile, readList, readTail, sshTailaugment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringpublic static final String HEAD
public static final String DAU1
public static final String DAU2
public static final String UNIQUE
public static final String FIN1
public static final String FIN2
private long fake
private Random r
private HistorySql simhist
public SimulatorParser(Map<String,String> prop) throws InitException
InitExceptionpublic Map<String,List<HistoryAware.Pick>> scan(File f) throws ParseException
ParseExceptionprivate void foundPick(String object, HistoryAware.Pick pick)
public void exit()
exit in interface ExitCleaningpublic static void main(String[] arg) throws ParseException, InitException
InitExceptionParseException