[jboss-cvs] JBossCache/src/org/jboss/cache/lock ...
Elias Ross
genman at noderunner.net
Mon Dec 11 16:14:34 EST 2006
User: genman
Date: 06/12/11 16:14:34
Modified: src/org/jboss/cache/lock DeadlockException.java
LockingException.java NonBlockingWriterLock.java
OwnerNotExistedException.java SemaphoreLock.java
SimpleReadWriteLock.java UpgradeException.java
Log:
JBCACHE-902 - Add serialver
Revision Changes Path
1.2 +4 -2 JBossCache/src/org/jboss/cache/lock/DeadlockException.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: DeadlockException.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/lock/DeadlockException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- DeadlockException.java 31 Mar 2005 10:15:06 -0000 1.1
+++ DeadlockException.java 11 Dec 2006 21:14:34 -0000 1.2
@@ -1,4 +1,4 @@
-// $Id: DeadlockException.java,v 1.1 2005/03/31 10:15:06 belaban Exp $
+// $Id: DeadlockException.java,v 1.2 2006/12/11 21:14:34 genman Exp $
/*
* JBoss, the OpenSource J2EE webOS
@@ -15,11 +15,13 @@
* once deadlock detection is in place.
*
* @author Bela Ban
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class DeadlockException extends LockingException
{
+ private static final long serialVersionUID = 8651993450626741020L;
+
/**
* Constructor for DeadlockException.
*
1.2 +4 -2 JBossCache/src/org/jboss/cache/lock/LockingException.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LockingException.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/lock/LockingException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- LockingException.java 31 Mar 2005 10:15:06 -0000 1.1
+++ LockingException.java 11 Dec 2006 21:14:34 -0000 1.2
@@ -1,4 +1,4 @@
-// $Id: LockingException.java,v 1.1 2005/03/31 10:15:06 belaban Exp $
+// $Id: LockingException.java,v 1.2 2006/12/11 21:14:34 genman Exp $
/*
* JBoss, the OpenSource J2EE webOS
@@ -19,7 +19,7 @@
* acquired within the timeout, or when a deadlock was detected.
*
* @author <a href="mailto:bela at jboss.org">Bela Ban</a>.
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
* <p/>
* <p><b>Revisions:</b>
* <p/>
@@ -29,6 +29,8 @@
public class LockingException extends CacheException
{
+ private static final long serialVersionUID = 5551396474793902133L;
+
/**
* A list of all nodes that failed to acquire a lock
*/
1.3 +1 -7 JBossCache/src/org/jboss/cache/lock/NonBlockingWriterLock.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NonBlockingWriterLock.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/lock/NonBlockingWriterLock.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- NonBlockingWriterLock.java 5 Apr 2005 17:19:28 -0000 1.2
+++ NonBlockingWriterLock.java 11 Dec 2006 21:14:34 -0000 1.3
@@ -7,12 +7,6 @@
package org.jboss.cache.lock;
-//import EDU.oswego.cs.dl.util.concurrent.Sync;
-//import EDU.oswego.cs.dl.util.concurrent.Semaphore;
-//import EDU.oswego.cs.dl.util.concurrent.ReadWriteLock;
-
-
-
/**
* NonBlockingWriterLock is a read/write lock (with upgrade) that has
* non-blocking write lock acquisition on existing read lock(s).
@@ -26,7 +20,7 @@
* granted.
*
* @author Ben Wang
- * @version $Id: NonBlockingWriterLock.java,v 1.2 2005/04/05 17:19:28 belaban Exp $
+ * @version $Id: NonBlockingWriterLock.java,v 1.3 2006/12/11 21:14:34 genman Exp $
*/
public class NonBlockingWriterLock extends ReadWriteLockWithUpgrade
{
1.4 +2 -0 JBossCache/src/org/jboss/cache/lock/OwnerNotExistedException.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: OwnerNotExistedException.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/lock/OwnerNotExistedException.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- OwnerNotExistedException.java 13 Feb 2006 16:22:07 -0000 1.3
+++ OwnerNotExistedException.java 11 Dec 2006 21:14:34 -0000 1.4
@@ -11,6 +11,8 @@
public class OwnerNotExistedException extends Exception
{
+ private static final long serialVersionUID = 2837393571654438480L;
+
/**
*
*/
1.2 +5 -0 JBossCache/src/org/jboss/cache/lock/SemaphoreLock.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SemaphoreLock.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/lock/SemaphoreLock.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- SemaphoreLock.java 8 Dec 2006 18:50:49 -0000 1.1
+++ SemaphoreLock.java 11 Dec 2006 21:14:34 -0000 1.2
@@ -11,6 +11,11 @@
public class SemaphoreLock extends Semaphore implements Lock
{
+ /**
+ * It's unclear why this class would be serialized.
+ */
+ private static final long serialVersionUID = -15293253129957476L;
+
public SemaphoreLock(int permits)
{
super(permits);
1.3 +6 -1 JBossCache/src/org/jboss/cache/lock/SimpleReadWriteLock.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SimpleReadWriteLock.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/lock/SimpleReadWriteLock.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- SimpleReadWriteLock.java 8 Dec 2006 18:50:49 -0000 1.2
+++ SimpleReadWriteLock.java 11 Dec 2006 21:14:34 -0000 1.3
@@ -4,8 +4,13 @@
/**
* @author Bela Ban
- * @version $Id: SimpleReadWriteLock.java,v 1.2 2006/12/08 18:50:49 genman Exp $
+ * @version $Id: SimpleReadWriteLock.java,v 1.3 2006/12/11 21:14:34 genman Exp $
*/
public class SimpleReadWriteLock extends ReentrantReadWriteLock {
+ /**
+ * It's unclear why this class should be serializable.
+ */
+ private static final long serialVersionUID = 6317491956891614462L;
+
}
1.2 +4 -2 JBossCache/src/org/jboss/cache/lock/UpgradeException.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UpgradeException.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/lock/UpgradeException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- UpgradeException.java 31 Mar 2005 10:15:06 -0000 1.1
+++ UpgradeException.java 11 Dec 2006 21:14:34 -0000 1.2
@@ -1,4 +1,4 @@
-// $Id: UpgradeException.java,v 1.1 2005/03/31 10:15:06 belaban Exp $
+// $Id: UpgradeException.java,v 1.2 2006/12/11 21:14:34 genman Exp $
/*
* JBoss, the OpenSource J2EE webOS
@@ -14,11 +14,13 @@
* Used when a read-lock cannot be upgraded to a write-lock
*
* @author Bela Ban
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class UpgradeException extends LockingException
{
+ private static final long serialVersionUID = -5683212651728276028L;
+
/**
* Constructor for UpgradeException.
*
More information about the jboss-cvs-commits
mailing list