Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-11825

Create Connection and ConnectionManager

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.99.0
    • None
    • None
    • Reviewed

    Description

      This is further cleanup of the HBase interface for 1.0 after implementing the new Table and Admin interfaces. Following Enis's guidelines in HBASE-10602, this JIRA will generate a new ConnectionManager to replace HCM and Connection to replace HConnection.

      For more detail, this JIRA intends to implement this portion:

      interface Connection extends Closeable{
        Table getTable(), and rest of HConnection methods 
        getAdmin()
        // no deprecated methods (cache related etc)
      }
      
      @Deprecated
      interface HConnection extends Connection {
        @Deprecated
        HTableInterface getTable()
        // users are encouraged to use Connection
      }
      
      class ConnectionManager {
        createConnection(Configuration) // not sure whether we want a static factory method to create connections or a ctor
      }
      
      @Deprecated
      class HCM extends ConnectionManager {
        // users are encouraged to use ConnectionManager
      }
      

      Attachments

        1. HBASE_11825.patch
          36 kB
          Solomon Duskis
        2. HBASE_11825_v1.patch
          37 kB
          Solomon Duskis

        Issue Links

          Activity

            People

              sduskis Solomon Duskis
              carterpage Carter
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: