|
||||||||||
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 |
announceColumnFamilyDrop(java.lang.String ksName,
java.lang.String cfName)
|
static void |
announceColumnFamilyUpdate(CFMetaData cfm)
|
static void |
announceKeyspaceDrop(java.lang.String ksName)
|
static void |
announceKeyspaceUpdate(KSMetaData ksm)
|
static void |
announceNewColumnFamily(CFMetaData cfm)
|
static void |
announceNewKeyspace(KSMetaData ksm)
|
static java.util.Collection<RowMutation> |
deserializeMigrationMessage(byte[] data,
int version)
Deserialize migration message considering data compatibility starting from version 1.1 |
static java.util.UUID |
getLastMigrationId()
Deprecated. |
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 |
resetLocalSchema()
Clear all locally stored schema information and reset schema to initial state. |
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 boolean isReadyForBootstrap()
public static void announceNewKeyspace(KSMetaData ksm) throws ConfigurationException
ConfigurationException
public static void announceNewColumnFamily(CFMetaData cfm) throws ConfigurationException
ConfigurationException
public static void announceKeyspaceUpdate(KSMetaData ksm) throws ConfigurationException
ConfigurationException
public static void announceColumnFamilyUpdate(CFMetaData cfm) throws ConfigurationException
ConfigurationException
public static void announceKeyspaceDrop(java.lang.String ksName) throws ConfigurationException
ConfigurationException
public static void announceColumnFamilyDrop(java.lang.String ksName, java.lang.String cfName) throws ConfigurationException
ConfigurationException
public 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 corruptedpublic static void resetLocalSchema() throws java.io.IOException
java.io.IOException
- if schema tables truncation fails@Deprecated public static java.util.UUID getLastMigrationId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |