| 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 IMraLogpublic pt.lsts.imc.IMCMessage getEntryAtOrAfter(long timestamp,
java.lang.String entityName)
getEntryAtOrAfter in interface IMraLogpublic pt.lsts.imc.IMCMessage getEntryAtOrAfter(long timestamp,
int source)
public java.lang.String name()
IMraLogpublic pt.lsts.imc.IMCMessage getLastEntry()
IMraLoggetLastEntry in interface IMraLogpublic pt.lsts.imc.IMCMessageType format()
IMraLogpublic java.util.LinkedHashMap<java.lang.String,java.lang.Object> metaInfo()
IMraLogpublic long currentTimeMillis()
IMraLogcurrentTimeMillis in interface IMraLogpublic pt.lsts.imc.IMCMessage nextLogEntry()
IMraLognextLogEntry in interface IMraLogpublic pt.lsts.imc.IMCMessage firstLogEntry()
IMraLogfirstLogEntry in interface IMraLogpublic void advance(long millis)
IMraLogpublic pt.lsts.imc.IMCMessage getCurrentEntry()
IMraLoggetCurrentEntry in interface IMraLogpublic java.util.Collection<pt.lsts.imc.IMCMessage> getExactTimeEntries(long timeStampMillis)
IMraLoggetExactTimeEntries in interface IMraLogtimeStampMillis - Time stamp, in millisecondspublic int getNumberOfEntries()
IMraLoggetNumberOfEntries in interface IMraLogpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.