Java EE 5 SDK

com.sun.appserv.management.ext.logging
Interface LogQueryEntry

All Known Implementing Classes:
LogQueryEntryImpl

public interface LogQueryEntry

An individual result representing a log entry found by LogQuery.queryServerLog(java.lang.String, long, boolean, int, java.lang.Long, java.lang.Long, java.lang.String, java.util.Set, java.util.List).

Since:
AS 9.0
See Also:
LogQueryResult

Field Summary
static String OBJECT_NAME_KEY
          Key for the ObjectName within the Map returned by getNameValuePairsMap().
static String THREAD_ID_KEY
          Key for the thread ID within the Map returned by getNameValuePairsMap().
 
Method Summary
 Date getDate()
          The Date that the log entry was emitted.
 Object[] getFields()
          Get the fields associated with this entry.
 String getLevel()
          The Level of the entry.
 String getMessage()
          The free-form message.
 String getMessageID()
          The unique message ID identifying the entry.
 String getModule()
          The module or Logger that emitted the entry.
 String getNameValuePairs()
          The raw name/value pair String for this log entry.
 Map<String,String> getNameValuePairsMap()
          A Map containing name/value pairs as parsed from the String given by getNameValuePairs().
 String getProductName()
          The name of the product.
 long getRecordNumber()
          The record number within the log file (first one is 0).
 String getThreadID()
          The ID of the thread that emitted the entry (may be null).
 

Field Detail

THREAD_ID_KEY

static final String THREAD_ID_KEY
Key for the thread ID within the Map returned by getNameValuePairsMap(). Value is of type java.lang.String.

See Also:
Constant Field Values

OBJECT_NAME_KEY

static final String OBJECT_NAME_KEY
Key for the ObjectName within the Map returned by getNameValuePairsMap(). Value is of type javax.management.ObjectName.

See Also:
Constant Field Values
Method Detail

getFields

Object[] getFields()
Get the fields associated with this entry. The fields are indexed by the values found in LogRecordFields. A field is always non-null.


getRecordNumber

long getRecordNumber()
The record number within the log file (first one is 0).


getProductName

String getProductName()
The name of the product.


getDate

Date getDate()
The Date that the log entry was emitted.


getModule

String getModule()
The module or Logger that emitted the entry.


getLevel

String getLevel()
The Level of the entry.


getMessageID

String getMessageID()
The unique message ID identifying the entry.


getMessage

String getMessage()
The free-form message.


getNameValuePairsMap

Map<String,String> getNameValuePairsMap()
A Map containing name/value pairs as parsed from the String given by getNameValuePairs(). Values which are available for public use are:


getNameValuePairs

String getNameValuePairs()
The raw name/value pair String for this log entry. Each pair is separated by the ';' character.


getThreadID

String getThreadID()
The ID of the thread that emitted the entry (may be null).


Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.