public class LogEntry extends Object implements Externalizable
| Modifier and Type | Class and Description |
|---|---|
static class |
LogEntry.Type
The type of the log entry.
|
| Constructor and Description |
|---|
LogEntry() |
LogEntry(long position,
LogEntry.Type type,
long timestamp,
String text) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPosition()
Returns the position of the log entry.
|
String |
getText()
Returns the full log text.
|
String |
getTextWithLF()
Returns the full log text with line separator.
|
long |
getTimestamp()
Returns the timestamp this log was taken at.
|
LogEntry.Type |
getType()
Returns the type of the log entry.
|
boolean |
isFileMarker()
Returns
true if the log entry is a file marker (representing the file
where the log was extracted). |
boolean |
isLog()
Returns
true if the log entry is an actual log "line". |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
public LogEntry()
public LogEntry(long position,
LogEntry.Type type,
long timestamp,
String text)
public long getTimestamp()
public long getPosition()
public String getText()
public String getTextWithLF()
public LogEntry.Type getType()
public boolean isLog()
true if the log entry is an actual log "line".public boolean isFileMarker()
true if the log entry is a file marker (representing the file
where the log was extracted).public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © GigaSpaces.