Java Doc for T_Recovery.java in  » Database-DBMS » db-derby-10.2 » org » apache » derbyTesting » unitTests » store » 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 DBMS » db derby 10.2 » org.apache.derbyTesting.unitTests.store 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derbyTesting.unitTests.harness.T_Generic
      org.apache.derbyTesting.unitTests.store.T_Recovery

T_Recovery
public class T_Recovery extends T_Generic (Code)
A protocol unit test for recovery. To run, create a derby.properties file in a new directory with the contents derby.module.test.recovery=org.apache.derbyTesting.unitTests.store.T_Recovery Execute java -DSetupRecovery=true org.apache.derbyTesting.unitTests.harness.UnitTestMain java -DTestRecovery=true org.apache.derbyTesting.unitTests.harness.UnitTestMain


Field Summary
final static  FormatableBitSetBS_COL_0
    
final static  StringREC_001
    
final static  StringREC_002
    
final static  StringREC_003
    
final static  StringREC_004
    
final static  StringREC_005
    
final static  StringREC_006
    
final static  StringREC_NULL
    
final static  StringREC_UNDO
    
final static  StringSP1
    
final static  StringSP2
    
 ContextServicecontextService
    
 RawStoreFactoryfactory
    
 LockFactorylf
    
 T_Utilt_util
    
 UUIDFactoryuuidfactory
    

Constructor Summary
public  T_Recovery()
    

Method Summary
protected  voidR001()
    
protected  voidR002()
    
protected  voidR003()
    
protected  voidR004()
    
protected  voidR005()
    
protected  voidR006()
    
protected  voidR007()
    
protected  voidR008()
    
protected  voidR009()
    
protected  voidR010()
    
protected  voidR011()
    
protected  voidR012()
    
protected  voidR020()
    
protected  voidR022()
    
protected  voidR100()
    
protected  voidR101()
    
protected  voidR200()
    
protected  voidR201()
    
protected  voidR202()
    
protected  voidR203()
    
protected  voidR204()
    
protected  voidR300()
    
protected  voidR301()
    
protected  voidR302()
    
protected  voidR303()
    
protected  voidR304()
    
protected  voidR999()
    
protected  voidS001()
    
protected  voidS002()
    
protected  voidS003()
    
protected  voidS004()
    
protected  voidS005()
    
protected  voidS006()
    
protected  voidS007()
    
protected  voidS008()
    
protected  voidS009()
    
protected  voidS010()
    
protected  voidS011()
    
protected  voidS012()
    
protected  voidS020()
    
protected  voidS022()
    
protected  voidS100()
    
protected  voidS101()
    
protected  voidS200()
    
protected  voidS201()
    
protected  voidS202()
    
protected  voidS203()
    
protected  voidS204()
    
protected  voidS300()
    
protected  voidS301()
    
protected  voidS302()
    
protected  voidS303()
     Test space reclaimation - purging of a row with serveral long columns rollback and repurge them again.
protected  voidS304()
    
protected  voidS999()
    
public  StringgetModuleToTestProtocolName()
    
public  voidrunTests()
     Tests in here come in pairs (Snnn Rnnn), one to set it up, one to test it after recovery.

Field Detail
BS_COL_0
final static FormatableBitSet BS_COL_0(Code)



REC_001
final static String REC_001(Code)



REC_002
final static String REC_002(Code)



REC_003
final static String REC_003(Code)



REC_004
final static String REC_004(Code)



REC_005
final static String REC_005(Code)



REC_006
final static String REC_006(Code)



REC_NULL
final static String REC_NULL(Code)



REC_UNDO
final static String REC_UNDO(Code)



SP1
final static String SP1(Code)



SP2
final static String SP2(Code)



contextService
ContextService contextService(Code)



factory
RawStoreFactory factory(Code)



lf
LockFactory lf(Code)



t_util
T_Util t_util(Code)



uuidfactory
UUIDFactory uuidfactory(Code)




Constructor Detail
T_Recovery
public T_Recovery()(Code)




Method Detail
R001
protected void R001() throws T_Fail, StandardException(Code)



R002
protected void R002() throws T_Fail, StandardException(Code)



R003
protected void R003() throws T_Fail, StandardException(Code)



R004
protected void R004() throws T_Fail, StandardException(Code)



R005
protected void R005() throws T_Fail, StandardException(Code)



R006
protected void R006() throws T_Fail, StandardException(Code)



R007
protected void R007() throws T_Fail, StandardException(Code)



R008
protected void R008() throws T_Fail, StandardException(Code)



R009
protected void R009() throws T_Fail, StandardException(Code)



R010
protected void R010() throws T_Fail, StandardException(Code)



R011
protected void R011() throws T_Fail, StandardException(Code)



R012
protected void R012() throws T_Fail, StandardException(Code)



