Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD88B110E2 for ; Thu, 1 May 2014 05:45:21 +0000 (UTC) Received: (qmail 57033 invoked by uid 500); 1 May 2014 05:45:19 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 56789 invoked by uid 500); 1 May 2014 05:45:17 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 56774 invoked by uid 99); 1 May 2014 05:45:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2014 05:45:17 +0000 Date: Thu, 1 May 2014 05:45:17 +0000 (UTC) From: "Mikhail Antonov (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-11092) Server interface should have method getConsensusProvider() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-11092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Antonov updated HBASE-11092: ------------------------------------ Description: As discussed in comments to HBASE-10915, we need to have a proper way to retrieve instance of consensus provider, and Server interface seems the right one. Since Server interface lives in hbase-client maven module, the following approach is implemented in this patch: - hbase-client module has very basic (almost marker) interface ConsensusProviderto return instance of consensus provider from the Server - hbase-server module has BaseConsensusProvider which defines the consensus interfaces - Implementations shall subclass BaseConsensusProvider - whoever wants to get ConsensusProvider from raw Server interface on hbase-server side, has to typecast: (BaseConsensusProvider) was:As discussed in comments to HBASE-10915, we need to have a proper way to retrieve instance of consensus provider, and Server interface seems the right one. > Server interface should have method getConsensusProvider() > ---------------------------------------------------------- > > Key: HBASE-11092 > URL: https://issues.apache.org/jira/browse/HBASE-11092 > Project: HBase > Issue Type: Sub-task > Components: Consensus > Affects Versions: 0.99.0 > Reporter: Mikhail Antonov > Assignee: Mikhail Antonov > Fix For: 0.99.0 > > Attachments: HBASE-11092.diff, HBASE-11092.patch > > > As discussed in comments to HBASE-10915, we need to have a proper way to retrieve instance of consensus provider, and Server interface seems the right one. > Since Server interface lives in hbase-client maven module, the following approach is implemented in this patch: > - hbase-client module has very basic (almost marker) interface ConsensusProviderto return instance of consensus provider from the Server > - hbase-server module has BaseConsensusProvider which defines the consensus interfaces > - Implementations shall subclass BaseConsensusProvider > - whoever wants to get ConsensusProvider from raw Server interface on hbase-server side, has to typecast: (BaseConsensusProvider) -- This message was sent by Atlassian JIRA (v6.2#6252)