コード例 #1
0
 @After
 public void tearDown() {
   if (rcmFactory != null) {
     rcmFactory.stopManagers();
   }
   rcmFactory = null;
 }
コード例 #2
0
  @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;
  }
コード例 #3
0
 protected RemoteCache<Object, Object> createCache(RemoteInfinispanMBeans mbeans) {
   return rcmFactory.createCache(mbeans);
 }
コード例 #4
0
 protected RemoteCache<Object, Object> createCache(
     RemoteInfinispanMBeans cacheBeans, String protocolVersion) {
   return rcmFactory.createCache(cacheBeans, protocolVersion);
 }