/** * Basic test of the concurrent create and discovery of a KB. */ public void test_concurrentKBCreateAndDiscovery() throws Exception { final String namespace = getName(); // Inherit the properties from the delegate. final Properties properties = getProperties(); Journal jnl = null; try { // New Journal instance. jnl = new Journal(properties); doConcurrentCreateAndDiscoveryTest(jnl, namespace); } finally { if (jnl != null) jnl.destroy(); } }
/** * Runs the concurrent KB Create and Discovery test multiple times against a * single journal, but using a distinct KB namespace for each test. * <p> * Note: This does not attempt to create the distinct KBs concurrently. */ public void test_concurrentKBCreateAndDiscoveryStressTestOnSharedJournal() throws Exception { // Inherit the properties from the delegate. final Properties properties = getProperties(); Journal jnl = null; try { // New Journal instance. jnl = new Journal(properties); for (int i = 0; i < 100; i++) { final String namespace = getName() + "-" + i; doConcurrentCreateAndDiscoveryTest(jnl, namespace); } } finally { if (jnl != null) jnl.destroy(); } }
/** * Basic test of the concurrent create and discovery of a KB. */ public void test_concurrentKBCreateAndDiscovery() throws Exception { final String namespace = getName(); // Inherit the properties from the delegate. final Properties properties = getProperties(); Journal jnl = null; try { // New Journal instance. jnl = new Journal(properties); doConcurrentCreateAndDiscoveryTest(jnl, namespace); } finally { if (jnl != null) jnl.destroy(); } }
/** * Runs the concurrent KB Create and Discovery test multiple times against a * single journal, but using a distinct KB namespace for each test. * <p> * Note: This does not attempt to create the distinct KBs concurrently. */ public void test_concurrentKBCreateAndDiscoveryStressTestOnSharedJournal() throws Exception { // Inherit the properties from the delegate. final Properties properties = getProperties(); Journal jnl = null; try { // New Journal instance. jnl = new Journal(properties); for (int i = 0; i < 100; i++) { final String namespace = getName() + "-" + i; doConcurrentCreateAndDiscoveryTest(jnl, namespace); } } finally { if (jnl != null) jnl.destroy(); } }