com.h3c.util.persistence.cassandra.entitymgr

## Class ConnectionManager

- java.lang.Object
- - com.h3c.util.persistence.cassandra.entitymgr.ConnectionManager

-     public class ConnectionManager
      extends Object

  Creates an Astynax instance for specific Cassandra context. Checks for keyspace context within the Cassandra Storage and create it if it is not created.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConnectionManager(KeySpaceConfig cassandraConfigSetup)` Constructor for creating a Client context for connection with the database.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static com.netflix.astyanax.Keyspace` | `getKeySpace()` Return the Keyspace object.
    `void` | `shutDown()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ConnectionManager

          public ConnectionManager(KeySpaceConfig cassandraConfigSetup)
                            throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException

      Constructor for creating a Client context for connection with the database.
      Parameters:
        `cassandraConfigSetup` - KeySpaceConfig
      Throws:
        `com.netflix.astyanax.connectionpool.exceptions.ConnectionException` - If the database connection cannot be established, this exception is thrown.

  - ### Method Detail

    - #### getKeySpace

          public static com.netflix.astyanax.Keyspace getKeySpace()

      Return the Keyspace object. This is used for all operations in the database client.
      Returns:
        The Keyspace object

    - #### shutDown

          public void shutDown()

Copyright © 2014. All Rights Reserved.