Constructor and Description |
---|
JsfLog(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
void |
advance(long millis)
Advance millis milliseconds in the log
|
long |
currentTimeMillis()
The timestamp of the current log entry (first entry by default)
|
protected void |
finalize() |
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,
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
|
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 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 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
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.