|
||||||||||
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
Nested Class Summary | |
---|---|
static class |
MigrationManager.MigrationsSerializer
|
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.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. |
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 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 |