@Override public void shutdown() { topic.destroy(); }
/** * {@inheritDoc} */ @Override public void destroy() { if (!isClosed.get()) { topic.destroy(); topic = null; } super.destroy(); }
public static void shutdown() { HazelcastInstance hzl = getHazelcastInstance(); hzl.getTopic(FF_COMMIT_TOPIC_NAME).destroy(); hzl.getLifecycleService().shutdown(); /* strangely this is here. Perhaps we should move these clear()s elsewhere. They are needed when the classes are reused via FenixFramework.shutdown()/initialize(). I guess these maps should be in this class not in COTx */ CommitOnlyTransaction.txVersionToCommitIdMap.clear(); CommitOnlyTransaction.commitsMap.clear(); }
@Override public void destroyTemporaryDestination(String destination ) { if (temporaryQueues.remove(destination)) { IQueue<Object> queue = resolveQueue(destination); if (queue != null) { queue.destroy(); } } else if (temporaryTopics.remove(destination)) { ITopic<Object> topic = resolveTopic(destination); if (topic != null) { topic.destroy(); } } }
log.info("Removing hazelcast topic [{}]", topicName); try { topic.destroy(); } catch (Throwable t) {
@Teardown public void teardown() { for (ITopic topic : topics) { topic.destroy(); } totalExpectedCounter.destroy(); totalFoundCounter.destroy(); } }
protected void handleDestroy(String[] args) { String iteratorStr = args[0]; if (iteratorStr.startsWith("s.")) { getSet().destroy(); } else if (iteratorStr.startsWith("m.")) { getMap().destroy(); } else if (iteratorStr.startsWith("mm.")) { getMultiMap().destroy(); } else if (iteratorStr.startsWith("q.")) { getQueue().destroy(); } else if (iteratorStr.startsWith("l.")) { getList().destroy(); } else if (iteratorStr.startsWith("t.")) { getTopic().destroy(); } println("Destroyed!"); }
protected void handleDestroy(String[] args) { String iteratorStr = args[0]; if (iteratorStr.startsWith("s.")) { getSet().destroy(); } else if (iteratorStr.startsWith("m.")) { getMap().destroy(); } else if (iteratorStr.startsWith("mm.")) { getMultiMap().destroy(); } else if (iteratorStr.startsWith("q.")) { getQueue().destroy(); } else if (iteratorStr.startsWith("l.")) { getList().destroy(); } else if (iteratorStr.startsWith("t.")) { getTopic().destroy(); } println("Destroyed!"); }
protected void handleDestroy(String[] args) { String iteratorStr = args[0]; if (iteratorStr.startsWith("s.")) { getSet().destroy(); } else if (iteratorStr.startsWith("m.")) { getMap().destroy(); } else if (iteratorStr.startsWith("mm.")) { getMultiMap().destroy(); } else if (iteratorStr.startsWith("q.")) { getQueue().destroy(); } else if (iteratorStr.startsWith("l.")) { getList().destroy(); } else if (iteratorStr.startsWith("t.")) { getTopic().destroy(); } println("Destroyed!"); }
protected void handleDestroy(String[] args) { String iteratorStr = args[0]; if (iteratorStr.startsWith("s.")) { getSet().destroy(); } else if (iteratorStr.startsWith("m.")) { getMap().destroy(); } else if (iteratorStr.startsWith("mm.")) { getMultiMap().destroy(); } else if (iteratorStr.startsWith("q.")) { getQueue().destroy(); } else if (iteratorStr.startsWith("l.")) { getList().destroy(); } else if (iteratorStr.startsWith("t.")) { getTopic().destroy(); } println("Destroyed!"); }