Package com.tenio.server
Class Server
- java.lang.Object
-
- com.tenio.logger.AbstractLogger
-
- com.tenio.server.Server
-
public final class Server extends AbstractLogger
This class manages the workflow of the current server. The instruction's orders are important, event subscribes must be set last and all configuration values should be confirmed.- Author:
- kong
- See Also:
IServer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IEventManager
getEventManager()
IExtension
getExtension()
HeartBeatApi
getHeartBeatApi()
static Server
getInstance()
MessageApi
getMessageApi()
PlayerApi
getPlayerApi()
RoomApi
getRoomApi()
TaskApi
getTaskApi()
void
setExtension(IExtension extension)
void
shutdown()
void
start(BaseConfiguration configuration)
-
-
-
Method Detail
-
getInstance
public static Server getInstance()
-
start
public void start(BaseConfiguration configuration) throws java.io.IOException, java.lang.InterruptedException, NotDefinedSocketConnectionException, NotDefinedSubscribersException, DuplicatedUriAndMethodException
- Throws:
java.io.IOException
java.lang.InterruptedException
NotDefinedSocketConnectionException
NotDefinedSubscribersException
DuplicatedUriAndMethodException
-
shutdown
public void shutdown()
-
getExtension
public IExtension getExtension()
-
setExtension
public void setExtension(IExtension extension)
-
getPlayerApi
public PlayerApi getPlayerApi()
-
getRoomApi
public RoomApi getRoomApi()
-
getMessageApi
public MessageApi getMessageApi()
-
getHeartBeatApi
public HeartBeatApi getHeartBeatApi()
-
getTaskApi
public TaskApi getTaskApi()
-
getEventManager
public IEventManager getEventManager()
-
-