cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1225014 - in /cassandra/trunk/src/java/org/apache/cassandra/dht: LocalToken.java Token.java
Date Tue, 27 Dec 2011 21:01:57 GMT
Author: jbellis
Date: Tue Dec 27 21:01:57 2011
New Revision: 1225014

URL: http://svn.apache.org/viewvc?rev=1225014&view=rev
Log:
make Token serializable again for JMX

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/dht/LocalToken.java
    cassandra/trunk/src/java/org/apache/cassandra/dht/Token.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/dht/LocalToken.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/dht/LocalToken.java?rev=1225014&r1=1225013&r2=1225014&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/dht/LocalToken.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/dht/LocalToken.java Tue Dec 27 21:01:57
2011
@@ -24,6 +24,8 @@ import org.apache.cassandra.db.marshal.A
 
 public class LocalToken extends Token<ByteBuffer>
 {
+    static final long serialVersionUID = 8437543776403014875L;
+
     private final AbstractType comparator;
 
     public LocalToken(AbstractType comparator, ByteBuffer token)

Modified: cassandra/trunk/src/java/org/apache/cassandra/dht/Token.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/dht/Token.java?rev=1225014&r1=1225013&r2=1225014&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/dht/Token.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/dht/Token.java Tue Dec 27 21:01:57 2011
@@ -30,7 +30,7 @@ import org.apache.cassandra.io.ISerializ
 import org.apache.cassandra.service.StorageService;
 import org.apache.cassandra.utils.ByteBufferUtil;
 
-public abstract class Token<T> implements RingPosition<Token<T>>
+public abstract class Token<T> implements RingPosition<Token<T>>, Serializable
 {
     private static final long serialVersionUID = 1L;
 



Mime
View raw message