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 ConfigManagerfinal PathWorking folder pathEnvironment type (test / production)final FeaturesManagerfinal KeyAgreementManagerfinal JARLauncherBinaryPipeline for building JARfinal LauncherBinaryPipeline for building EXEfinal PathThe path to the folder with libraries for the launcherfinal PathThe path to the folder with compile-only libraries for the launcherfinal LauncherModuleLoaderfinal PathSave/Reload LaunchServer configfinal MirrorManagerfinal NettyServerSocketHandlerfinal PathThe path to the folder with profilesfinal ReconfigurableManagerThis object contains runtime configurationfinal ScheduledExecutorServicefinal intfinal AtomicBooleanfinal Pathfinal PathThe path to the folder with updates/webrootfinal 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, int shardId) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclose()Gets a list of commands available for this object.Set<pro.gravit.launcher.base.profiles.ClientProfile> voidvoidregisterObject(String name, Object object) voidvoidrun()voidsetProfiles(Set<pro.gravit.launcher.base.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
-
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 -
launcherPack
-
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 -
launcherBinary
Pipeline for building JAR -
launcherEXEBinary
Pipeline for building EXE -
authHookManager
-
modulesManager
-
mirrorManager
-
authManager
-
reconfigurableManager
-
configManager
-
featuresManager
-
keyAgreementManager
-
updatesManager
-
certificateManager
-
commandHandler
public final pro.gravit.utils.command.CommandHandler commandHandler -
nettyServerSocketHandler
-
service
-
started
-
launcherModuleLoader
-
shardId
public final int shardId -
config
-
-
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, int shardId) 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
-
checkCertificateExpired
public void checkCertificateExpired() -
buildLauncherBinaries
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getProfiles
-
setProfiles
-
rebindNettyServerSocket
public void rebindNettyServerSocket() -
run
public void run() -
syncLauncherBinaries
- Throws:
IOException
-
syncProfilesDir
- Throws:
IOException
-
syncUpdatesDir
- Throws:
IOException
-
registerObject
-
unregisterObject
-