Package net.glowstone.net.rcon
Class RconServer
java.lang.Object
net.glowstone.net.GlowNetworkServer
net.glowstone.net.GlowSocketServer
net.glowstone.net.rcon.RconServer
Implementation of a server for the remote console protocol.
- See Also:
-
Field Summary
Fields inherited from class net.glowstone.net.GlowSocketServer
bootstrap, bossGroup, channel, workerGroupFields inherited from class net.glowstone.net.GlowNetworkServer
latch -
Constructor Summary
ConstructorsConstructorDescriptionRconServer(GlowServer server, ProtocolProvider protocolProvider, CountDownLatch latch, String password) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.ChannelFuturebind(InetSocketAddress address) Bind the server on the specified address.voidonBindFailure(InetSocketAddress address, Throwable t) voidonBindSuccess(InetSocketAddress address) voidshutdown()Shut the Rcon server down.Methods inherited from class net.glowstone.net.GlowSocketServer
getChannelMethods inherited from class net.glowstone.net.GlowNetworkServer
getProtocolProvider, getServer
-
Constructor Details
-
RconServer
public RconServer(GlowServer server, ProtocolProvider protocolProvider, CountDownLatch latch, String password) Creates an instance.- Parameters:
server- the associated GlowServerlatch- The countdown latch used during server startup to wait for network server binding.password- the remote operator's password
-
-
Method Details
-
bind
Bind the server on the specified address.- Overrides:
bindin classGlowSocketServer- Parameters:
address- The address.- Returns:
- Netty channel future for bind operation.
-
onBindSuccess
- Overrides:
onBindSuccessin classGlowNetworkServer
-
onBindFailure
- Specified by:
onBindFailurein classGlowNetworkServer
-
shutdown
public void shutdown()Shut the Rcon server down.- Overrides:
shutdownin classGlowSocketServer
-