|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.service.MigrationManager
public class MigrationManager
Constructor Summary | |
---|---|
MigrationManager()
|
Method Summary | |
---|---|
static void |
announce(IColumn column)
actively announce a new version to active hosts via rpc |
static void |
applyMigrations(java.util.UUID from,
java.util.UUID to)
gets called during startup if we notice a mismatch between the current migration version and the one saved. |
static boolean |
isReadyForBootstrap()
|
static java.util.Collection<Column> |
makeColumns(Message msg)
|
void |
onAlive(java.net.InetAddress endpoint,
EndpointState state)
gets called after a this node joins a cluster |
void |
onChange(java.net.InetAddress endpoint,
ApplicationState state,
VersionedValue value)
|
void |
onDead(java.net.InetAddress endpoint,
EndpointState state)
|
void |
onJoin(java.net.InetAddress endpoint,
EndpointState epState)
Use to inform interested parties about the change in the state for specified endpoint |
void |
onRemove(java.net.InetAddress endpoint)
|
void |
onRestart(java.net.InetAddress endpoint,
EndpointState state)
Called whenever a node is restarted. |
static void |
passiveAnnounce(java.util.UUID version)
announce my version passively over gossip |
static void |
rectify(java.util.UUID theirVersion,
java.net.InetAddress endpoint)
will either push or pull an updating depending on who is behind. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MigrationManager()
Method Detail |
---|
public void onJoin(java.net.InetAddress endpoint, EndpointState epState)
IEndpointStateChangeSubscriber
onJoin
in interface IEndpointStateChangeSubscriber
endpoint
- endpoint for which the state change occurred.epState
- state that actually changed for the above endpoint.public void onChange(java.net.InetAddress endpoint, ApplicationState state, VersionedValue value)
onChange
in interface IEndpointStateChangeSubscriber
public void onAlive(java.net.InetAddress endpoint, EndpointState state)
onAlive
in interface IEndpointStateChangeSubscriber
public void onDead(java.net.InetAddress endpoint, EndpointState state)
onDead
in interface IEndpointStateChangeSubscriber
public void onRestart(java.net.InetAddress endpoint, EndpointState state)
IEndpointStateChangeSubscriber
state.isAlive() == false
as state
is from before the restarted node is marked up.
onRestart
in interface IEndpointStateChangeSubscriber
public void onRemove(java.net.InetAddress endpoint)
onRemove
in interface IEndpointStateChangeSubscriber
public static void rectify(java.util.UUID theirVersion, java.net.InetAddress endpoint)
public static boolean isReadyForBootstrap()
public static void announce(IColumn column)
public static void passiveAnnounce(java.util.UUID version)
public static void applyMigrations(java.util.UUID from, java.util.UUID to) throws java.io.IOException
java.io.IOException
public static java.util.Collection<Column> makeColumns(Message msg) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |