/** * 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(); }
public void tearDown() throws Exception { super.tearDown(); }
public void setUp() throws Exception { super.setUp(); // connect to the database. store = new ScaleOutTripleStore(client.getFederation(), "test_", ITx.UNISOLATED, client.getProperties()); store.create(); }
/** * Recursively removes any files and subdirectories and then removes the * file (or directory) itself. * * @param f A file or directory. */ private void recursiveDelete(File f) { if(f.isDirectory()) { File[] children = f.listFiles(); for(int i=0; i<children.length; i++) { recursiveDelete( children[i] ); } } System.err.println("Removing: "+f); if (!f.delete()) throw new RuntimeException("Could not remove: " + f); }
public void setUp() throws Exception { super.setUp(); // connect to the database. store = new ScaleOutTripleStore(client.getFederation(), "test_", ITx.UNISOLATED, client.getProperties()); store.create(); }
/** * Recursively removes any files and subdirectories and then removes the * file (or directory) itself. * * @param f A file or directory. */ private void recursiveDelete(File f) { if(f.isDirectory()) { File[] children = f.listFiles(); for(int i=0; i<children.length; i++) { recursiveDelete( children[i] ); } } System.err.println("Removing: "+f); if (!f.delete()) throw new RuntimeException("Could not remove: " + f); }
/** * 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(); }
public void setUp() throws Exception { super.setUp(); // connect to the database. store = new ScaleOutTripleStore(client.getFederation(), "test_", ITx.UNISOLATED, client.getProperties()); store.create(); }
public void tearDown() throws Exception { super.tearDown(); }
/** * Recursively removes any files and subdirectories and then removes the * file (or directory) itself. * * @param f A file or directory. */ private void recursiveDelete(File f) { if(f.isDirectory()) { File[] children = f.listFiles(); for(int i=0; i<children.length; i++) { recursiveDelete( children[i] ); } } System.err.println("Removing: "+f); if (!f.delete()) throw new RuntimeException("Could not remove: " + f); }
/** * 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(); }
public void tearDown() throws Exception { super.tearDown(); }