cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cassandra Wiki] Update of "Embedding" by JonathanEllis
Date Mon, 21 Dec 2009 18:36:40 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.

The "Embedding" page has been changed by JonathanEllis.
http://wiki.apache.org/cassandra/Embedding

--------------------------------------------------

New page:
You can run a Cassandra node internal to your own JVM-based code easily.  Here's what CassandraDaemon
does:

{{{
        // initialize keyspaces
        for (String table : Table.getAllTableNames())
        {
            if (logger.isDebugEnabled())
                logger.debug("opening keyspace " + table);
            Table tbl = Table.open(table);
            tbl.onStart();
        }

        // replay the log if necessary
        RecoveryManager.doRecovery();

        // start server internals
        StorageService.instance().initServer();
}}}

Then you can use the internal StorageProxy API without going through Thrift.

Mime
View raw message