Package net.ME1312.SubData.Server
Class SubDataServer
java.lang.Object
net.ME1312.SubData.Server.DataServer
net.ME1312.SubData.Server.SubDataServer
SubData Server Class
-
Nested Class Summary
Nested classes/interfaces inherited from class net.ME1312.SubData.Server.DataServer
DataServer.Events
-
Field Summary
Fields inherited from class net.ME1312.SubData.Server.DataServer
on
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Drops all connections and close the SubData ListenerGrabs a Client from the NetworkMap<UUID,
? extends SubDataClient> Grabs all the Clients on the NetworkGet the Protocol for this ServerGet the underlying Server Socketlong
Get SubData's Initialization Timerboolean
isClosed()
Get if the listener has been closedvoid
removeClient
(UUID id) Remove a Client from the Networkvoid
removeClient
(DataClient client) Remove a Client from the Networkvoid
setTimeout
(Long size) Get SubData's Initialization TimerMethods inherited from class net.ME1312.SubData.Server.DataServer
unwhitelist, waitFor, whitelist
-
Method Details
-
getSocket
Get the underlying Server Socket- Returns:
- Server Socket
-
getProtocol
Description copied from class:DataServer
Get the Protocol for this Server- Specified by:
getProtocol
in classDataServer
- Returns:
- Server Protocol
-
getTimeout
public long getTimeout()Get SubData's Initialization Timer- Returns:
- Timeout Time
-
setTimeout
Get SubData's Initialization Timer- Parameters:
size
- Timeout Time (null for super)
-
getClient
Description copied from class:DataServer
Grabs a Client from the Network- Specified by:
getClient
in classDataServer
- Parameters:
id
- Client ID- Returns:
- Client
-
getClients
Description copied from class:DataServer
Grabs all the Clients on the Network- Specified by:
getClients
in classDataServer
- Returns:
- Client Map
-
removeClient
Description copied from class:DataServer
Remove a Client from the Network- Specified by:
removeClient
in classDataServer
- Parameters:
client
- Client to Kick
-
removeClient
Description copied from class:DataServer
Remove a Client from the Network- Specified by:
removeClient
in classDataServer
- Parameters:
id
- Client ID
-
close
Description copied from class:DataServer
Drops all connections and close the SubData Listener- Specified by:
close
in classDataServer
- Throws:
IOException
-
isClosed
public boolean isClosed()Description copied from class:DataServer
Get if the listener has been closed- Specified by:
isClosed
in classDataServer
- Returns:
- Closed Status
-