GigaSpaces XAP 9.0 API

com.gigaspaces.log
Class LogEntry

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

public class LogEntry
extends Object
implements Externalizable

Represents a log entry.

Author:
kimchy
See Also:
Serialized Form

Nested Class Summary
static class LogEntry.Type
          The type of the log entry.
 
Constructor Summary
LogEntry()
           
LogEntry(long position, LogEntry.Type type, long timestamp, String text)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogEntry

public LogEntry()

LogEntry

public LogEntry(long position,
                LogEntry.Type type,
                long timestamp,
                String text)
Method Detail

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

GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.