/** * Return the effective configuration properties for the named data set. * <p> * Note: While it is possible to change some configuration options are a * data set has been created, many aspects of a "data set" configuration are * "baked in" when the data set is created and can not be changed. For this * reason, no general purpose mechanism is being offered to change the * properties for a configured data set instance. * * @param namespace * The name of the data set. * * @return The effective configuration properties for that named data set. * * @throws Exception */ public Properties getRepositoryProperties(final String namespace) throws Exception { return getRepositoryProperties(namespace, UUID.randomUUID()); }
final Properties p = m_mgr.getRepositoryProperties(namespace);
@Override protected void doApply(final RemoteRepositoryManager rmgr, final UUID uuid) throws Exception { // obtain non-exclusive lock for random existing namespace. final String namespace = lockRandomNamespace(); try { rmgr.getRepositoryProperties(namespace, uuid); } finally { // release non-exclusive lock. unlockNamespace(namespace); } }
final Properties p = m_mgr.getRepositoryProperties(namespace);
@Override protected void doApply(final RemoteRepositoryManager rmgr, final UUID uuid) throws Exception { // obtain non-exclusive lock for random existing namespace. final String namespace = lockRandomNamespace(); try { rmgr.getRepositoryProperties(namespace, uuid); } finally { // release non-exclusive lock. unlockNamespace(namespace); } }
boolean found = true; try { final Properties p = m_mgr.getRepositoryProperties(ns); assert p != null; found = true;
m_mgr.getRepositoryProperties(randomNS); fail("Should not exist: " + randomNS); } catch (HttpException ex) { final Properties p = m_mgr.getRepositoryProperties(randomNS); assertNotNull(p);
m_mgr.getRepositoryProperties(namespace); log.warn("Got properties for " + namespace); m_mgr.getRepositoryProperties(namespace2); fail("Should not exist: " + namespace2); } catch (HttpException ex) { final Properties p = m_mgr.getRepositoryProperties(namespace2); assertNotNull(p); p = m_mgr.getRepositoryProperties(ns); } catch (Throwable t) { log.warn("Couldn't get properties for " + ns, t); // to help see failure in log! m_mgr.getRepositoryProperties(ns);
m_mgr.getRepositoryProperties(randomNS); fail("Should not exist: " + randomNS); } catch (HttpException ex) { final Properties p = m_mgr.getRepositoryProperties(randomNS); assertNotNull(p);
boolean found = true; try { final Properties p = m_mgr.getRepositoryProperties(ns); assert p != null; found = true;
m_mgr.getRepositoryProperties(namespace); log.warn("Got properties for " + namespace); m_mgr.getRepositoryProperties(namespace2); fail("Should not exist: " + namespace2); } catch (HttpException ex) { final Properties p = m_mgr.getRepositoryProperties(namespace2); assertNotNull(p); p = m_mgr.getRepositoryProperties(ns); } catch (Throwable t) { log.warn("Couldn't get properties for " + ns, t); // to help see failure in log! m_mgr.getRepositoryProperties(ns);