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 Pathfinal PathWorking folder pathEnvironment type (test / production)final FeaturesManagerfinal KeyAgreementManagerfinal Map<pro.gravit.launcher.core.api.features.CoreFeatureAPI.UpdateVariant, LauncherBinary> Pipeline for building JARfinal 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 Pathfinal MirrorManagerfinal LauncherModulesConfigfinal Pathfinal NettyServerSocketHandlerfinal Pathfinal ReconfigurableManagerfinal ScheduledExecutorServicefinal intfinal SocketCommandServerfinal AtomicBooleanfinal PathThe path to the folder with profilesfinal PathDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionLaunchServer(LaunchServer.LaunchServerDirectories directories, LaunchServer.LaunchServerEnv env, LaunchServerConfig config, LaunchServer.LaunchServerConfigManager launchServerConfigManager, LaunchServerModulesManager modulesManager, KeyAgreementManager keyAgreementManager, pro.gravit.utils.command.CommandHandler commandHandler, CertificateManager certificateManager, int shardId, LauncherModulesConfig modulesConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclose()createTempDirectory(String name) createTempFilePath(String name, String ext) Gets a list of commands available for this object.voidvoidregisterObject(String name, Object object) voidvoidrun()voidsetProfiles(Set<pro.gravit.launcher.base.profiles.ClientProfile> profilesList) Deprecated.voidunregisterObject(String name, Object object) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
launchServerConfigManager
Save/Reload LaunchServer config -
tmpDir
The path to the folder with profiles -
modulesDir
-
librariesDir
-
controlFile
-
proguardDir
-
launcherBinaries
public final Map<pro.gravit.launcher.core.api.features.CoreFeatureAPI.UpdateVariant, LauncherBinary> launcherBinariesPipeline for building JAR -
authHookManager
-
modulesManager
-
mirrorManager
-
authManager
-
reconfigurableManager
-
configManager
-
featuresManager
-
keyAgreementManager
-
certificateManager
-
commandHandler
public final pro.gravit.utils.command.CommandHandler commandHandler -
nettyServerSocketHandler
-
socketCommandServer
-
service
-
started
-
launcherModuleLoader
-
shardId
public final int shardId -
config
-
modulesConfig
-
-
Constructor Details
-
LaunchServer
public LaunchServer(LaunchServer.LaunchServerDirectories directories, LaunchServer.LaunchServerEnv env, LaunchServerConfig config, LaunchServer.LaunchServerConfigManager launchServerConfigManager, LaunchServerModulesManager modulesManager, KeyAgreementManager keyAgreementManager, pro.gravit.utils.command.CommandHandler commandHandler, CertificateManager certificateManager, int shardId, LauncherModulesConfig modulesConfig) 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() -
createTempDirectory
- Throws:
IOException
-
createTempFilePath
- Throws:
IOException
-
buildLauncherBinaries
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
setProfiles
@Deprecated public void setProfiles(Set<pro.gravit.launcher.base.profiles.ClientProfile> profilesList) Deprecated. -
rebindNettyServerSocket
public void rebindNettyServerSocket() -
run
-
registerObject
-
unregisterObject
-