public interface ProfilerEvent
| Modifier and Type | Field and Description |
|---|---|
static byte |
NA
Not available value.
|
static byte |
TYPE_EXECUTE
Profiler event for prepared statements being executed
|
static byte |
TYPE_FETCH
Profiler event for result sets being retrieved
|
static byte |
TYPE_OBJECT_CREATION
Profiler creating object type event
|
static byte |
TYPE_PREPARE
Profiler event for prepared statements being prepared
|
static byte |
TYPE_QUERY
Profiler event for a query being executed
|
static byte |
TYPE_SLOW_QUERY
Profiler event for slow query
|
static byte |
TYPE_USAGE
Profiler event for usage advisor
|
| Modifier and Type | Method and Description |
|---|---|
long |
getConnectionId()
Returns the id of the associated connection (-1 for none).
|
String |
getDatabase()
Returns the database the event occurred on.
|
String |
getDurationUnits()
Returns the units for getEventDuration()
|
String |
getEventCreationPointAsString()
Returns the description of where the event was created.
|
long |
getEventCreationTime()
Returns the time (in System.currentTimeMillis() form) when this event was created.
|
long |
getEventDuration()
Returns the duration of the event in milliseconds
|
byte |
getEventType()
Returns the event type
|
String |
getHostName()
Returns the host name the event occurred on.
|
String |
getMessage()
Returns the optional message for this event
|
int |
getResultSetId()
Returns the id of the associated result set (-1 for none).
|
int |
getStatementId()
Returns the id of the associated statement (-1 for none).
|
byte[] |
pack()
Creates a binary representation of this event.
|
static final byte TYPE_USAGE
static final byte TYPE_OBJECT_CREATION
static final byte TYPE_PREPARE
static final byte TYPE_QUERY
static final byte TYPE_EXECUTE
static final byte TYPE_FETCH
static final byte TYPE_SLOW_QUERY
static final byte NA
byte getEventType()
String getHostName()
String getDatabase()
long getConnectionId()
int getStatementId()
int getResultSetId()
long getEventCreationTime()
long getEventDuration()
String getDurationUnits()
String getEventCreationPointAsString()
String getMessage()
byte[] pack()