| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private String | |
| private String | |
| private String | |
| private long | |
| private long | |
| private byte | |
| private String | |
| private String | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | ProfilerEventImpl(byte
the event type (from the constants TYPE_????) eventType, String the hostname where the event occurs hostName, String the database in use db, long the connection id (-1 if N/A) connectionId, int the statement id (-1 if N/A) statementId, int the result set id (-1 if N/A) resultSetId, long how long did the event last? eventDuration, String time units user for eventDuration durationUnits, Throwable event creation point as a Throwable eventCreationPoint, String optional message message)Creates a new profiler event |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public long | getConnectionId()
Implements com. Returns the id of the associated connection (-1 for none). |
| public String | getDatabase()
Implements com. Returns the database the event occurred on. |
| public String | getDurationUnits()
Implements com. Returns the units for getEventDuration() |
| public String | getEventCreationPointAsString()
Implements com. Returns the description of where the event was created. |
| public long | getEventCreationTime()
Implements com. Returns the time (in System.currentTimeMillis() form) when this event was created. |
| public long | getEventDuration()
Implements com. Returns the duration of the event in milliseconds |
| public byte | |
| public String | getHostName()
Implements com. Returns the host name the event occurred on. |
| public String | getMessage()
Implements com. Returns the optional message for this event |
| public int | getResultSetId()
Implements com. Returns the id of the associated result set (-1 for none). |
| public int | getStatementId()
Implements com. Returns the id of the associated statement (-1 for none). |
| public byte[] | pack()
Implements com. Creates a binary representation of this event. |
| private static byte[] | |
| private static int | |
| private static long | |
| public String | Returns: a String representation of this event.Overrides java. Returns a representation of this event as a String. |
| public static ProfilerEvent | Returns: the unpacked Eventthe binary representation of this event buf)Unpacks a binary representation of this event. |
| private static int | |
| private static int | |
| private static int |
| connectionId | back to summary |
|---|---|
| private long connectionId | |
| database | back to summary |
|---|---|
| private String database | |
| durationUnits | back to summary |
|---|---|
| private String durationUnits | |
| eventCreationPointDesc | back to summary |
|---|---|
| private String eventCreationPointDesc | |
| eventCreationTime | back to summary |
|---|---|
| private long eventCreationTime | |
| eventDuration | back to summary |
|---|---|
| private long eventDuration | |
| eventType | back to summary |
|---|---|
| private byte eventType | |
| hostName | back to summary |
|---|---|
| private String hostName | |
| message | back to summary |
|---|---|
| private String message | |
| resultSetId | back to summary |
|---|---|
| private int resultSetId | |
| statementId | back to summary |
|---|---|
| private int statementId | |
| ProfilerEventImpl | back to summary |
|---|---|
| public ProfilerEventImpl(byte eventType, String hostName, String db, long connectionId, int statementId, int resultSetId, long eventDuration, String durationUnits, Throwable eventCreationPoint, String message) Creates a new profiler event
| |
| ProfilerEventImpl | back to summary |
|---|---|
| private ProfilerEventImpl(byte eventType, String hostName, String db, long connectionId, int statementId, int resultSetId, long eventCreationTime, long eventDuration, String durationUnits, String eventCreationPointDesc, String message) | |
| getConnectionId | back to summary |
|---|---|
| public long getConnectionId() Implements com. Doc from com. Returns the id of the associated connection (-1 for none).
| |
| getDatabase | back to summary |
|---|---|
| public String getDatabase() Implements com. Doc from com. Returns the database the event occurred on. | |
| getDurationUnits | back to summary |
|---|---|
| public String getDurationUnits() Implements com. Doc from com. Returns the units for getEventDuration() | |
| getEventCreationPointAsString | back to summary |
|---|---|
| public String getEventCreationPointAsString() Implements com. Doc from com. Returns the description of where the event was created. | |
| getEventCreationTime | back to summary |
|---|---|
| public long getEventCreationTime() Implements com. Doc from com. Returns the time (in System.currentTimeMillis() form) when this event was created.
| |
| getEventDuration | back to summary |
|---|---|
| public long getEventDuration() Implements com. Doc from com. Returns the duration of the event in milliseconds
| |
| getEventType | back to summary |
|---|---|
| public byte getEventType() Implements com. Doc from com. Returns the event type
| |
| getHostName | back to summary |
|---|---|
| public String getHostName() Implements com. Doc from com. Returns the host name the event occurred on. | |
| getMessage | back to summary |
|---|---|
| public String getMessage() Implements com. Doc from com. Returns the optional message for this event | |
| getResultSetId | back to summary |
|---|---|
| public int getResultSetId() Implements com. Doc from com. Returns the id of the associated result set (-1 for none).
| |
| getStatementId | back to summary |
|---|---|
| public int getStatementId() Implements com. Doc from com. Returns the id of the associated statement (-1 for none).
| |
| pack | back to summary |
|---|---|
| public byte[] pack() Implements com. Doc from com. Creates a binary representation of this event.
| |
| readBytes | back to summary |
|---|---|
| private static byte[] readBytes(byte[] buf, int pos) | |
| readInt | back to summary |
|---|---|
| private static int readInt(byte[] buf, int pos) | |
| readLong | back to summary |
|---|---|
| private static long readLong(byte[] buf, int pos) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a representation of this event as a String. | |
| unpack | back to summary |
|---|---|
| public static ProfilerEvent unpack(byte[] buf) Unpacks a binary representation of this event.
| |
| writeBytes | back to summary |
|---|---|
| private static int writeBytes(byte[] msg, byte[] buf, int pos) | |
| writeInt | back to summary |
|---|---|
| private static int writeInt(int i, byte[] buf, int pos) | |
| writeLong | back to summary |
|---|---|
| private static int writeLong(long l, byte[] buf, int pos) | |