|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 classVersionedValue.VersionedValueFactory
Field Summary
static charDELIMITER
static java.lang.StringDELIMITER_STR
static java.lang.StringREMOVED_TOKEN
static java.lang.StringREMOVING_TOKEN
static ICompactSerializer<VersionedValue>serializer
static java.lang.StringSTATUS_BOOTSTRAPPING
static java.lang.StringSTATUS_LEAVING
static java.lang.StringSTATUS_LEFT
static java.lang.StringSTATUS_NORMAL
java.lang.Stringvalue
intversion
Method Summary
intcompareTo(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 © 2011 The Apache Software Foundation