cz.cuni.amis.pogamut.ut2004.teamcomm.mina.server
Class TCMinaServer

Package class diagram package TCMinaServer
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.teamcomm.mina.server.TCMinaServer
All Implemented Interfaces:
org.apache.mina.core.service.IoHandler

public class TCMinaServer
extends Object
implements org.apache.mina.core.service.IoHandler


Constructor Summary
TCMinaServer(UT2004TCServer owner, InetSocketAddress bindAddress, Logger log)
           
 
Method Summary
 void botLeft(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId botId)
          'owner' is reporting that some bot has left the UT2004 server.
 void exceptionCaught(org.apache.mina.core.session.IoSession session, Throwable exception)
           
 cz.cuni.amis.utils.flag.ImmutableFlag<Boolean> getRunning()
          Whether the TCMinaServer is running.
 void messageReceived(org.apache.mina.core.session.IoSession session, Object message)
           
 void messageSent(org.apache.mina.core.session.IoSession session, Object message)
           
 void sessionClosed(org.apache.mina.core.session.IoSession session)
           
 void sessionCreated(org.apache.mina.core.session.IoSession session)
           
 void sessionIdle(org.apache.mina.core.session.IoSession session, org.apache.mina.core.session.IdleStatus status)
           
 void sessionOpened(org.apache.mina.core.session.IoSession session)
           
 void start()
          Starts this TCMinaServer.
 void stop()
          Stops this TCMinaServer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCMinaServer

public TCMinaServer(UT2004TCServer owner,
                    InetSocketAddress bindAddress,
                    Logger log)
Method Detail

botLeft

public void botLeft(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId botId)
'owner' is reporting that some bot has left the UT2004 server.

Parameters:
botId -

getRunning

public cz.cuni.amis.utils.flag.ImmutableFlag<Boolean> getRunning()
Whether the TCMinaServer is running.

Returns:

start

public void start()
           throws cz.cuni.amis.utils.exception.PogamutException
Starts this TCMinaServer.

Throws:
cz.cuni.amis.utils.exception.PogamutException

stop

public void stop()
Stops this TCMinaServer.

Throws:
cz.cuni.amis.utils.exception.PogamutException

exceptionCaught

public void exceptionCaught(org.apache.mina.core.session.IoSession session,
                            Throwable exception)
                     throws Exception
Specified by:
exceptionCaught in interface org.apache.mina.core.service.IoHandler
Throws:
Exception

messageReceived

public void messageReceived(org.apache.mina.core.session.IoSession session,
                            Object message)
                     throws Exception
Specified by:
messageReceived in interface org.apache.mina.core.service.IoHandler
Throws:
Exception

messageSent

public void messageSent(org.apache.mina.core.session.IoSession session,
                        Object message)
                 throws Exception
Specified by:
messageSent in interface org.apache.mina.core.service.IoHandler
Throws:
Exception

sessionClosed

public void sessionClosed(org.apache.mina.core.session.IoSession session)
                   throws Exception
Specified by:
sessionClosed in interface org.apache.mina.core.service.IoHandler
Throws:
Exception

sessionCreated

public void sessionCreated(org.apache.mina.core.session.IoSession session)
                    throws Exception
Specified by:
sessionCreated in interface org.apache.mina.core.service.IoHandler
Throws:
Exception

sessionIdle

public void sessionIdle(org.apache.mina.core.session.IoSession session,
                        org.apache.mina.core.session.IdleStatus status)
                 throws Exception
Specified by:
sessionIdle in interface org.apache.mina.core.service.IoHandler
Throws:
Exception

sessionOpened

public void sessionOpened(org.apache.mina.core.session.IoSession session)
                   throws Exception
Specified by:
sessionOpened in interface org.apache.mina.core.service.IoHandler
Throws:
Exception


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.