You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Keith Turner (JIRA)" <ji...@apache.org> on 2019/04/23 15:34:00 UTC

[jira] [Resolved] (ACCUMULO-4822) Remove observers from configuration

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

Keith Turner resolved ACCUMULO-4822.
------------------------------------
    Resolution: Duplicate

https://github.com/apache/accumulo/issues/1123

> Remove observers from configuration
> -----------------------------------
>
>                 Key: ACCUMULO-4822
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4822
>             Project: Accumulo
>          Issue Type: Improvement
>            Reporter: Keith Turner
>            Priority: Major
>             Fix For: 2.0.0
>
>
> As part of the work done for ACCUMULO-4779 the method getUpdateCount was added to AccumuloConfiguration.  Subclasses of AccumuloConfiguration increase a counter each time it changes and this counter is available via getUpdateCount.  Anything that is derived from configuration can be cached and this counter can be used to know when it needs to be derived again.
> Some AccumuloConfigurations are also observable.  I think this observer pattern could be dropped in favor of using this counter.  I think this change would simplify the code.  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)