public class CassCluster extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.datastax.driver.core.Session |
getSession()
Return a cached cassandra Session.
|
static com.datastax.driver.core.Session |
getSession(boolean overwrite)
Return a cached cassandra Session.
|
static void |
shutdown() |
public static com.datastax.driver.core.Session getSession()
throws Exception
Exception - on any issuepublic static com.datastax.driver.core.Session getSession(boolean overwrite)
throws Exception
overwrite - true will overwrite an existing keyspace at initialization
false will maintain an existing keyspaceException - on any issuepublic static void shutdown()
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.