public void create() throws Exception { OGlobalConfiguration.STORAGE_KEEP_OPEN.setValue(false); OFileUtils.deleteRecursively(new File("servers")); String confDir = System.getProperty("g1.server.conf.dir"); if (confDir == null) { confDir = "target/classes"; System.setProperty("g1.server.conf.dir", confDir); } String databaseUrl = getDatabaseURL(); initializeExceptionRecordTable(databaseUrl); }
@BeforeClass public void before() { oldStorageOpen = OGlobalConfiguration.STORAGE_KEEP_OPEN.getValueAsBoolean(); OGlobalConfiguration.STORAGE_KEEP_OPEN.setValue(false); }
@AfterClass public void after() { OGlobalConfiguration.STORAGE_KEEP_OPEN.setValue(oldStorageOpen); }
public SimulateOperationsAgainstServer() { OGlobalConfiguration.CLIENT_CHANNEL_MAX_POOL.setValue(threads + 5); OGlobalConfiguration.STORAGE_KEEP_OPEN.setValue(true); }