|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.wildfire.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)
An anonymous session was created. |
void |
anonymousSessionDestroyed(Session session)
An anonymous session was created. |
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. |
ClientSession |
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 |
sessionCreated(Session session)
A session was created. |
void |
sessionDestroyed(Session session)
A session 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 ClientSession 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 session.public void anonymousSessionDestroyed(Session session)
SessionEventListener
anonymousSessionDestroyed
in interface SessionEventListener
session
- the session.public void sessionCreated(Session session)
SessionEventListener
sessionCreated
in interface SessionEventListener
session
- the session.public void sessionDestroyed(Session session)
SessionEventListener
sessionDestroyed
in interface SessionEventListener
session
- the session.
|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |