Package pro.gravit.launchserver
Class LaunchServer
java.lang.Object
pro.gravit.launchserver.LaunchServer
- All Implemented Interfaces:
AutoCloseable,Runnable,Reconfigurable
The main LaunchServer class. Contains links to all necessary objects
Not a singletron
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AuthHookManagerfinal AuthManagerfinal CertificateManagerfinal pro.gravit.utils.command.CommandHandlerfinal pro.gravit.launcher.managers.ConfigManagerstatic final Class<? extends LauncherBinary>final PathWorking folder pathEnvironment type (test / production)final FeaturesManagerfinal KeyAgreementManagerfinal JARLauncherBinaryPipeline for building JARfinal LauncherBinaryPipeline for building EXEfinal Class<? extends LauncherBinary>final PathThe path to the folder with libraries for the launcherfinal PathThe path to the folder with compile-only libraries for the launcherfinal LauncherModuleLoaderSave/Reload LaunchServer configfinal MirrorManagerfinal NettyServerSocketHandlerfinal PingServerManagerfinal ECPrivateKeyDeprecated.final PathThe path to the folder with profilesfinal ECPublicKeyDeprecated.final ReconfigurableManagerThis object contains runtime configurationfinal ScheduledExecutorServicefinal SessionManagerfinal AtomicBooleanfinal TimerDeprecated.final Pathfinal PathThe path to the folder with updates/webrootDeprecated.final UpdatesManager -
Constructor Summary
ConstructorsConstructorDescriptionLaunchServer(LaunchServer.LaunchServerDirectories directories, LaunchServer.LaunchServerEnv env, LaunchServerConfig config, LaunchServerRuntimeConfig runtimeConfig, LaunchServer.LaunchServerConfigManager launchServerConfigManager, LaunchServerModulesManager modulesManager, KeyAgreementManager keyAgreementManager, pro.gravit.utils.command.CommandHandler commandHandler, CertificateManager certificateManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voidGets a list of commands available for this object.Set<pro.gravit.launcher.profiles.ClientProfile>pro.gravit.launcher.hasher.HashedDirgetUpdateDir(String name) Deprecated.Deprecated.voidvoidregisterObject(String name, Object object) voidvoidrestart()voidrun()voidsetProfiles(Set<pro.gravit.launcher.profiles.ClientProfile> profilesList) voidvoidvoidsyncUpdatesDir(Collection<String> dirs) voidunregisterObject(String name, Object object) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pro.gravit.launchserver.Reconfigurable
defaultCommandsMap
-
Field Details
-
defaultLauncherEXEBinaryClass
-
dir
Working folder path -
env
Environment type (test / production) -
launcherLibraries
The path to the folder with libraries for the launcher -
launcherLibrariesCompile
The path to the folder with compile-only libraries for the launcher -
updatesDir
The path to the folder with updates/webroot -
launchServerConfigManager
Save/Reload LaunchServer config -
profilesDir
The path to the folder with profiles -
tmpDir
-
runtime
This object contains runtime configuration -
publicKey
Deprecated. -
privateKey
Deprecated. -
launcherBinary
Pipeline for building JAR -
launcherEXEBinary
Pipeline for building EXE -
launcherEXEBinaryClass
-
sessionManager
-
authHookManager
-
modulesManager
-
mirrorManager
-
authManager
-
reconfigurableManager
-
configManager
public final pro.gravit.launcher.managers.ConfigManager configManager -
pingServerManager
-
featuresManager
-
keyAgreementManager
-
updatesManager
-
certificateManager
-
commandHandler
public final pro.gravit.utils.command.CommandHandler commandHandler -
nettyServerSocketHandler
-
taskPool
Deprecated. -
service
-
started
-
launcherModuleLoader
-
config
-
updatesDirMap
Deprecated.
-
-
Constructor Details
-
LaunchServer
public LaunchServer(LaunchServer.LaunchServerDirectories directories, LaunchServer.LaunchServerEnv env, LaunchServerConfig config, LaunchServerRuntimeConfig runtimeConfig, LaunchServer.LaunchServerConfigManager launchServerConfigManager, LaunchServerModulesManager modulesManager, KeyAgreementManager keyAgreementManager, pro.gravit.utils.command.CommandHandler commandHandler, CertificateManager certificateManager) throws IOException - Throws:
IOException
-
-
Method Details
-
reload
- Throws:
Exception
-
getCommands
Description copied from interface:ReconfigurableGets a list of commands available for this object.- Specified by:
getCommandsin interfaceReconfigurable- Returns:
- Key - Command Name Value is a command object
-
buildLauncherBinaries
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getProfiles
-
setProfiles
-
getUpdateDir
Deprecated. -
getUpdateDirs
Deprecated. -
rebindNettyServerSocket
public void rebindNettyServerSocket() -
run
public void run() -
syncLauncherBinaries
- Throws:
IOException
-
syncProfilesDir
- Throws:
IOException
-
syncUpdatesDir
- Throws:
IOException
-
restart
public void restart() -
registerObject
-
unregisterObject
-
fullyRestart
public void fullyRestart()
-