|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cassandra.gms.VersionedValue
public class VersionedValue
This abstraction represents the state associated with a particular node which an
application wants to make available to the rest of the nodes in the cluster.
Whenever a piece of state needs to be disseminated to the rest of cluster wrap
the state in an instance of ApplicationState and add it to the Gossiper.
e.g. if we want to disseminate load information for node A do the following:
ApplicationState loadState = new ApplicationState(
Nested Class Summary
static class
VersionedValue.VersionedValueFactory
Field Summary
static char
DELIMITER
static java.lang.String
DELIMITER_STR
static java.lang.String
REMOVED_TOKEN
static java.lang.String
REMOVING_TOKEN
static ICompactSerializer<VersionedValue>
serializer
static java.lang.String
STATUS_BOOTSTRAPPING
static java.lang.String
STATUS_LEAVING
static java.lang.String
STATUS_LEFT
static java.lang.String
STATUS_NORMAL
java.lang.String
value
int
version
Method Summary
int
compareTo(VersionedValue value)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
serializer
public static final ICompactSerializer<VersionedValue> serializer
DELIMITER
public static final char DELIMITER
DELIMITER_STR
public static final java.lang.String DELIMITER_STR
STATUS_BOOTSTRAPPING
public static final java.lang.String STATUS_BOOTSTRAPPING
STATUS_NORMAL
public static final java.lang.String STATUS_NORMAL
STATUS_LEAVING
public static final java.lang.String STATUS_LEAVING
STATUS_LEFT
public static final java.lang.String STATUS_LEFT
REMOVING_TOKEN
public static final java.lang.String REMOVING_TOKEN
REMOVED_TOKEN
public static final java.lang.String REMOVED_TOKEN
version
public final int version
value
public final java.lang.String value
Method Detail
compareTo
public int compareTo(VersionedValue value)
compareTo
in interface java.lang.Comparable<VersionedValue>
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2010 The Apache Software Foundation