Java Doc for ProfilerEvent.java in  » Database-JDBC-Connection-Pool » mysql-connector-java-5.1.3 » com » mysql » jdbc » profiler » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database JDBC Connection Pool » mysql connector java 5.1.3 » com.mysql.jdbc.profiler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.mysql.jdbc.profiler.ProfilerEvent

ProfilerEvent
public class ProfilerEvent (Code)

author:
   mmatthew


Field Summary
final public static  byteTYPE_EXECUTE
    
final public static  byteTYPE_FETCH
    
final public static  byteTYPE_OBJECT_CREATION
    
final public static  byteTYPE_PREPARE
    
final public static  byteTYPE_QUERY
    
final public static  byteTYPE_SLOW_QUERY
    
final public static  byteTYPE_WARN
    
protected  Stringcatalog
    
protected  intcatalogIndex
    
protected  longconnectionId
    
protected  StringdurationUnits
    
protected  ThrowableeventCreationPoint
    
protected  StringeventCreationPointDesc
    
protected  inteventCreationPointIndex
    
protected  longeventCreationTime
    
protected  longeventDuration
    
protected  byteeventType
    
protected  StringhostName
    
protected  inthostNameIndex
    
protected  Stringmessage
    
protected  intresultSetId
    
protected  intstatementId
    

Constructor Summary
public  ProfilerEvent(byte eventType, String hostName, String catalog, long connectionId, int statementId, int resultSetId, long eventCreationTime, long eventDuration, String durationUnits, String eventCreationPointDesc, Throwable eventCreationPoint, String message)
    

Method Summary
public  StringgetCatalog()
    
public  longgetConnectionId()
     Returns the id of the connection in use when this event was created.
public  StringgetDurationUnits()
    
public  ThrowablegetEventCreationPoint()
     Returns the point (as a Throwable stacktrace) where this event was created.
public  StringgetEventCreationPointAsString()
     Returns the description of when this event was created.
public  longgetEventCreationTime()
    
public  longgetEventDuration()
    
public  bytegetEventType()
    
public  StringgetMessage()
    
public  intgetResultSetId()
     Returns the id of the result set in use when this event was created.
public  intgetStatementId()
     Returns the id of the statement in use when this event was created.
public  byte[]pack()
     Creates a binary representation of this event.
public  StringtoString()
     Returns a representation of this event as a String.
public static  ProfilerEventunpack(byte[] buf)
     Unpacks a binary representation of this event.

Field Detail
TYPE_EXECUTE
final public static byte TYPE_EXECUTE(Code)
Profiler event for prepared statements being executed



TYPE_FETCH
final public static byte TYPE_FETCH(Code)
Profiler event for result sets being retrieved



TYPE_OBJECT_CREATION
final public static byte TYPE_OBJECT_CREATION(Code)
Profiler creating object type event



TYPE_PREPARE
final public static byte TYPE_PREPARE(Code)
Profiler event for prepared statements being prepared



TYPE_QUERY
final public static byte TYPE_QUERY(Code)
Profiler event for a query being executed



TYPE_SLOW_QUERY
final public static byte TYPE_SLOW_QUERY(Code)
Profiler event for slow query



TYPE_WARN
final public static byte TYPE_WARN(Code)
A Profiler warning event



catalog
protected String catalog(Code)
The catalog the event occurred on



catalogIndex
protected int catalogIndex(Code)
The catalog the event occurred on (as an index into a dictionary, used by 'remote' profilers for efficiency)?



connectionId
protected long connectionId(Code)
Associated connection (-1 for none)



durationUnits
protected String durationUnits(Code)
What units was the duration measured in?



eventCreationPoint
protected Throwable eventCreationPoint(Code)
Where was the event created (as a Throwable)?



eventCreationPointDesc
protected String eventCreationPointDesc(Code)
Where was the event created (as a string description of the eventCreationPoint)?



eventCreationPointIndex
protected int eventCreationPointIndex(Code)
Where was the event created (as an index into a dictionary, used by 'remote' profilers for efficiency)?



eventCreationTime
protected long eventCreationTime(Code)
When was the event created?



eventDuration
protected long eventDuration(Code)
How long did the event last?



eventType
protected byte eventType(Code)
Type of event



hostName
protected String hostName(Code)
The hostname the event occurred on



hostNameIndex
protected int hostNameIndex(Code)
The hostname the event occurred on (as an index into a dictionary, used by 'remote' profilers for efficiency)?



message
protected String message(Code)
Optional event message



resultSetId
protected int resultSetId(Code)
Associated result set (-1 for none)



statementId
protected int statementId(Code)
Associated statement (-1 for none)




Constructor Detail
ProfilerEvent
public ProfilerEvent(byte eventType, String hostName, String catalog, long connectionId, int statementId, int resultSetId, long eventCreationTime, long eventDuration, String durationUnits, String eventCreationPointDesc, Throwable eventCreationPoint, String message)(Code)
Creates a new profiler event
Parameters:
  eventType - the event type (from the constants TYPE_????)
Parameters:
  hostName - the hostname where the event occurs
Parameters:
  catalog - the catalog in use
Parameters:
  connectionId - the connection id (-1 if N/A)
Parameters:
  statementId - the statement id (-1 if N/A)
Parameters:
  resultSetId - the result set id (-1 if N/A)
Parameters:
  eventCreationTime - when was the event created?
Parameters:
  eventDurationMillis - how long did the event last?
Parameters:
  eventCreationPointDesc - event creation point as a string
Parameters:
  eventCreationPoint - event creation point as a Throwable
Parameters:
  message - optional message




Method Detail
getCatalog
public String getCatalog()(Code)
Returns the catalog in use the catalog in use



getConnectionId
public long getConnectionId()(Code)
Returns the id of the connection in use when this event was created. the connection in use



getDurationUnits
public String getDurationUnits()(Code)
Returns the units for getEventDuration()



getEventCreationPoint
public Throwable getEventCreationPoint()(Code)
Returns the point (as a Throwable stacktrace) where this event was created. the point where this event was created



getEventCreationPointAsString
public String getEventCreationPointAsString()(Code)
Returns the description of when this event was created. a description of when this event was created.



getEventCreationTime
public long getEventCreationTime()(Code)
Returns the time (in System.currentTimeMillis() form) when this event was created the time this event was created



getEventDuration
public long getEventDuration()(Code)
Returns the duration of the event in milliseconds the duration of the event in milliseconds



getEventType
public byte getEventType()(Code)
Returns the event type flag the event type flag



getMessage
public String getMessage()(Code)
Returns the optional message for this event the message stored in this event



getResultSetId
public int getResultSetId()(Code)
Returns the id of the result set in use when this event was created. the result set in use



getStatementId
public int getStatementId()(Code)
Returns the id of the statement in use when this event was created. the statement in use



pack
public byte[] pack() throws Exception(Code)
Creates a binary representation of this event. a binary representation of this event
throws:
  Exception - if an error occurs while packing this event.



toString
public String toString()(Code)
Returns a representation of this event as a String. a String representation of this event.



unpack
public static ProfilerEvent unpack(byte[] buf) throws Exception(Code)
Unpacks a binary representation of this event.
Parameters:
  buf - the binary representation of this event the unpacked Event
throws:
  Exception - if an error occurs while unpacking the event



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.