Package com.gigaspaces.log
Class LogEntry
java.lang.Object
com.gigaspaces.log.LogEntry
- All Implemented Interfaces:
Externalizable,Serializable
Represents a log entry.
- Author:
- kimchy
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLogEntry()LogEntry(long position, LogEntry.Type type, long timestamp, String text) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the position of the log entry.getText()Returns the full log text.Returns the full log text with line separator.longReturns the timestamp this log was taken at.getType()Returns the type of the log entry.booleanReturnstrueif the log entry is a file marker (representing the file where the log was extracted).booleanisLog()Returnstrueif the log entry is an actual log "line".voidvoid
-
Constructor Details
-
LogEntry
public LogEntry() -
LogEntry
-
-
Method Details
-
getTimestamp
public long getTimestamp()Returns the timestamp this log was taken at. -
getPosition
public long getPosition()Returns the position of the log entry. Mainly for internal use. -
getText
Returns the full log text. -
getTextWithLF
Returns the full log text with line separator. -
getType
Returns the type of the log entry. -
isLog
public boolean isLog()Returnstrueif the log entry is an actual log "line". -
isFileMarker
public boolean isFileMarker()Returnstrueif the log entry is a file marker (representing the file where the log was extracted). -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-