[jboss-cvs] JBoss Messaging SVN: r4658 - in trunk: tests/src/org/jboss/messaging/tests/integration/core/asyncio/impl and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jul 7 13:53:35 EDT 2008


Author: clebert.suconic at jboss.com
Date: 2008-07-07 13:53:34 -0400 (Mon, 07 Jul 2008)
New Revision: 4658

Modified:
   trunk/src/main/org/jboss/messaging/core/asyncio/impl/AsynchronousFileImpl.java
   trunk/tests/src/org/jboss/messaging/tests/integration/core/asyncio/impl/AIOTestBase.java
   trunk/tests/src/org/jboss/messaging/tests/integration/core/asyncio/impl/SingleThreadWriteNativeTest.java
Log:
Tweaks

Modified: trunk/src/main/org/jboss/messaging/core/asyncio/impl/AsynchronousFileImpl.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/asyncio/impl/AsynchronousFileImpl.java	2008-07-07 17:35:49 UTC (rev 4657)
+++ trunk/src/main/org/jboss/messaging/core/asyncio/impl/AsynchronousFileImpl.java	2008-07-07 17:53:34 UTC (rev 4658)
@@ -247,7 +247,7 @@
 	}
 	
 	@SuppressWarnings("unused") // Called by the JNI layer.. just ignore the warning
-	private void callbackError(final AIOCallback callback, int errorCode, String errorMessage)
+	private void callbackError(final AIOCallback callback, final int errorCode, final String errorMessage)
 	{
       writeSemaphore.release();
       writeLatch.down();

Modified: trunk/tests/src/org/jboss/messaging/tests/integration/core/asyncio/impl/AIOTestBase.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/integration/core/asyncio/impl/AIOTestBase.java	2008-07-07 17:35:49 UTC (rev 4657)
+++ trunk/tests/src/org/jboss/messaging/tests/integration/core/asyncio/impl/AIOTestBase.java	2008-07-07 17:53:34 UTC (rev 4658)
@@ -82,17 +82,7 @@
    
    protected void preAlloc(AsynchronousFileImpl controller, long size)
    {
-      System.out.println("Pre allocating");
-      System.out.flush();
-      long startPreAllocate = System.currentTimeMillis();
       controller.fill(0l, 1, size, (byte) 0);
-      long endPreAllocate = System.currentTimeMillis() - startPreAllocate;
-      if (endPreAllocate != 0)
-      {
-         System.out.println("PreAllocated the file (size = " + size
-               + " bytes) in " + endPreAllocate + " Milliseconds, What means "
-               + (size / endPreAllocate) + " bytes per millisecond");
-      }
    }
 
    protected static class CountDownCallback implements AIOCallback
@@ -126,8 +116,6 @@
                // even thought an error happened, we need to inform the latch, or the test won't finish
                latch.countDown();
            }
-           System.out.println("Received an Error - " + errorCode + " message=" + errorMessage);
-          
        }
    }
 

Modified: trunk/tests/src/org/jboss/messaging/tests/integration/core/asyncio/impl/SingleThreadWriteNativeTest.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/integration/core/asyncio/impl/SingleThreadWriteNativeTest.java	2008-07-07 17:35:49 UTC (rev 4657)
+++ trunk/tests/src/org/jboss/messaging/tests/integration/core/asyncio/impl/SingleThreadWriteNativeTest.java	2008-07-07 17:53:34 UTC (rev 4658)
@@ -504,7 +504,6 @@
       try
       {
          log.debug("++testDirectDataNoPage");
-         System.out.flush();
          CountDownLatch latchDone = new CountDownLatch(numberOfLines);
          
          ByteBuffer block = controller.newBuffer(size);
@@ -535,8 +534,6 @@
             
          }
          
-         System.out.print("waiting...");
-         
          latchDone.await();
          
          log.debug("done");
@@ -574,7 +571,6 @@
       try
       {
          log.debug("++testDirectDataNoPage");
-         System.out.flush();
          final int NUMBER_LINES = 3000;
          final int SIZE = 1024;
          




More information about the jboss-cvs-commits mailing list