com.multisoftgroup.jerry.jabber
Class IMRouter

java.lang.Object
  extended by com.multisoftgroup.jerry.jabber.IMRouter

public class IMRouter
extends Object


Nested Class Summary
 class IMRouter.RemoteDeliveryThreadPerHost
           
 class IMRouter.TransitableAndSession
           
 
Method Summary
 void deliverQueueMessage(IMSession currentSession, String username)
           
 List<IMSession> getAllRegisteredSession(String name)
           
static IMRouter getInstance()
           
 IMClientSession getRegisteredSession(String name)
           
 void init(SessionsManager sessionsManager)
           
 void registerSession(IMClientSession session)
           
 void releaseSessions()
           
 void route(IMSession currentSession, Packet transit)
           
 void unregisterSession(IMClientSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IMRouter getInstance()

init

public void init(SessionsManager sessionsManager)

registerSession

public void registerSession(IMClientSession session)

unregisterSession

public void unregisterSession(IMClientSession session)

getAllRegisteredSession

public List<IMSession> getAllRegisteredSession(String name)

getRegisteredSession

public IMClientSession getRegisteredSession(String name)

route

public void route(IMSession currentSession,
                  Packet transit)
           throws IOException
Throws:
IOException

deliverQueueMessage

public void deliverQueueMessage(IMSession currentSession,
                                String username)
                         throws IOException
Throws:
IOException

releaseSessions

public void releaseSessions()