You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by Apache Wiki <wi...@apache.org> on 2009/12/21 19:36:40 UTC
[Cassandra Wiki] Update of "Embedding" by JonathanEllis
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.