Commit 93da3828 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

It is not possible to return list of installed components (domains) accross the cluster

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9529 b35dd754-fafc-0310-a699-88a17e54d16e
parent b7a49092
......@@ -264,6 +264,14 @@ public interface RoutingTable {
*/
int getServerSessionsCount();
/**
* Returns domains of components hosted by the server. When running in a cluster, domains of
* components running in any node will be returned.
*
* @return domains of components hosted by the server.
*/
Collection<String> getComponentsDomains();
/**
* Returns the list of routes associated to the specified route address. When asking
* for routes to a remote server then the requested JID will be included as the only
......
......@@ -628,7 +628,7 @@ public class PluginManager {
childPluginMap.remove(plugin);
firePluginDestroyedEvent(pluginName, plugin);
}
else {
else if (plugin != null) {
// Restore references since we failed to remove the plugin
plugins.put(pluginName, plugin);
pluginDirs.put(plugin, pluginFile);
......
......@@ -546,6 +546,10 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable, Clust
return localRoutingTable.getServerRoutes().size();
}
public Collection<String> getComponentsDomains() {
return componentsCache.keySet();
}
public boolean hasClientRoute(JID jid) {
return usersCache.containsKey(jid.toString()) || isAnonymousRoute(jid);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment