Java EE 5 SDK

com.sun.appserv.management.ext.logging
Class LogQueryResultImpl

java.lang.Object
  extended by com.sun.appserv.management.ext.logging.LogQueryResultImpl
All Implemented Interfaces:
LogQueryResult

public final class LogQueryResultImpl
extends Object
implements LogQueryResult

INTERNAL USE ONLY--not part of the API

Since:
AS 9.0

Constructor Summary
LogQueryResultImpl(List<Serializable[]> records)
          Instantiate using result from LogQuery.queryServerLog(java.lang.String, long, boolean, int, java.lang.Long, java.lang.Long, java.lang.String, java.util.Set, java.util.List).
LogQueryResultImpl(String[] fieldNames, LogQueryEntry[] entries)
           
 
Method Summary
 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 a LogQueryEntry.
 int hashCode()
           
 String toString()
          Output a tab-delimited String with a header line.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogQueryResultImpl

public LogQueryResultImpl(String[] fieldNames,
                          LogQueryEntry[] entries)

LogQueryResultImpl

public LogQueryResultImpl(List<Serializable[]> records)
Instantiate using result from LogQuery.queryServerLog(java.lang.String, long, boolean, int, java.lang.Long, java.lang.Long, java.lang.String, java.util.Set, java.util.List). 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 a LogQueryEntry. 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 interface LogQueryResult

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 interface LogQueryResult

toString

public String toString()
Output a tab-delimited String with a header line. Each subsequent line represents another log record.

Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object rhs)
Overrides:
equals in class Object

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.