Interface ServerInstanceLogRecordList
- 
- All Superinterfaces:
- java.lang.Iterable<RepositoryLogRecord>
 
 public interface ServerInstanceLogRecordList extends java.lang.Iterable<RepositoryLogRecord> A list of log records originating from one process.Example of intended usage: for (ServerInstanceLogRecordList pid: reader.getLogListForCurrentServerInstance()) { Properties header = pid.getHeader(); <process header> for (RepositoryLogRecord record: pid) { <process record> } pid.close(); }MergedRepositoryTake special note of the getChildren method on theServerInstanceLogRecordListobject. An example of getting all records for the controller and all servants on z/OS could look like this:for (ServerInstanceLogRecordList pid: reader.getLogListForCurrentServerInstance()) { Properties header = pid.getHeader(); <process header> for (RepositoryLogRecord record: pid) { // This PID is the controller <process controller record> } MapservantMap = pid.getChildren() ; Iterator servantKeys = servantMap.keySet().iterator() ; while (servantKeys.hasNext()) { // Map label has key information to identify which child process. This can be used to get just one servant, // here we are going to print the results for all servants String label = servantKeys.next() ; ServerInstanceLogRecordList servantRecs = servantMap.get(label) ; // Extract the child process ServerInstanceLogRecordList Properties subHeader = servantRecs.getHeader() ; for (RepositoryLogRecord subRec: servantRecs) { // Pull all records for this servant <process servant record> } servantRecs.close() ; } pid.close(); } 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringHEADER_ADDRESSSPACEIDstatic java.lang.StringHEADER_HOSTADDRESSstatic java.lang.StringHEADER_HOSTNAMEstatic java.lang.StringHEADER_HOSTTYPEstatic java.lang.StringHEADER_ISSERVERstatic java.lang.StringHEADER_ISTHINCLIENTstatic java.lang.StringHEADER_ISZOSstatic java.lang.StringHEADER_JOBIDstatic java.lang.StringHEADER_JOBNAMEstatic java.lang.StringHEADER_PROCESSIDstatic java.lang.StringHEADER_PROCESSNAMEstatic java.lang.StringHEADER_SERVER_LOCALE_COUNTRYstatic java.lang.StringHEADER_SERVER_LOCALE_LANGUAGEstatic java.lang.StringHEADER_SERVER_NAMEstatic java.lang.StringHEADER_SERVER_TIMEZONEstatic java.lang.StringHEADER_SERVERNAMEstatic java.lang.StringHEADER_SYSTEMNAMEstatic java.lang.StringHEADER_TCBADDRESSNAMEstatic java.lang.StringHEADER_VERBOSE_VERSIONstatic java.lang.StringHEADER_VERSION
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,ServerInstanceLogRecordList>getChildren()Returns the children for the process of a ServerInstanceLogRecordList.java.util.PropertiesgetHeader()Returns the header belonging to records from this process.java.util.DategetStartTime()Returns start time of this instance.java.lang.Iterable<RepositoryLogRecord>range(int offset, int length)Returns a subset of records from this query result.
 
- 
- 
- 
Field Detail- 
HEADER_VERSIONstatic final java.lang.String HEADER_VERSION - See Also:
- Constant Field Values
 
 - 
HEADER_VERBOSE_VERSIONstatic final java.lang.String HEADER_VERBOSE_VERSION - See Also:
- Constant Field Values
 
 - 
HEADER_SERVER_NAMEstatic final java.lang.String HEADER_SERVER_NAME - See Also:
- Constant Field Values
 
 - 
HEADER_PROCESSIDstatic final java.lang.String HEADER_PROCESSID - See Also:
- Constant Field Values
 
 - 
HEADER_SERVER_TIMEZONEstatic final java.lang.String HEADER_SERVER_TIMEZONE - See Also:
- Constant Field Values
 
 - 
HEADER_SERVER_LOCALE_LANGUAGEstatic final java.lang.String HEADER_SERVER_LOCALE_LANGUAGE - See Also:
- Constant Field Values
 
 - 
HEADER_SERVER_LOCALE_COUNTRYstatic final java.lang.String HEADER_SERVER_LOCALE_COUNTRY - See Also:
- Constant Field Values
 
 - 
HEADER_HOSTNAMEstatic final java.lang.String HEADER_HOSTNAME - See Also:
- Constant Field Values
 
 - 
HEADER_HOSTADDRESSstatic final java.lang.String HEADER_HOSTADDRESS - See Also:
- Constant Field Values
 
 - 
HEADER_HOSTTYPEstatic final java.lang.String HEADER_HOSTTYPE - See Also:
- Constant Field Values
 
 - 
HEADER_ISZOSstatic final java.lang.String HEADER_ISZOS - See Also:
- Constant Field Values
 
 - 
HEADER_ISSERVERstatic final java.lang.String HEADER_ISSERVER - See Also:
- Constant Field Values
 
 - 
HEADER_ISTHINCLIENTstatic final java.lang.String HEADER_ISTHINCLIENT - See Also:
- Constant Field Values
 
 - 
HEADER_PROCESSNAMEstatic final java.lang.String HEADER_PROCESSNAME - See Also:
- Constant Field Values
 
 - 
HEADER_ADDRESSSPACEIDstatic final java.lang.String HEADER_ADDRESSSPACEID - See Also:
- Constant Field Values
 
 - 
HEADER_JOBIDstatic final java.lang.String HEADER_JOBID - See Also:
- Constant Field Values
 
 - 
HEADER_JOBNAMEstatic final java.lang.String HEADER_JOBNAME - See Also:
- Constant Field Values
 
 - 
HEADER_SYSTEMNAMEstatic final java.lang.String HEADER_SYSTEMNAME - See Also:
- Constant Field Values
 
 - 
HEADER_TCBADDRESSNAMEstatic final java.lang.String HEADER_TCBADDRESSNAME - See Also:
- Constant Field Values
 
 - 
HEADER_SERVERNAMEstatic final java.lang.String HEADER_SERVERNAME - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getHeaderjava.util.Properties getHeader() Returns the header belonging to records from this process. These properties help describe the process and environment that the log records originated from.- Returns:
- properties belonging to all records in this list.
 
 - 
rangejava.lang.Iterable<RepositoryLogRecord> range(int offset, int length) Returns a subset of records from this query result.Example of use: - range(offset, length)returns iterator over the- lengthrecords after skipping first- offsetrecords.
- range(offset, -1)returns iterator over the rest of records after skipping first- offsetrecords.
- range(-offset, length)returns iterator over the- lengthrecords starting with- offsetrecord before last.
- range(0, -1)returns iterator over all records in the result.
 - Parameters:
- offset- the number of records to skip from the beginning of the result. A negative value means to skip- -offsetrecords from the end of the result. Values greater than- #size()will result in an empty subset being returned.
- length- the maximum number of records to include in this subset. A negative value means that all records starting from the- offsetare returned.
- Returns:
- Iterable instance listing records in the subset.
 
 - 
getChildrenjava.util.Map<java.lang.String,ServerInstanceLogRecordList> getChildren() Returns the children for the process of a ServerInstanceLogRecordList. ServerInstanceLogRecordList represents the log records for a given process. A process with subprocesses will return a map with each child subprocess represented by a ServerInstanceLogRecordList. The key to each entry is computed internally, and the caller must invoke this method in order to obtain the valid key for a specific entry.- Returns:
- the map that represents the children. Each child subprocess is an entry in the map.
 
 - 
getStartTimejava.util.Date getStartTime() Returns start time of this instance. Start time is the time of the first log or trace record written by this instance.- Returns:
- start time as a Date object or nullif time can not be obtained.
 
 
- 
 
-