R020
protected void R020() throws T_Fail, StandardException(Code)



R022
protected void R022() throws T_Fail, StandardException(Code)



R100
protected void R100() throws T_Fail, StandardException(Code)



R101
protected void R101() throws T_Fail, StandardException(Code)



R200
protected void R200() throws T_Fail, StandardException(Code)



R201
protected void R201() throws T_Fail, StandardException(Code)



R202
protected void R202() throws T_Fail, StandardException(Code)



R203
protected void R203() throws T_Fail, StandardException(Code)



R204
protected void R204() throws T_Fail, StandardException(Code)



R300
protected void R300() throws T_Fail, StandardException(Code)



R301
protected void R301() throws T_Fail, StandardException(Code)



R302
protected void R302() throws T_Fail, StandardException(Code)



R303
protected void R303() throws T_Fail, StandardException(Code)



R304
protected void R304() throws T_Fail, StandardException(Code)



R999
protected void R999() throws StandardException, T_Fail(Code)



S001
protected void S001() throws T_Fail, StandardException(Code)



S002
protected void S002() throws T_Fail, StandardException(Code)



S003
protected void S003() throws T_Fail, StandardException(Code)



S004
protected void S004() throws T_Fail, StandardException(Code)



S005
protected void S005() throws T_Fail, StandardException(Code)



S006
protected void S006() throws T_Fail, StandardException(Code)



S007
protected void S007() throws T_Fail, StandardException(Code)



S008
protected void S008() throws T_Fail, StandardException(Code)



S009
protected void S009() throws T_Fail, StandardException(Code)



S010
protected void S010() throws T_Fail, StandardException(Code)



S011
protected void S011() throws T_Fail, StandardException(Code)



S012
protected void S012() throws T_Fail, StandardException(Code)



S020
protected void S020() throws T_Fail, StandardException(Code)



S022
protected void S022() throws T_Fail, StandardException(Code)



S100
protected void S100() throws T_Fail, StandardException(Code)



S101
protected void S101() throws T_Fail, StandardException(Code)



S200
protected void S200() throws T_Fail, StandardException(Code)



S201
protected void S201() throws T_Fail, StandardException(Code)



S202
protected void S202() throws T_Fail, StandardException(Code)



S203
protected void S203() throws T_Fail, StandardException(Code)



S204
protected void S204() throws T_Fail, StandardException(Code)



S300
protected void S300() throws T_Fail, StandardException(Code)



S301
protected void S301() throws T_Fail, StandardException(Code)



S302
protected void S302() throws T_Fail, StandardException(Code)



S303
protected void S303() throws StandardException, T_Fail(Code)
Test space reclaimation - purging of a row with serveral long columns rollback and repurge them again.
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



S304
protected void S304() throws StandardException, T_Fail(Code)
Test space reclaimation - purging of a long rows with a rollback and purging again after recovery in R304
exception:
  T_Fail - Unexpected behaviour from the API
exception:
  StandardException - Unexpected exception from the implementation



S999
protected void S999() throws T_Fail, StandardException(Code)



getModuleToTestProtocolName
public String getModuleToTestProtocolName()(Code)



runTests
public void runTests() throws T_Fail(Code)
Tests in here come in pairs (Snnn Rnnn), one to set it up, one to test it after recovery. Information that needs to be passed from the setup to the recovery should, ideally, be written out to a database. For now, it is written out as a pair of long in the file T_Recovery.info. To make sure you don't accidently tramples on someone else's key, encode your test number (nnn) by shifting over 32 bits and then add your key. Multiple invocations which needs paramaters saved should be encoded futher. 001 < nnn < 200 - no recovery undo 200 < nnn < 400 - recovery undo
exception:
  T_Fail - Unexpected behaviour from the API



Fields inherited from org.apache.derbyTesting.unitTests.harness.T_Generic
protected HeaderPrintWriter out(Code)(Java Doc)
protected String shortModuleToTestName(Code)(Java Doc)
protected Properties startParams(Code)(Java Doc)

Methods inherited from org.apache.derbyTesting.unitTests.harness.T_Generic
public boolean Execute(HeaderPrintWriter out)(Code)(Java Doc)
protected boolean FAIL(String msg)(Code)(Java Doc)
protected boolean PASS(String testName)(Code)(Java Doc)
public void REPORT(String msg)(Code)(Java Doc)
public int UnitTestDuration()(Code)(Java Doc)
public int UnitTestType()(Code)(Java Doc)
public void boot(boolean create, Properties startParams) throws StandardException(Code)(Java Doc)
abstract protected String getModuleToTestProtocolName()(Code)(Java Doc)
abstract protected void runTests() throws Exception(Code)(Java Doc)
public void stop()(Code)(Java Doc)

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.