Class SubDataServer

java.lang.Object
net.ME1312.SubData.Server.DataServer
net.ME1312.SubData.Server.SubDataServer

public class SubDataServer extends DataServer
SubData Server Class
  • Method Details

    • getSocket

      public ServerSocket getSocket()
      Get the underlying Server Socket
      Returns:
      Server Socket
    • getProtocol

      public SubDataProtocol getProtocol()
      Description copied from class: DataServer
      Get the Protocol for this Server
      Specified by:
      getProtocol in class DataServer
      Returns:
      Server Protocol
    • getTimeout

      public long getTimeout()
      Get SubData's Initialization Timer
      Returns:
      Timeout Time
    • setTimeout

      public void setTimeout(Long size)
      Get SubData's Initialization Timer
      Parameters:
      size - Timeout Time (null for super)
    • getClient

      public SubDataClient getClient(UUID id)
      Description copied from class: DataServer
      Grabs a Client from the Network
      Specified by:
      getClient in class DataServer
      Parameters:
      id - Client ID
      Returns:
      Client
    • getClients

      public Map<UUID,? extends SubDataClient> getClients()
      Description copied from class: DataServer
      Grabs all the Clients on the Network
      Specified by:
      getClients in class DataServer
      Returns:
      Client Map
    • removeClient

      public void removeClient(DataClient client)
      Description copied from class: DataServer
      Remove a Client from the Network
      Specified by:
      removeClient in class DataServer
      Parameters:
      client - Client to Kick
    • removeClient

      public void removeClient(UUID id)
      Description copied from class: DataServer
      Remove a Client from the Network
      Specified by:
      removeClient in class DataServer
      Parameters:
      id - Client ID
    • close

      public void close() throws IOException
      Description copied from class: DataServer
      Drops all connections and close the SubData Listener
      Specified by:
      close in class DataServer
      Throws:
      IOException
    • isClosed

      public boolean isClosed()
      Description copied from class: DataServer
      Get if the listener has been closed
      Specified by:
      isClosed in class DataServer
      Returns:
      Closed Status