|
||||||||||
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(java.util.Collection<RowMutation> schema)
actively announce a new version to active hosts via rpc |
static java.util.Collection<RowMutation> |
deserializeMigrationMessage(byte[] data,
int version)
Deserialize migration message considering data compatibility starting from version 1.1 |
static boolean |
isReadyForBootstrap()
|
void |
onAlive(java.net.InetAddress endpoint,
EndpointState state)
|
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 |
rectifySchema(java.util.UUID theirVersion,
java.net.InetAddress endpoint)
|
static byte[] |
serializeSchema(java.util.Collection<RowMutation> schema,
int version)
Serialize given row mutations into raw bytes |
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 rectifySchema(java.util.UUID theirVersion, java.net.InetAddress endpoint)
public static boolean isReadyForBootstrap()
public static void announce(java.util.Collection<RowMutation> schema)
schema
- The list of schema mutations to be applied on the recipientpublic static void passiveAnnounce(java.util.UUID version)
version
- The schema version to announcepublic static byte[] serializeSchema(java.util.Collection<RowMutation> schema, int version) throws java.io.IOException
schema
- The row mutations to serializeversion
- The version of the message service to use for serialization
java.io.IOException
- on failed serializationpublic static java.util.Collection<RowMutation> deserializeMigrationMessage(byte[] data, int version) throws java.io.IOException
data
- The data of the message from coordinator which hold schema mutations to applyversion
- The version of the message
java.io.IOException
- if message is of incompatible version or data is corrupted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |