hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carter (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-11825) Create Connection and ConnectionManager
Date Tue, 26 Aug 2014 16:07:58 GMT

     [ https://issues.apache.org/jira/browse/HBASE-11825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Carter updated HBASE-11825:
---------------------------

    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:

{code}
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
}
{code}


  was: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.


> Create Connection and ConnectionManager
> ---------------------------------------
>
>                 Key: HBASE-11825
>                 URL: https://issues.apache.org/jira/browse/HBASE-11825
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Carter
>            Assignee: Carter
>
> 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:
> {code}
> 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
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message