@After public void tearDown() { if (rcmFactory != null) { rcmFactory.stopManagers(); } rcmFactory = null; }
@AfterClass public static void cleanup() { /** We need to drop the tables, because of DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704 */ try { if (dbServer.bucketTable != null && dbServer.bucketTable.getConnectionUrl().contains("db2")) { dbServer.bucketTable.dropTable(); dbServer.stringTable.dropTable(); } } catch (Exception e) { // catching the exception, because the drop is not part of the tests System.out.println("Couldn't drop the tables: "); e.printStackTrace(); } if (rcmFactory != null) { rcmFactory.stopManagers(); } rcmFactory = null; }
protected RemoteCache<Object, Object> createCache(RemoteInfinispanMBeans mbeans) { return rcmFactory.createCache(mbeans); }
protected RemoteCache<Object, Object> createCache( RemoteInfinispanMBeans cacheBeans, String protocolVersion) { return rcmFactory.createCache(cacheBeans, protocolVersion); }