|
Openfire 3.5.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.multiplex.ConnectionMultiplexerManager
public class ConnectionMultiplexerManager
A ConnectionMultiplexerManager is responsible for keeping track of the connected Connection Managers and the sessions that were established with the Connection Managers. Moreover, a ConnectionMultiplexerManager is able to create, get and close client sessions based on Connection requests.
Method Summary | |
---|---|
void |
anonymousSessionCreated(Session session)
Notification event indicating that an anonymous user has authenticated with the server. |
void |
anonymousSessionDestroyed(Session session)
An authenticated session of an anonymous user was destroyed. |
void |
closeClientSession(String connectionManagerDomain,
String streamID)
Closes an existing client session that was established through a connection manager. |
void |
createClientSession(String connectionManagerDomain,
String streamID)
Creates a new client session that was established to the specified connection manager. |
LocalClientSession |
getClientSession(String connectionManagerDomain,
String streamID)
Returns the ClientSession with the specified stream ID that is being hosted by the specified connection manager. |
static String |
getDefaultSecret()
Returns the default secret key that connection managers should present while trying to establish a new connection. |
static ConnectionMultiplexerManager |
getInstance()
Returns the unique instance of this class. |
Collection<String> |
getMultiplexers()
Returns the names of the connected connection managers to this server. |
ConnectionMultiplexerSession |
getMultiplexerSession(String connectionManagerDomain)
Returns a ConnectionMultiplexerSession for the specified connection manager
domain or null if none was found. |
int |
getNumConnectedClients(String managerName)
Returns the number of connected clients to a specific connection manager. |
void |
multiplexerAvailable(String connectionManagerName)
A connection manager has become available. |
void |
multiplexerUnavailable(String connectionManagerName)
A connection manager has gone unavailable. |
void |
resourceBound(Session session)
A session has finished resource binding. |
void |
sessionCreated(Session session)
Notification event indicating that a user has authenticated with the server. |
void |
sessionDestroyed(Session session)
An authenticated session of a non anonymous user was destroyed. |
static void |
setDefaultSecret(String defaultSecret)
Sets the default secret key that connection managers should present while trying to establish a new connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ConnectionMultiplexerManager getInstance()
public static String getDefaultSecret()
public static void setDefaultSecret(String defaultSecret)
defaultSecret
- the default secret key that connection managers should present
while trying to establish a new connection.public void createClientSession(String connectionManagerDomain, String streamID)
connectionManagerDomain
- the connection manager that is handling the connection
of the session.streamID
- the stream ID created by the connection manager for the new session.public void closeClientSession(String connectionManagerDomain, String streamID)
connectionManagerDomain
- the connection manager that is handling the connection
of the session.streamID
- the stream ID created by the connection manager for the session.public void multiplexerAvailable(String connectionManagerName)
connectionManagerName
- the connection manager that has become available.public void multiplexerUnavailable(String connectionManagerName)
connectionManagerName
- the connection manager that is no longer available.public LocalClientSession getClientSession(String connectionManagerDomain, String streamID)
connectionManagerDomain
- the connection manager that is handling the connection
of the session.streamID
- the stream ID created by the connection manager for the session.
public ConnectionMultiplexerSession getMultiplexerSession(String connectionManagerDomain)
ConnectionMultiplexerSession
for the specified connection manager
domain or null if none was found. In case the connection manager has many
connections established with the server then one of them will be selected randomly.
connectionManagerDomain
- the domain of the connection manager to get a session.
public Collection<String> getMultiplexers()
public int getNumConnectedClients(String managerName)
managerName
- the name of the connection manager.
public void anonymousSessionCreated(Session session)
SessionEventListener
anonymousSessionCreated
in interface SessionEventListener
session
- the authenticated session of an anonymous user.public void anonymousSessionDestroyed(Session session)
SessionEventListener
anonymousSessionDestroyed
in interface SessionEventListener
session
- the authenticated session of an anonymous user.public void sessionCreated(Session session)
SessionEventListener
sessionCreated
in interface SessionEventListener
session
- the authenticated session of a non anonymous user.public void sessionDestroyed(Session session)
SessionEventListener
sessionDestroyed
in interface SessionEventListener
session
- the authenticated session of a non anonymous user.public void resourceBound(Session session)
SessionEventListener
resourceBound
in interface SessionEventListener
session
- the session on which resource binding was performed.
|
Openfire 3.5.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |