Package org.glassfish.admin.amx.logging
Class LogQueryResultImpl
- java.lang.Object
-
- org.glassfish.admin.amx.logging.LogQueryResultImpl
-
- All Implemented Interfaces:
LogQueryResult
@Taxonomy(stability=EXPERIMENTAL) public final class LogQueryResultImpl extends Object implements LogQueryResult
INTERNAL USE ONLY--not part of the API- Since:
- AS 9.0
-
-
Constructor Summary
Constructors Constructor Description LogQueryResultImpl(String[] fieldNames, LogQueryEntry[] entries)
LogQueryResultImpl(List<Serializable[]> records)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object rhs)
LogQueryEntry[]
getEntries()
Return all log entries found by the query not including the field headers.String[]
getFieldNames()
Get field names for each field of aLogQueryEntry
.int
hashCode()
String
toString()
Output a tab-delimited String with a header line.
-
-
-
Constructor Detail
-
LogQueryResultImpl
public LogQueryResultImpl(String[] fieldNames, LogQueryEntry[] entries)
-
LogQueryResultImpl
public LogQueryResultImpl(List<Serializable[]> records)
Instantiate using result fromLogQuery.queryServerLog(java.lang.String, long, boolean, int, java.lang.Long, java.lang.Long, java.lang.String, java.util.Set<java.lang.String>, java.util.List<javax.management.Attribute>, java.lang.String)
. The first Object[] is a String[] of the field names. Subsequent Object[] are the data values.
-
-
Method Detail
-
getFieldNames
public String[] getFieldNames()
Description copied from interface:LogQueryResult
Get field names for each field of aLogQueryEntry
. Log entries in the server log file are of the form:
[#|DATE|LEVEL|PRODUCT_NAME|MODULE|NAME_VALUE_PAIRS|MESSAGE|#]
The metadata contains most of these fields, but does contain the PRODUCT_NAME or '#' columns.- Specified by:
getFieldNames
in interfaceLogQueryResult
-
getEntries
public LogQueryEntry[] getEntries()
Description copied from interface:LogQueryResult
Return all log entries found by the query not including the field headers.- Specified by:
getEntries
in interfaceLogQueryResult
-
toString
public String toString()
Output a tab-delimited String with a header line. Each subsequent line represents another log record.
-
-