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, workerGroup
Fields inherited from class net.glowstone.net.GlowNetworkServer
latch
-
Constructor Summary
ConstructorDescriptionRconServer
(GlowServer server, ProtocolProvider protocolProvider, CountDownLatch latch, String password) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.ChannelFuture
bind
(InetSocketAddress address) Bind the server on the specified address.void
onBindFailure
(InetSocketAddress address, Throwable t) void
onBindSuccess
(InetSocketAddress address) void
shutdown()
Shut the Rcon server down.Methods inherited from class net.glowstone.net.GlowSocketServer
getChannel
Methods 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:
bind
in classGlowSocketServer
- Parameters:
address
- The address.- Returns:
- Netty channel future for bind operation.
-
onBindSuccess
- Overrides:
onBindSuccess
in classGlowNetworkServer
-
onBindFailure
- Specified by:
onBindFailure
in classGlowNetworkServer
-
shutdown
public void shutdown()Shut the Rcon server down.- Overrides:
shutdown
in classGlowSocketServer
-