com.web_visage.ichatserv.fwk
Class IChatServerFwk

java.lang.Object
  extended by com.web_visage.ichatserv.fwk.IChatServerFwk
All Implemented Interfaces:
ClientConnectionListener

public class IChatServerFwk
extends java.lang.Object
implements ClientConnectionListener

IChat server framework.

Author:
K.Baturytski

Constructor Summary
IChatServerFwk(IChatServConfig aConfig, UpdatableStringFileList aBanList)
          Constructor.
 
Method Summary
 void clientConnected(java.nio.channels.SocketChannel aSocket)
          Notifies subscriber about client connection.
 boolean isOnline()
          Checks whether the server is ONLINE.
 boolean isShuttingDown()
          Checks whether the server is being shutting down.
 void shutdown()
          Shuts server down.
 void start()
          Starts the server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IChatServerFwk

public IChatServerFwk(IChatServConfig aConfig,
                      UpdatableStringFileList aBanList)
Constructor.

Parameters:
aConfig - - configuration bean
aBanList -
Method Detail

start

public void start()
           throws java.lang.InterruptedException
Starts the server.

Throws:
java.lang.InterruptedException

shutdown

public void shutdown()
Shuts server down.


isOnline

public boolean isOnline()
Checks whether the server is ONLINE.

Returns:

isShuttingDown

public boolean isShuttingDown()
Checks whether the server is being shutting down.

Returns:

clientConnected

public void clientConnected(java.nio.channels.SocketChannel aSocket)
Description copied from interface: ClientConnectionListener
Notifies subscriber about client connection.

Specified by:
clientConnected in interface ClientConnectionListener
See Also:
com.web_visage.ichatserv.fwk.ClientConnectionListener#clientConnected(java.net.Socket)