/** * Creates a new MUC service and registers it with the manager, and starts up the service. * * @param subdomain Subdomain of the MUC service. * @param description Description of the MUC service (can be null for default description) * @param isHidden True if the service is hidden from view in services lists. * @return MultiUserChatService implementation that was just created. * @throws AlreadyExistsException if the service already exists. */ public MultiUserChatServiceImpl createMultiUserChatService(String subdomain, String description, Boolean isHidden) throws AlreadyExistsException { if (getMultiUserChatServiceID(subdomain) != null) throw new AlreadyExistsException(); MultiUserChatServiceImpl muc = new MultiUserChatServiceImpl(subdomain, description, isHidden); insertService(subdomain, description, isHidden); registerMultiUserChatService(muc); return muc; }
@Override public void run() { // If it's registered already, no need to create it. Most likely this is because the service // is provided by an internal component that registered at startup. This scenario, however, // should really never occur. if (!XMPPServer.getInstance().getMultiUserChatManager().isServiceRegistered(subdomain)) { MultiUserChatService service = new MultiUserChatServiceImpl(subdomain, description, isHidden); XMPPServer.getInstance().getMultiUserChatManager().registerMultiUserChatService(service); } }
/** * Called when manager starts up, to initialize things. */ @Override public void start() { super.start(); loadServices(); for (MultiUserChatService service : mucServices.values()) { registerMultiUserChatService(service); } // Add statistics addTotalRoomStats(); addTotalOccupantsStats(); addTotalConnectedUsers(); addNumberIncomingMessages(); addNumberOutgoingMessages(); ClusterManager.addListener(this); UserEventDispatcher.addListener(this); }
XMPPServer.getInstance().getMultiUserChatManager().registerMultiUserChatService(service);
/** * Creates a new MUC service and registers it with the manager, and starts up the service. * * @param subdomain Subdomain of the MUC service. * @param description Description of the MUC service (can be null for default description) * @param isHidden True if the service is hidden from view in services lists. * @return MultiUserChatService implementation that was just created. * @throws AlreadyExistsException if the service already exists. */ public MultiUserChatServiceImpl createMultiUserChatService(String subdomain, String description, Boolean isHidden) throws AlreadyExistsException { if (getMultiUserChatServiceID(subdomain) != null) throw new AlreadyExistsException(); MultiUserChatServiceImpl muc = new MultiUserChatServiceImpl(subdomain, description, isHidden); insertService(subdomain, description, isHidden); registerMultiUserChatService(muc); return muc; }
@Override public void run() { // If it's registered already, no need to create it. Most likely this is because the service // is provided by an internal component that registered at startup. This scenario, however, // should really never occur. if (!XMPPServer.getInstance().getMultiUserChatManager().isServiceRegistered(subdomain)) { MultiUserChatService service = new MultiUserChatServiceImpl(subdomain, description, isHidden); XMPPServer.getInstance().getMultiUserChatManager().registerMultiUserChatService(service); } }
/** * Called when manager starts up, to initialize things. */ @Override public void start() { super.start(); loadServices(); for (MultiUserChatService service : mucServices.values()) { registerMultiUserChatService(service); } // Add statistics addTotalRoomStats(); addTotalOccupantsStats(); addTotalConnectedUsers(); addNumberIncomingMessages(); addNumberOutgoingMessages(); ClusterManager.addListener(this); UserEventDispatcher.addListener(this); }
XMPPServer.getInstance().getMultiUserChatManager().registerMultiUserChatService(service);