public class LogEntries extends Object implements Iterable<LogEntry>, Externalizable
| Constructor and Description | 
|---|
| LogEntries()Default constructor for Externalizable readExternal usage | 
| LogEntries(LogProcessType processType,
          List<LogEntry> entries,
          int totalLogFiles,
          long pid,
          long latestTimestamp,
          String hostName,
          String hostAddress) | 
| LogEntries(LogProcessType processType,
          long pid,
          String hostName,
          String hostAddress)Empty LogEntries | 
| Modifier and Type | Method and Description | 
|---|---|
| LogEntry | findFileMarkerFor(LogEntry logEntry)Finds the log entry of type  LogEntry.Type.FILE_MARKERthat
 corresponds the the provided log entry. | 
| List<LogEntry> | getEntries()The list of log entries. | 
| String | getHostAddress()Ths host name of the process responsible for writing the log entries. | 
| String | getHostName()Ths host name of the process responsible for writing the log entries. | 
| long | getLatestLogFileTimestamp()The latest timestamp of change happened to the log file. | 
| long | getPid()The process id of the process responsible for writing the log entries. | 
| LogProcessType | getProcessType()The process type that generated the logs. | 
| int | getTotalLogFiles()Returns the total number of log files scanned. | 
| Iterator<LogEntry> | iterator() | 
| List<LogEntry> | logEntries()Returns a list of all the  LogEntrywhich are of the log type
 (represent an actual log line). | 
| void | readExternal(ObjectInput in) | 
| List<LogEntry> | typeEntries(LogEntry.Type type)Returns a list of all the  LogEntrywhich are of the prvided type. | 
| void | writeExternal(ObjectOutput out) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic LogEntries()
public LogEntries(LogProcessType processType, long pid, String hostName, String hostAddress)
public LogEntries(LogProcessType processType, List<LogEntry> entries, int totalLogFiles, long pid, long latestTimestamp, String hostName, String hostAddress)
public LogProcessType getProcessType()
public long getPid()
public String getHostName()
public String getHostAddress()
public long getLatestLogFileTimestamp()
public int getTotalLogFiles()
public List<LogEntry> logEntries()
LogEntry which are of the log type
 (represent an actual log line).public List<LogEntry> typeEntries(LogEntry.Type type)
LogEntry which are of the prvided type.public LogEntry findFileMarkerFor(LogEntry logEntry)
LogEntry.Type.FILE_MARKER that
 corresponds the the provided log entry. Basically, allows to get information about the actual
 file from where this log entry 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.