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 TypeMethodDescriptionvoidclose()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 SocketlongGet SubData's Initialization TimerbooleanisClosed()Get if the listener has been closedvoidremoveClient(UUID id) Remove a Client from the NetworkvoidremoveClient(DataClient client) Remove a Client from the NetworkvoidsetTimeout(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:DataServerGet the Protocol for this Server- Specified by:
getProtocolin 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:DataServerGrabs a Client from the Network- Specified by:
getClientin classDataServer- Parameters:
id- Client ID- Returns:
- Client
-
getClients
Description copied from class:DataServerGrabs all the Clients on the Network- Specified by:
getClientsin classDataServer- Returns:
- Client Map
-
removeClient
Description copied from class:DataServerRemove a Client from the Network- Specified by:
removeClientin classDataServer- Parameters:
client- Client to Kick
-
removeClient
Description copied from class:DataServerRemove a Client from the Network- Specified by:
removeClientin classDataServer- Parameters:
id- Client ID
-
close
Description copied from class:DataServerDrops all connections and close the SubData Listener- Specified by:
closein classDataServer- Throws:
IOException
-
isClosed
public boolean isClosed()Description copied from class:DataServerGet if the listener has been closed- Specified by:
isClosedin classDataServer- Returns:
- Closed Status
-