https://redmine.dataone.org/https://redmine.dataone.org/favicon.ico2016-02-05T19:15:18ZDataONE TasksInfrastructure - Task #7636: make singletons thread-safehttps://redmine.dataone.org/issues/7636?journal_id=270172016-02-05T19:15:18ZRob Nahfrnahf@epscor.unm.edu
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/diff/27017?detail_id=38378">diff</a>)</li><li><strong>% Done</strong> changed from <i>0</i> to <i>30</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li></ul><p>CertificateManager holds a registry of nodes that should be universal - it would be confusing to have two instantiations of CertificateManager each holding half of the registry.</p>
<p>Refactoring to implement the SingletonHelper approach.</p>
Infrastructure - Task #7636: make singletons thread-safehttps://redmine.dataone.org/issues/7636?journal_id=270182016-02-05T19:29:44ZRob Nahfrnahf@epscor.unm.edu
<ul></ul><p>DataoneEMLParser is a singleton, but with negligible consequence for accidentally having two instantiations. Skipping refactoring.</p>
Infrastructure - Task #7636: make singletons thread-safehttps://redmine.dataone.org/issues/7636?journal_id=270562016-02-10T21:41:52ZRob Nahfrnahf@epscor.unm.edu
<ul></ul><p>refactored CertificateManager and ObjectFormatCache getInstance() methods as per above.<br><br>
In ObjectFormatCache, made the refreshCache method synchronized, and the map a ConcurrentHashMap.</p>
<p>ObjectFormatInfo singleton has a reload() method that might make doing the same for that class difficult.</p>
Infrastructure - Task #7636: make singletons thread-safehttps://redmine.dataone.org/issues/7636?journal_id=273342016-04-01T17:19:18ZRob Nahfrnahf@epscor.unm.edu
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Closed</i></li><li><strong>translation missing: en.field_remaining_hours</strong> set to <i>0.0</i></li><li><strong>% Done</strong> changed from <i>30</i> to <i>100</i></li></ul><p>progress made took care of the low-hanging fruit.</p>