ServerManager

public class ServerManager extends JavaPlugin

Class ServerManager. Provides servermanager functionality for the Hytale server.

java.lang.Object > JavaPlugin > ServerManager

Field Summary

transport

private Transport transport

Field transport.

registerFuture

private CompletableFuture registerFuture

Field registerFuture.

bootFuture

private CompletableFuture bootFuture

Field bootFuture.

start

final long start

Field start.

arr$

final InetAddress[] arr$

Field arr$.

localhosts

final InetAddress[] localhosts

Field localhosts.

channelIpv6

final Channel channelIpv6

Field channelIpv6.

channelIpv7

final Channel channelIpv7

Field channelIpv7.

channelIpv6Localhost

final Channel channelIpv6Localhost

Field channelIpv6Localhost.

channel

final Channel channel

Field channel.

success

final boolean success

Field success.

socketAddress

final SocketAddress socketAddress

Field socketAddress.

address

final InetAddress address

Field address.

anyNonLoopbackAddress

final InetAddress anyNonLoopbackAddress

Field anyNonLoopbackAddress.

anyPublicAddress

final InetAddress anyPublicAddress

Field anyPublicAddress.

future

final CompletableFuture future

Field future.

f

final ChannelFuture f

Field f.

Method Detail

get

static ServerManager get ()

Method get.

ServerManager

public public ServerManager (@Nonnull final JavaPluginInit init)

Method ServerManager.

Parameters:
@Nonnull final JavaPluginInit init

init

public void init ()

Method init.

setup

protected void setup ()

Method setup.

BindingsCommand

public new BindingsCommand ()

Method BindingsCommand.

start

protected void start ()

Method start.

InetSocketAddress

public new InetSocketAddress (localhost, Options.getOptionSet()

Method InetSocketAddress.

Parameters:
localhost localhost
Options.getOptionSet( Options.getOptionSet(

shutdown

protected void shutdown ()

Method shutdown.

unbindAllListeners

public void unbindAllListeners ()

Method unbindAllListeners.

getListeners

public List getListeners ()

Method getListeners.

bind

public boolean bind (@Nonnull final InetSocketAddress address)

Method bind.

Parameters:
@Nonnull final InetSocketAddress address

unbind

public boolean unbind (@Nonnull final Channel channel)

Method unbind.

Parameters:
@Nonnull final Channel channel

getLocalOrPublicAddress

public InetSocketAddress getLocalOrPublicAddress ()

Method getLocalOrPublicAddress.

getNonLoopbackAddress

public InetSocketAddress getNonLoopbackAddress ()

Method getNonLoopbackAddress.

getPublicAddress

public InetSocketAddress getPublicAddress ()

Method getPublicAddress.

waitForBindComplete

public void waitForBindComplete ()

Method waitForBindComplete.

registerSubPacketHandlers

public void registerSubPacketHandlers (@Nonnull final Function supplier)

Method registerSubPacketHandlers.

Parameters:
@Nonnull final Function supplier

populateSubPacketHandlers

public void populateSubPacketHandlers (@Nonnull final GamePacketHandler packetHandler)

Method populateSubPacketHandlers.

Parameters:
@Nonnull final GamePacketHandler packetHandler

bind0

private Channel bind0 (@Nonnull final InetSocketAddress address)

Method bind0.

Parameters:
@Nonnull final InetSocketAddress address

SkipSentryException

public new SkipSentryException (f.cause()

Method SkipSentryException.

Parameters:
f.cause( f.cause(

RuntimeException

public new RuntimeException ("Interrupted when attempting to bind to host " + String.valueOf(address)

Method RuntimeException.

Parameters:
"Interrupted when attempting to bind to host " + String.valueOf(address

unbind0

private boolean unbind0 (@Nonnull final Channel channel)

Method unbind0.

Parameters:
@Nonnull final Channel channel