Class ServerBackend

java.lang.Object
org.cis1200.ServerBackend
All Implemented Interfaces:
Runnable

final class ServerBackend extends Object implements Runnable
The ServerBackend handles networking and communication with clients, and is responsible for managing the server state and executing tasks. To run the server, you should see the ServerMain class. You do not need to modify this file.
  • Constructor Details

    • ServerBackend

      public ServerBackend(ServerModel model)
      Create the backend
      Parameters:
      model - the state of the server
  • Method Details

    • isRunning

      public boolean isRunning()
      Returns:
      whether the server is processing messages
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • stop

      public void stop()
      Ends the execution of the server