Java EE 5 SDK

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

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

public final class LogQueryEntryImpl
extends Object
implements LogQueryEntry

INTERNAL USE ONLY--not part of the API

Since:
AS 9.0

Field Summary
 
Fields inherited from interface com.sun.appserv.management.ext.logging.LogQueryEntry
OBJECT_NAME_KEY, THREAD_ID_KEY
 
Constructor Summary
LogQueryEntryImpl(long recordNumber, Date date, String level, String productName, String message, String messageID, String module, String nameValuePairs)
           
LogQueryEntryImpl(Object[] values)
           
 
Method Summary
 boolean equals(Object rhs)
           
 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 LogQueryEntry.getNameValuePairs().
 String getObjectName()
           
 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).
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogQueryEntryImpl

public LogQueryEntryImpl(long recordNumber,
                         Date date,
                         String level,
                         String productName,
                         String message,
                         String messageID,
                         String module,
                         String nameValuePairs)

LogQueryEntryImpl

public LogQueryEntryImpl(Object[] values)
Method Detail

getFields

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

Specified by:
getFields in interface LogQueryEntry

getRecordNumber

public long getRecordNumber()
Description copied from interface: LogQueryEntry
The record number within the log file (first one is 0).

Specified by:
getRecordNumber in interface LogQueryEntry

getDate

public Date getDate()
Description copied from interface: LogQueryEntry
The Date that the log entry was emitted.

Specified by:
getDate in interface LogQueryEntry

getModule

public String getModule()
Description copied from interface: LogQueryEntry
The module or Logger that emitted the entry.

Specified by:
getModule in interface LogQueryEntry

getLevel

public String getLevel()
Description copied from interface: LogQueryEntry
The Level of the entry.

Specified by:
getLevel in interface LogQueryEntry

getProductName

public String getProductName()
Description copied from interface: LogQueryEntry
The name of the product.

Specified by:
getProductName in interface LogQueryEntry

getMessage

public String getMessage()
Description copied from interface: LogQueryEntry
The free-form message.

Specified by:
getMessage in interface LogQueryEntry

getMessageID

public String getMessageID()
Description copied from interface: LogQueryEntry
The unique message ID identifying the entry.

Specified by:
getMessageID in interface LogQueryEntry

getNameValuePairs

public String getNameValuePairs()
Description copied from interface: LogQueryEntry
The raw name/value pair String for this log entry. Each pair is separated by the ';' character.

Specified by:
getNameValuePairs in interface LogQueryEntry

getNameValuePairsMap

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

Specified by:
getNameValuePairsMap in interface LogQueryEntry

getThreadID

public String getThreadID()
Description copied from interface: LogQueryEntry
The ID of the thread that emitted the entry (may be null).

Specified by:
getThreadID in interface LogQueryEntry

getObjectName

public String getObjectName()

toString

public String toString()
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.