cz.cuni.amis.nb.api.pogamut.base.server
Class ReconnectingServerDefinition<T extends cz.cuni.amis.pogamut.base.server.IWorldServer>

Package class diagram package ReconnectingServerDefinition
java.lang.Object
  extended by cz.cuni.amis.nb.api.pogamut.base.server.ServerDefinition<T>
      extended by cz.cuni.amis.nb.api.pogamut.base.server.ReconnectingServerDefinition<T>
All Implemented Interfaces:
Serializable

public abstract class ReconnectingServerDefinition<T extends cz.cuni.amis.pogamut.base.server.IWorldServer>
extends ServerDefinition<T>

States are:

Author:
ik
See Also:
Serialized Form

Constructor Summary
ReconnectingServerDefinition()
           
 
Method Summary
protected  void serverStopped(T server)
          Called when the running server stopped.
 void startServer()
          Nonblocking implementation.
 void stopServer()
          Stops connection to the server.
protected abstract  void tryToStartServer()
           
 
Methods inherited from class cz.cuni.amis.nb.api.pogamut.base.server.ServerDefinition
getServerFlag, getServerName, getServerNameFlag, getUri, getUriFlag, getViewer, init, setNewServer, setServerName, setUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReconnectingServerDefinition

public ReconnectingServerDefinition()
Method Detail

serverStopped

protected void serverStopped(T server)
Called when the running server stopped. Can be used for removing listeners etc.


stopServer

public void stopServer()
Description copied from class: ServerDefinition
Stops connection to the server.

Specified by:
stopServer in class ServerDefinition<T extends cz.cuni.amis.pogamut.base.server.IWorldServer>

startServer

public void startServer()
Nonblocking implementation.

Specified by:
startServer in class ServerDefinition<T extends cz.cuni.amis.pogamut.base.server.IWorldServer>

tryToStartServer

protected abstract void tryToStartServer()
                                  throws cz.cuni.amis.utils.exception.PogamutException
Throws:
cz.cuni.amis.utils.exception.PogamutException


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