/** * Data files are placed into a directory named by the test. If the * directory exists, then it is removed before the federation is set up. */ public void setUp() throws Exception { final File dataDir = new File(getName()); if (dataDir.exists() && dataDir.isDirectory()) { recursiveDelete(dataDir); } final Properties properties = new Properties(getProperties()); properties.setProperty(EmbeddedClient.Options.DATA_DIR, getName()); /* * Disable the o/s specific statistics collection for the test run. * * Note: You only need to enable this if you are trying to track the * statistics or if you are testing index partition moves, since moves * rely on the per-host counters collected from the o/s. */ properties.setProperty(EmbeddedClient.Options.COLLECT_PLATFORM_STATISTICS,"false"); client = new EmbeddedClient(properties); client.connect(); }
/** * Data files are placed into a directory named by the test. If the * directory exists, then it is removed before the federation is set up. */ public void setUp() throws Exception { final File dataDir = new File(getName()); if (dataDir.exists() && dataDir.isDirectory()) { recursiveDelete(dataDir); } final Properties properties = new Properties(getProperties()); properties.setProperty(EmbeddedClient.Options.DATA_DIR, getName()); /* * Disable the o/s specific statistics collection for the test run. * * Note: You only need to enable this if you are trying to track the * statistics or if you are testing index partition moves, since moves * rely on the per-host counters collected from the o/s. */ properties.setProperty(EmbeddedClient.Options.COLLECT_PLATFORM_STATISTICS,"false"); client = new EmbeddedClient(properties); client.connect(); }
/** * Data files are placed into a directory named by the test. If the * directory exists, then it is removed before the federation is set up. */ public void setUp() throws Exception { final File dataDir = new File(getName()); if (dataDir.exists() && dataDir.isDirectory()) { recursiveDelete(dataDir); } final Properties properties = new Properties(getProperties()); properties.setProperty(EmbeddedClient.Options.DATA_DIR, getName()); /* * Disable the o/s specific statistics collection for the test run. * * Note: You only need to enable this if you are trying to track the * statistics or if you are testing index partition moves, since moves * rely on the per-host counters collected from the o/s. */ properties.setProperty(EmbeddedClient.Options.COLLECT_PLATFORM_STATISTICS,"false"); client = new EmbeddedClient(properties); client.connect(); }