Constructor and Description |
---|
LsfMraLog(pt.lsts.imc.lsf.LsfIndex index,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
advance(long millis)
Advance millis milliseconds in the log
|
protected void |
advanceUntil(long timestamp) |
long |
currentTimeMillis()
The timestamp of the current log entry (first entry by default)
|
pt.lsts.imc.IMCMessage |
firstLogEntry()
Goes back to the first Log Entry and retrieves it
|
pt.lsts.imc.IMCMessageType |
format()
Retrieve the log format as a Neptus message type
|
pt.lsts.imc.IMCMessage |
getCurrentEntry()
Retrieve all messages that have the given timestamp
|
pt.lsts.imc.IMCMessage |
getEntryAtOrAfter(long timestamp) |
pt.lsts.imc.IMCMessage |
getEntryAtOrAfter(long timestamp,
int source) |
pt.lsts.imc.IMCMessage |
getEntryAtOrAfter(long timestamp,
java.lang.String entityName) |
java.util.Collection<pt.lsts.imc.IMCMessage> |
getExactTimeEntries(long timeStampMillis)
Retrieve all messages that have the given timestamp
|
pt.lsts.imc.IMCMessage |
getLastEntry()
Retrieve the last entry in this log
|
int |
getNumberOfEntries()
Retrieve the total number of entries in this log
|
static void |
main(java.lang.String[] args) |
java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
metaInfo()
Retrieve meta-information associated with this log
|
java.lang.String |
name()
Retrieve a name that will identify this log file (like the name of the message)
|
pt.lsts.imc.IMCMessage |
nextLogEntry()
Advance to the next Log entry and retrieve it as a IMCMessage
|
public LsfMraLog(pt.lsts.imc.lsf.LsfIndex index, java.lang.String name)
protected void advanceUntil(long timestamp)
public pt.lsts.imc.IMCMessage getEntryAtOrAfter(long timestamp)
getEntryAtOrAfter
in interface IMraLog
public pt.lsts.imc.IMCMessage getEntryAtOrAfter(long timestamp, java.lang.String entityName)
getEntryAtOrAfter
in interface IMraLog
public pt.lsts.imc.IMCMessage getEntryAtOrAfter(long timestamp, int source)
public java.lang.String name()
IMraLog
public pt.lsts.imc.IMCMessage getLastEntry()
IMraLog
getLastEntry
in interface IMraLog
public pt.lsts.imc.IMCMessageType format()
IMraLog
public java.util.LinkedHashMap<java.lang.String,java.lang.Object> metaInfo()
IMraLog
public long currentTimeMillis()
IMraLog
currentTimeMillis
in interface IMraLog
public pt.lsts.imc.IMCMessage nextLogEntry()
IMraLog
nextLogEntry
in interface IMraLog
public pt.lsts.imc.IMCMessage firstLogEntry()
IMraLog
firstLogEntry
in interface IMraLog
public void advance(long millis)
IMraLog
public pt.lsts.imc.IMCMessage getCurrentEntry()
IMraLog
getCurrentEntry
in interface IMraLog
public java.util.Collection<pt.lsts.imc.IMCMessage> getExactTimeEntries(long timeStampMillis)
IMraLog
getExactTimeEntries
in interface IMraLog
timeStampMillis
- Time stamp, in millisecondspublic int getNumberOfEntries()
IMraLog
getNumberOfEntries
in interface IMraLog
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.