|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gigaspaces.log.LogEntries
public class LogEntries
A collection of log entries, including meta information such as process id, host information.
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
LogEntry |
findFileMarkerFor(LogEntry logEntry)
Finds the log entry of type LogEntry.Type.FILE_MARKER
that 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 LogEntry which 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 LogEntry which are of the
prvided type. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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)
Method Detail |
---|
public LogProcessType getProcessType()
public List<LogEntry> getEntries()
public long getPid()
public String getHostName()
public String getHostAddress()
public long getLatestLogFileTimestamp()
public int getTotalLogFiles()
public Iterator<LogEntry> iterator()
iterator
in interface Iterable<LogEntry>
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 Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |