Package org.glassfish.admin.amx.logging
Class LogQueryEntryImpl
- java.lang.Object
-
- org.glassfish.admin.amx.logging.LogQueryEntryImpl
-
- All Implemented Interfaces:
LogQueryEntry
@Taxonomy(stability=EXPERIMENTAL) 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 org.glassfish.admin.amx.logging.LogQueryEntry
OBJECT_NAME_KEY, THREAD_ID_KEY
-
-
Constructor Summary
Constructors Constructor Description LogQueryEntryImpl(long recordNumber, Date date, String level, String productName, String module, String nameValuePairs, String messageID, String message)
LogQueryEntryImpl(Object[] values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 byLogQueryEntry.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()
-
-
-
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 inLogRecordFields
. A field is always non-null.- Specified by:
getFields
in interfaceLogQueryEntry
-
getRecordNumber
public long getRecordNumber()
Description copied from interface:LogQueryEntry
The record number within the log file (first one is 0).- Specified by:
getRecordNumber
in interfaceLogQueryEntry
-
getDate
public Date getDate()
Description copied from interface:LogQueryEntry
The Date that the log entry was emitted.- Specified by:
getDate
in interfaceLogQueryEntry
-
getModule
public String getModule()
Description copied from interface:LogQueryEntry
The module or Logger that emitted the entry.- Specified by:
getModule
in interfaceLogQueryEntry
-
getLevel
public String getLevel()
Description copied from interface:LogQueryEntry
The Level of the entry.- Specified by:
getLevel
in interfaceLogQueryEntry
-
getProductName
public String getProductName()
Description copied from interface:LogQueryEntry
The name of the product.- Specified by:
getProductName
in interfaceLogQueryEntry
-
getMessage
public String getMessage()
Description copied from interface:LogQueryEntry
The free-form message.- Specified by:
getMessage
in interfaceLogQueryEntry
-
getMessageID
public String getMessageID()
Description copied from interface:LogQueryEntry
The unique message ID identifying the entry.- Specified by:
getMessageID
in interfaceLogQueryEntry
-
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 interfaceLogQueryEntry
-
getNameValuePairsMap
public Map<String,String> getNameValuePairsMap()
Description copied from interface:LogQueryEntry
A Map containing name/value pairs as parsed from the String given byLogQueryEntry.getNameValuePairs()
. Values which are available for public use are:- Specified by:
getNameValuePairsMap
in interfaceLogQueryEntry
-
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 interfaceLogQueryEntry
-
getObjectName
public String getObjectName()
-
-