Java Doc for LogEntry.java in  » Database-JDBC-Connection-Pool » sequoia-2.10.9 » org » continuent » sequoia » controller » recoverylog » events » 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 » sequoia 2.10.9 » org.continuent.sequoia.controller.recoverylog.events 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.continuent.sequoia.controller.recoverylog.events.LogEntry

LogEntry
public class LogEntry implements Serializable(Code)
This class defines a recovery log entry that needs to be stored in the recovery database. This is also sent over the wire between controllers, when copying recovery log entries to a remote controller (copyLogFromCheckpoint).
author:
   Emmanuel Cecchet
author:
  

version:
   1.0


Field Summary
final public static  StringAUTOCOMMIT
    
final public static  StringEXECUTING
    
final public static  StringFAILED
    
final public static  StringMISSING
    
final public static  StringPERSISTENT_CONNECTION
    
final public static  StringSUCCESS
    
final public static  StringTRANSACTION
    
final public static  StringUNKNOWN
    

Constructor Summary
public  LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid)
     Create a log entry with a default execution status set to EXECUTING.
public  LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid, boolean escapeProcessing, long requestId, long executionTime, int updateCountResult)
     Create a log object.
public  LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid, boolean escapeProcessing, long requestId, long executionTime, int updateCountResult, String status)
     Create a log object.
public  LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid, boolean escapeProcessing, long requestId, long executionTime)
     Create a log object.

Method Summary
public  StringgetAutoConnTrans()
     Returns the autoConnTrans value.
public  booleangetEscapeProcessing()
    
final public  StringgetExecutionStatus()
     Returns the executionStatus value.
public  longgetExecutionTimeInMs()
     Returns the executionTime value.
public  longgetLogId()
    
public  StringgetLogin()
    
public  StringgetQuery()
    
final public  StringgetQueryParams()
     Returns the queryParams value.
public  longgetRequestId()
     Returns the requestId value.
public  longgetTid()
    
public  intgetUpdateCountResult()
     Returns the result value.
final public  voidsetExecutionStatus(String executionStatus)
     Sets the executionStatus value.
final public  voidsetLogId(long logId)
     Sets the logId value.
public  StringtoString()
    

Field Detail
AUTOCOMMIT
final public static String AUTOCOMMIT(Code)
auto_conn_trans value for a request in autoCommit mode (no persistent connection)



EXECUTING
final public static String EXECUTING(Code)
Execution status value to executing



FAILED
final public static String FAILED(Code)
Execution status value to failed



MISSING
final public static String MISSING(Code)
Status that will be used if the statement is not found in the recovery log



PERSISTENT_CONNECTION
final public static String PERSISTENT_CONNECTION(Code)
auto_conn_trans value for a persistent connection



SUCCESS
final public static String SUCCESS(Code)
Execution status value to success



TRANSACTION
final public static String TRANSACTION(Code)
auto_conn_trans value for a transaction



UNKNOWN
final public static String UNKNOWN(Code)
Execution status value to unknown




Constructor Detail
LogEntry
public LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid)(Code)
Create a log entry with a default execution status set to EXECUTING.
Parameters:
  logId - the recovery log unique id
Parameters:
  login - login used for this request
Parameters:
  query - query to log
Parameters:
  queryParams - query parameters if this is a PreparedStatement
Parameters:
  autoConnTrans - AUTOCOMMIT, PERSISTENT_CONNECTION or TRANSACTION
Parameters:
  tid - transaction id of this request



LogEntry
public LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid, boolean escapeProcessing, long requestId, long executionTime, int updateCountResult)(Code)
Create a log object.
Parameters:
  logId - the recovery log unique id
Parameters:
  login - login used for this request
Parameters:
  query - query to log
Parameters:
  queryParams - query parameters if this is a PreparedStatement
Parameters:
  autoConnTrans - 'A' if autoCommit, 'C' if persistent connection, 'T'if transaction
Parameters:
  tid - transaction id of this request
Parameters:
  escapeProcessing - true if escape processing must be done
Parameters:
  requestId - the unique request id
Parameters:
  executionTime - the estimated execution time of the request inmilliseconds
Parameters:
  updateCountResult - the result of this query if it returned an updatecount



LogEntry
public LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid, boolean escapeProcessing, long requestId, long executionTime, int updateCountResult, String status)(Code)
Create a log object.
Parameters:
  logId - the recovery log unique id
Parameters:
  login - login used for this request
Parameters:
  query - query to log
Parameters:
  queryParams - query parameters if this is a PreparedStatement
Parameters:
  autoConnTrans - 'A' if autoCommit, 'C' if persistent connection, 'T'if transaction
Parameters:
  tid - transaction id of this request
Parameters:
  escapeProcessing - true if escape processing must be done
Parameters:
  requestId - the unique request id
Parameters:
  executionTime - the estimated execution time of the request inmilliseconds
Parameters:
  updateCountResult - the result of this query if it returned an updatecount
Parameters:
  status - execution status as defined in LogEntry constants



LogEntry
public LogEntry(long logId, String login, String query, String queryParams, String autoConnTrans, long tid, boolean escapeProcessing, long requestId, long executionTime)(Code)
Create a log object.
Parameters:
  logId - the recovery log unique id
Parameters:
  login - login used for this request
Parameters:
  query - query to log
Parameters:
  queryParams - query parameters if this is a PreparedStatement
Parameters:
  autoConnTrans - 'A' if autoCommit, 'C' if persistent connection, 'T'if transaction
Parameters:
  tid - transaction id of this request
Parameters:
  escapeProcessing - true if escape processing must be done
Parameters:
  requestId - the unique request id
Parameters:
  executionTime - the estimated execution time of the request inmilliseconds




Method Detail
getAutoConnTrans
public String getAutoConnTrans()(Code)
Returns the autoConnTrans value. Returns the autoConnTrans.



getEscapeProcessing
public boolean getEscapeProcessing()(Code)
true if escape processing is needed



getExecutionStatus
final public String getExecutionStatus()(Code)
Returns the executionStatus value. Returns the executionStatus.



getExecutionTimeInMs
public long getExecutionTimeInMs()(Code)
Returns the executionTime value. Returns the executionTime.



getLogId
public long getLogId()(Code)
the request id



getLogin
public String getLogin()(Code)
the login used for this request



getQuery
public String getQuery()(Code)
the request itself



getQueryParams
final public String getQueryParams()(Code)
Returns the queryParams value. Returns the queryParams.



getRequestId
public long getRequestId()(Code)
Returns the requestId value. Returns the requestId.



getTid
public long getTid()(Code)
the transaction id



getUpdateCountResult
public int getUpdateCountResult()(Code)
Returns the result value. Returns the result.



setExecutionStatus
final public void setExecutionStatus(String executionStatus)(Code)
Sets the executionStatus value.
Parameters:
  executionStatus - The executionStatus to set.



setLogId
final public void setLogId(long logId)(Code)
Sets the logId value.
Parameters:
  logId - The logId to set.



toString
public String toString()(Code)

See Also:   java.lang.Object.toString



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.