db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r518410 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/LockingMultithreadedTest.java
Date Thu, 15 Mar 2007 01:03:30 GMT
Author: arminw
Date: Wed Mar 14 18:03:28 2007
New Revision: 518410

URL: http://svn.apache.org/viewvc?view=rev&rev=518410
Log:
print test info

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/LockingMultithreadedTest.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/LockingMultithreadedTest.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/LockingMultithreadedTest.java?view=diff&rev=518410&r1=518409&r2=518410
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/LockingMultithreadedTest.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/LockingMultithreadedTest.java
Wed Mar 14 18:03:28 2007
@@ -67,6 +67,8 @@
         storeObject(targetObject);
 
         System.out.println("** Start multithreaded lock test **");
+        String statistic = ((ImplementationImpl) odmg).getLockManager().getLockInfo();
+        System.out.println("Lock-Statistic at start: " + statistic);
         Thread.sleep(500);
         TestCaseRunnable tct [] = new TestCaseRunnable[concurrentThreads];
         for (int i = 0; i < concurrentThreads; i++)
@@ -85,8 +87,9 @@
         System.out.println("*** Result of multithreaded lock test ***");
         System.out.println(result.toString());
         //System.out.println(targetObject.getReference().getName());
-        String statistic = ((ImplementationImpl) odmg).getLockManager().getLockInfo();
-        System.out.println("Lock-Statistic: " + statistic);
+        statistic = ((ImplementationImpl) odmg).getLockManager().getLockInfo();
+        System.out.println("Lock-Statistic end: " + statistic);
+        System.out.println("** Start multithreaded lock test end **");
     }
 
     private LockObject createLockObjectWithRef()



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message