public final class CloudNetWrapper extends Object implements de.dytanic.cloudnet.lib.interfaces.Executable, ShutdownOnCentral
| Modifier and Type | Field and Description |
|---|---|
private de.dytanic.cloudnet.lib.network.auth.Auth |
auth |
private boolean |
canDeployed |
private de.dytanic.cloudnet.logging.CloudLogger |
cloudNetLogging |
private Map<String,CloudGameServer> |
cloudServers |
private CommandManager |
commandManager |
private static CloudNetWrapper |
instance |
private int |
maxMemory |
private de.dytanic.cloudnet.lib.network.NetworkConnection |
networkConnection |
private joptsimple.OptionSet |
optionSet |
private Map<String,de.dytanic.cloudnet.lib.server.ProxyGroup> |
proxyGroups |
private Map<String,BungeeCord> |
proxys |
static boolean |
RUNNING |
private de.dytanic.cloudnet.lib.utility.threading.Scheduler |
scheduler |
private Map<String,de.dytanic.cloudnet.lib.server.ServerGroup> |
serverGroups |
private ServerProcessQueue |
serverProcessQueue |
private Map<String,GameServer> |
servers |
private de.dytanic.cloudnet.lib.user.SimpledUser |
simpledUser |
private WebClient |
webClient |
private CloudNetWrapperConfig |
wrapperConfig |
| Constructor and Description |
|---|
CloudNetWrapper(joptsimple.OptionSet optionSet,
CloudNetWrapperConfig cloudNetWrapperConfig,
de.dytanic.cloudnet.logging.CloudLogger cloudNetLogging) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bootstrap() |
void |
checkForUpdates() |
de.dytanic.cloudnet.lib.network.auth.Auth |
getAuth() |
de.dytanic.cloudnet.logging.CloudLogger |
getCloudNetLogging() |
Map<String,CloudGameServer> |
getCloudServers() |
CommandManager |
getCommandManager() |
double |
getCpuUsage() |
static CloudNetWrapper |
getInstance() |
int |
getMaxMemory() |
de.dytanic.cloudnet.lib.network.NetworkConnection |
getNetworkConnection() |
joptsimple.OptionSet |
getOptionSet() |
Map<String,de.dytanic.cloudnet.lib.server.ProxyGroup> |
getProxyGroups() |
Map<String,BungeeCord> |
getProxys() |
de.dytanic.cloudnet.lib.utility.threading.Scheduler |
getScheduler() |
Map<String,de.dytanic.cloudnet.lib.server.ServerGroup> |
getServerGroups() |
ServerProcessQueue |
getServerProcessQueue() |
Map<String,GameServer> |
getServers() |
de.dytanic.cloudnet.lib.user.SimpledUser |
getSimpledUser() |
int |
getUsedMemory() |
WebClient |
getWebClient() |
CloudNetWrapperConfig |
getWrapperConfig() |
boolean |
isCanDeployed() |
void |
onShutdownCentral() |
void |
setMaxMemory(int maxMemory) |
void |
setServerProcessQueue(ServerProcessQueue serverProcessQueue) |
void |
setSimpledUser(de.dytanic.cloudnet.lib.user.SimpledUser simpledUser) |
boolean |
shutdown() |
public static volatile boolean RUNNING
private static CloudNetWrapper instance
private final de.dytanic.cloudnet.lib.network.NetworkConnection networkConnection
private final de.dytanic.cloudnet.logging.CloudLogger cloudNetLogging
private final CloudNetWrapperConfig wrapperConfig
private final de.dytanic.cloudnet.lib.utility.threading.Scheduler scheduler
private final CommandManager commandManager
private final WebClient webClient
private final Map<String,GameServer> servers
private final Map<String,BungeeCord> proxys
private final Map<String,CloudGameServer> cloudServers
private de.dytanic.cloudnet.lib.network.auth.Auth auth
private joptsimple.OptionSet optionSet
private ServerProcessQueue serverProcessQueue
private de.dytanic.cloudnet.lib.user.SimpledUser simpledUser
private int maxMemory
private boolean canDeployed
public CloudNetWrapper(joptsimple.OptionSet optionSet,
CloudNetWrapperConfig cloudNetWrapperConfig,
de.dytanic.cloudnet.logging.CloudLogger cloudNetLogging)
throws Exception
Exceptionpublic void onShutdownCentral()
throws Exception
onShutdownCentral in interface ShutdownOnCentralExceptionpublic static CloudNetWrapper getInstance()
public boolean bootstrap()
throws Exception
bootstrap in interface de.dytanic.cloudnet.lib.interfaces.ExecutableExceptionpublic void checkForUpdates()
public double getCpuUsage()
public boolean shutdown()
shutdown in interface de.dytanic.cloudnet.lib.interfaces.Executablepublic int getUsedMemory()
public de.dytanic.cloudnet.lib.network.NetworkConnection getNetworkConnection()
public de.dytanic.cloudnet.logging.CloudLogger getCloudNetLogging()
public CloudNetWrapperConfig getWrapperConfig()
public de.dytanic.cloudnet.lib.utility.threading.Scheduler getScheduler()
public CommandManager getCommandManager()
public WebClient getWebClient()
public de.dytanic.cloudnet.lib.network.auth.Auth getAuth()
public joptsimple.OptionSet getOptionSet()
public ServerProcessQueue getServerProcessQueue()
public void setServerProcessQueue(ServerProcessQueue serverProcessQueue)
public de.dytanic.cloudnet.lib.user.SimpledUser getSimpledUser()
public void setSimpledUser(de.dytanic.cloudnet.lib.user.SimpledUser simpledUser)
public int getMaxMemory()
public void setMaxMemory(int maxMemory)
public Map<String,GameServer> getServers()
public Map<String,BungeeCord> getProxys()
public Map<String,CloudGameServer> getCloudServers()
public boolean isCanDeployed()
Copyright © 2020. All rights reserved.