[Jukebox-cvs] CVS update: J4/src/java/gnu/j4/test/unit LruCache.java RWLock.java SemaphoreGroup.java
Brought to you by:
vtt
From: CVS B. <vt...@fr...> - 2000-11-02 08:49:40
|
User: vt Date: 00/11/01 23:57:50 Modified: src/java/gnu/j4/test/unit LruCache.java RWLock.java SemaphoreGroup.java ServerSocket.java ThreadTest.java Log: Checkpoint on the way to implement a shutdown(Throwable failureCause) call, as opposed to no-argument shutdown(). Point is, I want to know why the execute() died, if it did. Revision Changes Path 1.2 +2 -2 J4/src/java/gnu/j4/test/unit/LruCache.java CVSWEB Options: ------------------- CVSWeb: Annotate this file: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/LruCache.java?annotate=1.2&cvsroot=jukebox4 CVSWeb: View this file: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/LruCache.java?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=jukebox4 CVSWeb: Diff to previous version: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/LruCache.java.diff?r1=1.2&r2=1.1&cvsroot=jukebox4 ----------------------------------- Index: LruCache.java =================================================================== RCS file: /usr/local/cvs/J4/src/java/gnu/j4/test/unit/LruCache.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- LruCache.java 2000/10/25 06:56:48 1.1 +++ LruCache.java 2000/11/02 06:57:50 1.2 @@ -10,7 +10,7 @@ * Test for {@link gnu.j4.cache.LruCache LRU Cache}. * * @author Copyright © <a href="mailto:vt...@fr...">Vadim Tkachenko</a> 1999 - * @version $Id: LruCache.java,v 1.1 2000/10/25 06:56:48 vt Exp $ + * @version $Id: LruCache.java,v 1.2 2000/11/02 06:57:50 vt Exp $ */ public class LruCache extends ActiveService { @@ -106,7 +106,7 @@ * @exception InterruptedException if this thread was interrupted by * another thread. */ - protected void shutdown() throws InterruptedException { + protected void shutdown(Throwable failureCause) throws InterruptedException { int total = hits + misses; 1.2 +3 -3 J4/src/java/gnu/j4/test/unit/RWLock.java CVSWEB Options: ------------------- CVSWeb: Annotate this file: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/RWLock.java?annotate=1.2&cvsroot=jukebox4 CVSWeb: View this file: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/RWLock.java?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=jukebox4 CVSWeb: Diff to previous version: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/RWLock.java.diff?r1=1.2&r2=1.1&cvsroot=jukebox4 ----------------------------------- Index: RWLock.java =================================================================== RCS file: /usr/local/cvs/J4/src/java/gnu/j4/test/unit/RWLock.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- RWLock.java 2000/10/25 06:56:48 1.1 +++ RWLock.java 2000/11/02 06:57:50 1.2 @@ -9,7 +9,7 @@ * {@link gnu.j4.sem.RWLock Multiple readers, single writer} test case. * * @author Copyright © <a href="mailto:vt...@fr...">Vadim Tkachenko</a> 2000 - * @version $Id: RWLock.java,v 1.1 2000/10/25 06:56:48 vt Exp $ + * @version $Id: RWLock.java,v 1.2 2000/11/02 06:57:50 vt Exp $ */ public class RWLock extends ActiveService { @@ -52,7 +52,7 @@ Thread.sleep(180000); } - protected void shutdown() throws InterruptedException { + protected void shutdown(Throwable failureCause) throws InterruptedException { complain(LOG_INFO, "RWLock", "Shut down."); } @@ -103,7 +103,7 @@ * * @return true. */ - protected void shutdown() throws InterruptedException { + protected void shutdown(Throwable failureCause) throws InterruptedException { complain(LOG_INFO, "Consumer", "[" + id + "] Shut down."); } 1.2 +11 -4 J4/src/java/gnu/j4/test/unit/SemaphoreGroup.java CVSWEB Options: ------------------- CVSWeb: Annotate this file: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/SemaphoreGroup.java?annotate=1.2&cvsroot=jukebox4 CVSWeb: View this file: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/SemaphoreGroup.java?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=jukebox4 CVSWeb: Diff to previous version: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/SemaphoreGroup.java.diff?r1=1.2&r2=1.1&cvsroot=jukebox4 ----------------------------------- Index: SemaphoreGroup.java =================================================================== RCS file: /usr/local/cvs/J4/src/java/gnu/j4/test/unit/SemaphoreGroup.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- SemaphoreGroup.java 2000/10/25 06:56:48 1.1 +++ SemaphoreGroup.java 2000/11/02 06:57:50 1.2 @@ -28,6 +28,11 @@ * * <pre> * $Log: SemaphoreGroup.java,v $ + * Revision 1.2 2000/11/02 06:57:50 vt + * Checkpoint on the way to implement a shutdown(Throwable failureCause) call, + * as opposed to no-argument shutdown(). Point is, I want to know why the + * execute() died, if it did. + * * Revision 1.1 2000/10/25 06:56:48 vt * Moved the files from gnu.j4.examples to gnu.j4.test.unit and * gnu.j4.test.integration, where they belong. @@ -66,7 +71,7 @@ * * </pre> * @author <a href="mailto:vt...@fr...">Vadim Tkachenko</a> - * @version $Id: SemaphoreGroup.java,v 1.1 2000/10/25 06:56:48 vt Exp $ + * @version $Id: SemaphoreGroup.java,v 1.2 2000/11/02 06:57:50 vt Exp $ */ public class SemaphoreGroup extends PassiveService implements TimerClient { @@ -189,7 +194,8 @@ * @exception InterruptedException if this thread was interrupted by * another thread. */ - protected void shutdown() throws InterruptedException { + protected void shutdown(Throwable failureCause) throws InterruptedException { + complain( LOG_INFO,LOG_SGT,"stopping callback: "+timerCallback_A.toString() ); TimerCallback.stopCallback( timerCallback_A ); timerCallback_A = null; @@ -238,7 +244,7 @@ * * @return true. */ - protected void shutdown() throws InterruptedException { + protected void shutdown(Throwable failureCause) throws InterruptedException { } } 1.2 +2 -2 J4/src/java/gnu/j4/test/unit/ServerSocket.java CVSWEB Options: ------------------- CVSWeb: Annotate this file: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/ServerSocket.java?annotate=1.2&cvsroot=jukebox4 CVSWeb: View this file: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/ServerSocket.java?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=jukebox4 CVSWeb: Diff to previous version: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/ServerSocket.java.diff?r1=1.2&r2=1.1&cvsroot=jukebox4 ----------------------------------- Index: ServerSocket.java =================================================================== RCS file: /usr/local/cvs/J4/src/java/gnu/j4/test/unit/ServerSocket.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ServerSocket.java 2000/10/25 06:56:48 1.1 +++ ServerSocket.java 2000/11/02 06:57:50 1.2 @@ -13,7 +13,7 @@ * this test is going to pass, unless you have a really old or weird JVM. * * @author Copyright © <a href="mailto:vt...@fr...">Vadim Tkachenko</a> 1995-2000 - * @version $Id: ServerSocket.java,v 1.1 2000/10/25 06:56:48 vt Exp $ + * @version $Id: ServerSocket.java,v 1.2 2000/11/02 06:57:50 vt Exp $ */ public class ServerSocket extends ActiveService { @@ -59,7 +59,7 @@ } } - protected void shutdown() throws InterruptedException { + protected void shutdown(Throwable failureCause) throws InterruptedException { if ( acceptor.isActive() ) { 1.2 +2 -2 J4/src/java/gnu/j4/test/unit/ThreadTest.java CVSWEB Options: ------------------- CVSWeb: Annotate this file: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/ThreadTest.java?annotate=1.2&cvsroot=jukebox4 CVSWeb: View this file: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/ThreadTest.java?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=jukebox4 CVSWeb: Diff to previous version: http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/J4/src/java/gnu/j4/test/unit/ThreadTest.java.diff?r1=1.2&r2=1.1&cvsroot=jukebox4 ----------------------------------- Index: ThreadTest.java =================================================================== RCS file: /usr/local/cvs/J4/src/java/gnu/j4/test/unit/ThreadTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ThreadTest.java 2000/10/25 06:56:48 1.1 +++ ThreadTest.java 2000/11/02 06:57:50 1.2 @@ -8,7 +8,7 @@ * * @since Jukebox 3 * @author Copyright © <a href="mailto:vt...@fr...">Vadim Tkachenko</a> 1005-1998 - * @version $Id: ThreadTest.java,v 1.1 2000/10/25 06:56:48 vt Exp $ + * @version $Id: ThreadTest.java,v 1.2 2000/11/02 06:57:50 vt Exp $ */ public class ThreadTest extends ActiveService { @@ -23,7 +23,7 @@ protected void startup() throws InterruptedException { } - protected void shutdown() throws InterruptedException { + protected void shutdown(Throwable failureCause) throws InterruptedException { } protected void execute() throws InterruptedException { |