org.apache.cassandra.db.migration
Class RenameKeyspace

java.lang.Object
  extended by org.apache.cassandra.db.migration.Migration
      extended by org.apache.cassandra.db.migration.RenameKeyspace

Deprecated.

@Deprecated
public class RenameKeyspace
extends Migration

Deprecated until we can figure out how to rename on a live node without complicating flushing and compaction.


Field Summary
 
Fields inherited from class org.apache.cassandra.db.migration.Migration
LAST_MIGRATION_KEY, lastVersion, logger, MIGRATIONS_CF, MIGRATIONS_KEY, NAME_VALIDATOR_REGEX, newVersion, rm, SCHEMA_CF
 
Constructor Summary
protected RenameKeyspace()
          Deprecated. Required no-arg constructor
  RenameKeyspace(java.lang.String oldName, java.lang.String newName)
          Deprecated.  
 
Method Summary
 void applyModels()
          Deprecated. keep in mind that applyLive might happen on another machine
 void subdeflate(Migration mi)
          Deprecated. Deflate this Migration into an Avro object.
 void subinflate(Migration mi)
          Deprecated. Inflate this Migration from an Avro object: called after the required no-arg constructor.
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class org.apache.cassandra.db.migration.Migration
announce, apply, deserialize, getLastMigrationId, getLocalMigrations, getVersion, isLegalName, passiveAnnounce, serialize, toUTF8Bytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RenameKeyspace

protected RenameKeyspace()
Deprecated. 
Required no-arg constructor


RenameKeyspace

public RenameKeyspace(java.lang.String oldName,
                      java.lang.String newName)
               throws ConfigurationException,
                      java.io.IOException
Deprecated. 
Throws:
ConfigurationException
java.io.IOException
Method Detail

applyModels

public void applyModels()
                 throws java.io.IOException
Deprecated. 
Description copied from class: Migration
keep in mind that applyLive might happen on another machine

Throws:
java.io.IOException

subdeflate

public void subdeflate(Migration mi)
Deprecated. 
Description copied from class: Migration
Deflate this Migration into an Avro object.

Specified by:
subdeflate in class Migration

subinflate

public void subinflate(Migration mi)
Deprecated. 
Description copied from class: Migration
Inflate this Migration from an Avro object: called after the required no-arg constructor.

Specified by:
subinflate in class Migration

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object


Copyright © 2011 The Apache Software Foundation