public abstract class ReconnectingServerDefinition<T extends cz.cuni.amis.pogamut.base.server.IWorldServer> extends ServerDefinition<T>
| Constructor and Description |
|---|
ReconnectingServerDefinition() |
| Modifier and Type | Method and Description |
|---|---|
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() |
getServerFlag, getServerName, getServerNameFlag, getUri, getUriFlag, getViewer, init, setNewServer, setServerName, setUriprotected void serverStopped(T server)
public void stopServer()
ServerDefinitionstopServer in class ServerDefinition<T extends cz.cuni.amis.pogamut.base.server.IWorldServer>public void startServer()
startServer in class ServerDefinition<T extends cz.cuni.amis.pogamut.base.server.IWorldServer>protected abstract void tryToStartServer()
throws cz.cuni.amis.utils.exception.PogamutException
cz.cuni.amis.utils.exception.PogamutExceptionCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.