@Override public void run() { XMPPServer.getInstance().getMultiUserChatManager().unregisterMultiUserChatService(subdomain); }
/** * Deletes a configured MultiUserChatService by ID, and shuts it down. * * @param serviceID The ID opf the service to be deleted. * @throws NotFoundException if the service was not found. */ public void removeMultiUserChatService(Long serviceID) throws NotFoundException { MultiUserChatServiceImpl muc = (MultiUserChatServiceImpl) getMultiUserChatService(serviceID); if (muc == null) { Log.error("MultiUserChatManager: Unable to find service to remove for service ID "+serviceID); throw new NotFoundException(); } unregisterMultiUserChatService(muc.getServiceName()); deleteService(serviceID); }
/** * Called when manager is stopped, to clean things up. */ @Override public void stop() { super.stop(); ClusterManager.removeListener(this); UserEventDispatcher.removeListener(this); // Remove the statistics. StatisticsManager.getInstance().removeStatistic(roomsStatKey); StatisticsManager.getInstance().removeStatistic(occupantsStatKey); StatisticsManager.getInstance().removeStatistic(usersStatKey); StatisticsManager.getInstance().removeStatistic(incomingStatKey); StatisticsManager.getInstance().removeStatistic(outgoingStatKey); for (MultiUserChatService service : mucServices.values()) { unregisterMultiUserChatService(service.getServiceName()); } }
@Override public void run() { XMPPServer.getInstance().getMultiUserChatManager().unregisterMultiUserChatService(subdomain); }
/** * Deletes a configured MultiUserChatService by ID, and shuts it down. * * @param serviceID The ID opf the service to be deleted. * @throws NotFoundException if the service was not found. */ public void removeMultiUserChatService(Long serviceID) throws NotFoundException { MultiUserChatServiceImpl muc = (MultiUserChatServiceImpl) getMultiUserChatService(serviceID); if (muc == null) { Log.error("MultiUserChatManager: Unable to find service to remove for service ID "+serviceID); throw new NotFoundException(); } unregisterMultiUserChatService(muc.getServiceName()); deleteService(serviceID); }
/** * Called when manager is stopped, to clean things up. */ @Override public void stop() { super.stop(); ClusterManager.removeListener(this); UserEventDispatcher.removeListener(this); // Remove the statistics. StatisticsManager.getInstance().removeStatistic(roomsStatKey); StatisticsManager.getInstance().removeStatistic(occupantsStatKey); StatisticsManager.getInstance().removeStatistic(usersStatKey); StatisticsManager.getInstance().removeStatistic(incomingStatKey); StatisticsManager.getInstance().removeStatistic(outgoingStatKey); for (MultiUserChatService service : mucServices.values()) { unregisterMultiUserChatService(service.getServiceName()); } }