Class LogEntry

java.lang.Object
com.gigaspaces.log.LogEntry
All Implemented Interfaces:
Externalizable, Serializable

public class LogEntry extends Object implements Externalizable
Represents a log entry.
Author:
kimchy
See Also:
  • Constructor Details

    • LogEntry

      public LogEntry()
    • LogEntry

      public LogEntry(long position, LogEntry.Type type, long timestamp, String text)
  • 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

      public String getText()
      Returns the full log text.
    • getTextWithLF

      public String getTextWithLF()
      Returns the full log text with line separator.
    • getType

      public LogEntry.Type getType()
      Returns the type of the log entry.
    • isLog

      public boolean isLog()
      Returns true if the log entry is an actual log "line".
    • isFileMarker

      public boolean isFileMarker()
      Returns true if the log entry is a file marker (representing the file where the log was extracted).
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Throws:
      IOException
    • readExternal

      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
      Specified by:
      readExternal in interface Externalizable
      Throws:
      IOException
      ClassNotFoundException