Top Fields Methods
com.mysql.cj.log

public Interface ProfilerEvent

Known Direct Implementers
com.mysql.cj.log.ProfilerEventImpl

Field Summary

Modifier and TypeField and Description
public static final byte
NA

Not available value.

public static final byte
TYPE_EXECUTE

Profiler event for prepared statements being executed

public static final byte
TYPE_FETCH

Profiler event for result sets being retrieved

public static final byte
TYPE_OBJECT_CREATION

Profiler creating object type event

public static final byte
TYPE_PREPARE

Profiler event for prepared statements being prepared

public static final byte
TYPE_QUERY

Profiler event for a query being executed

public static final byte
TYPE_SLOW_QUERY

Profiler event for slow query

public static final byte
TYPE_USAGE

Profiler event for usage advisor

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the connection in use
getConnectionId
()

Returns the id of the associated connection (-1 for none).

public String

Returns:

the database in use
getDatabase
()

Returns the database the event occurred on.

public String

Returns:

name of duration units
getDurationUnits
()

Returns the units for getEventDuration()

public String

Returns:

a description of where this event was created.
getEventCreationPointAsString
()

Returns the description of where the event was created.

public long

Returns:

the time this event was created
getEventCreationTime
()

Returns the time (in System.currentTimeMillis() form) when this event was created.

public long

Returns:

the duration of the event in milliseconds
getEventDuration
()

Returns the duration of the event in milliseconds

public byte

Returns:

the event type
getEventType
()

Returns the event type

public String

Returns:

host name
getHostName
()

Returns the host name the event occurred on.

public String

Returns:

the message stored in this event
getMessage
()

Returns the optional message for this event

public int

Returns:

the result set in use
getResultSetId
()

Returns the id of the associated result set (-1 for none).

public int

Returns:

the statement in use
getStatementId
()

Returns the id of the associated statement (-1 for none).

public byte[]

Returns:

a binary representation of this event
pack
()

Creates a binary representation of this event.

Field Detail

NAback to summary
public static final byte NA

Not available value.

TYPE_EXECUTEback to summary
public static final byte TYPE_EXECUTE

Profiler event for prepared statements being executed

TYPE_FETCHback to summary
public static final byte TYPE_FETCH

Profiler event for result sets being retrieved

TYPE_OBJECT_CREATIONback to summary
public static final byte TYPE_OBJECT_CREATION

Profiler creating object type event

TYPE_PREPAREback to summary
public static final byte TYPE_PREPARE

Profiler event for prepared statements being prepared

TYPE_QUERYback to summary
public static final byte TYPE_QUERY

Profiler event for a query being executed

TYPE_SLOW_QUERYback to summary
public static final byte TYPE_SLOW_QUERY

Profiler event for slow query

TYPE_USAGEback to summary
public static final byte TYPE_USAGE

Profiler event for usage advisor

Method Detail

getConnectionIdback to summary
public long getConnectionId()

Returns the id of the associated connection (-1 for none).

Returns:long

the connection in use

getDatabaseback to summary
public String getDatabase()

Returns the database the event occurred on.

Returns:String

the database in use

getDurationUnitsback to summary
public String getDurationUnits()

Returns the units for getEventDuration()

Returns:String

name of duration units

getEventCreationPointAsStringback to summary
public String getEventCreationPointAsString()

Returns the description of where the event was created.

Returns:String

a description of where this event was created.

getEventCreationTimeback to summary
public long getEventCreationTime()

Returns the time (in System.currentTimeMillis() form) when this event was created.

Returns:long

the time this event was created

getEventDurationback to summary
public long getEventDuration()

Returns the duration of the event in milliseconds

Returns:long

the duration of the event in milliseconds

getEventTypeback to summary
public byte getEventType()

Returns the event type

Returns:byte

the event type

getHostNameback to summary
public String getHostName()

Returns the host name the event occurred on.

Returns:String

host name

getMessageback to summary
public String getMessage()

Returns the optional message for this event

Returns:String

the message stored in this event

getResultSetIdback to summary
public int getResultSetId()

Returns the id of the associated result set (-1 for none).

Returns:int

the result set in use

getStatementIdback to summary
public int getStatementId()

Returns the id of the associated statement (-1 for none).

Returns:int

the statement in use

packback to summary
public byte[] pack()

Creates a binary representation of this event.

Returns:byte[]

a binary representation of this event