mvn clean package
java -jar target/players-*.jar
or
sh start.sh
Current architecture allows to extend application to support networking. Idea that would allow to do this would be as following:
- Networking solutions have been analyzed. Out of them I would choose either socket or RMI.
- Client is registering to server in following steps:
- Opens client connection
- Connects to server input
- Using server input to send connection message along with his input details
- For each client that is registered, server create
ClientConnection
instance that stores client connection details - When new message appears in system, client's
ClientConnection
is fetched and used to send message