Commit 44b6d092 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Added new messages for retrieving component and s2s sessions.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1436 b35dd754-fafc-0310-a699-88a17e54d16e
parent 607e0253
......@@ -1046,6 +1046,37 @@ public class SessionManager extends BasicModule {
return Collections.unmodifiableCollection(sessions.keySet());
}
/**
* Returns a collection with the established sessions from external components.
*
* @return a collection with the established sessions from external components.
*/
public Collection<ComponentSession> getComponentSessions() {
return Collections.unmodifiableCollection(componentsSessions);
}
/**
* Returns a collection with the hostnames of the remote servers that currently have an
* incoming server connection to this server.
*
* @return a collection with the hostnames of the remote servers that currently have an
* incoming server connection to this server.
*/
public Collection<String> getIncomingServers() {
return Collections.unmodifiableCollection(incomingServerSessions.keySet());
}
/**
* Returns a collection with the hostnames of the remote servers that currently may receive
* packets sent from this server.
*
* @return a collection with the hostnames of the remote servers that currently may receive
* packets sent from this server.
*/
public Collection<String> getOutgoingServers() {
return Collections.unmodifiableCollection(outgoingServerSessions.keySet());
}
/**
* Broadcasts the given data to all connected sessions. Excellent
* for server administration messages.
......
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