Class JVMService
java.lang.Object
eu.cloudnetservice.node.impl.service.defaults.AbstractService
eu.cloudnetservice.node.impl.service.defaults.JVMService
- All Implemented Interfaces:
eu.cloudnetservice.driver.provider.SpecificCloudServiceProvider, InternalCloudService, eu.cloudnetservice.node.service.CloudService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Collection<String> protected static final Patternprotected static final Pathprotected static final org.slf4j.Loggerprotected Processprotected static final PathFields inherited from class AbstractService
cloudServiceManager, configuration, connectionKey, connectionTimestamp, currentServiceInfo, eventManager, FILE_MATCHER_PREDICATE, i18n, INCLUSION_TEMP_DIR, installedDeployments, installedInclusions, installedTemplates, lastServiceInfo, lifecycleLock, logCache, logTargets, mainThread, networkChannel, pluginDirectory, serviceConfiguration, serviceConfigurationPreparer, serviceDirectory, serviceVersionProvider, waitingDeployments, waitingRemoteInclusions, waitingTemplates, WRAPPER_CONFIG_PATH -
Constructor Summary
ConstructorsModifierConstructorDescriptionJVMService(@NonNull eu.cloudnetservice.driver.language.I18n i18n, @NonNull DefaultTickLoop tickLoop, @NonNull eu.cloudnetservice.node.config.Configuration nodeConfig, @NonNull eu.cloudnetservice.driver.service.ServiceConfiguration configuration, @NonNull InternalCloudServiceManager manager, @NonNull eu.cloudnetservice.driver.event.EventManager eventManager, @NonNull ServiceVersionProvider versionProvider, @NonNull eu.cloudnetservice.node.service.ServiceConfigurationPreparer serviceConfigurationPreparer, @NonNull ProcessServiceLogReadScheduler processLogReadScheduler) protectedJVMService(@NonNull eu.cloudnetservice.driver.language.I18n i18n, @NonNull DefaultTickLoop tickLoop, @NonNull eu.cloudnetservice.node.config.Configuration nodeConfig, @NonNull eu.cloudnetservice.driver.service.ServiceConfiguration configuration, @NonNull InternalCloudServiceManager manager, @NonNull eu.cloudnetservice.driver.event.EventManager eventManager, @NonNull eu.cloudnetservice.node.service.ServiceConsoleLogCache logCache, @NonNull ServiceVersionProvider versionProvider, @NonNull eu.cloudnetservice.node.service.ServiceConfigurationPreparer serviceConfigurationPreparer) -
Method Summary
Modifier and TypeMethodDescriptionbooleanalive()completeJarAttributeInformation(@NonNull Path jarFilePath, @NonNull CheckedFunction1<JarFile, T> mapper) computeWrapperClassPath(@NonNull Path wrapperPath) protected voiddoStartProcess(@NonNull List<String> arguments, @NonNull Path wrapperPath, @NonNull Path applicationFilePath) protected @Nullable Tuple2<Path, JVMService.ApplicationStartupInformation> prepareApplicationFile(@NonNull eu.cloudnetservice.driver.service.ServiceEnvironmentType environmentType) protected @Nullable Tuple2<Path, Attributes> voidrunCommand(@NonNull String command) runtime()protected voidprotected voidvalidateManifest(@Nullable Manifest manifest) Methods inherited from class AbstractService
addServiceDeployment, addServiceDeploymentAsync, addServiceRemoteInclusion, addServiceRemoteInclusionAsync, addServiceTemplate, addServiceTemplateAsync, cachedLogMessages, cachedLogMessagesAsync, canStartNow, cloudServiceManager, connectionKey, deleteFiles, deleteFilesAsync, deployResources, deployResourcesAsync, directory, doDelete, doRemoveFilesAfterStop, downloadInclusionFile, executeDeployment, forceUpdateServiceInfo, forceUpdateServiceInfoAsync, handleServiceRegister, includeWaitingServiceInclusions, includeWaitingServiceInclusionsAsync, includeWaitingServiceTemplates, includeWaitingServiceTemplates, includeWaitingServiceTemplatesAsync, includeWaitingServiceTemplatesAsync, initStandardServiceLogHandler, installedDeployments, installedInclusions, installedTemplates, lastServiceInfoSnapshot, lifeCycle, networkChannel, networkChannel, pluginDirectory, preLifecycleChange, prepareService, prepareSslConfiguration, publishServiceInfoSnapshot, pushServiceInfoSnapshotUpdate, pushServiceInfoSnapshotUpdate, pushServiceInfoSnapshotUpdate, relativizePath, removeAndExecuteDeploymentsAsync, resolveServicePath, restart, restartAsync, runCommandAsync, selectConnectListener, serviceConfiguration, serviceConsoleLogCache, serviceId, serviceInfo, serviceInfoAsync, serviceReplacement, toggleScreenEvents, toggleScreenEventsAsync, updateLifecycle, updateLifecycle, updateLifecycleAsync, updateProperties, updatePropertiesAsync, updateServiceInfoSnapshot, valid, validAsync, waitingDeployments, waitingIncludes, waitingTemplatesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.cloudnetservice.driver.provider.SpecificCloudServiceProvider
delete, deleteAsync, removeAndExecuteDeployments, start, startAsync, stop, stopAsync
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
FILE_NUMBER_PATTERN
-
DEFAULT_JVM_SYSTEM_PROPERTIES
-
LIB_PATH
-
WRAPPER_TEMP_FILE
-
process
-
-
Constructor Details
-
JVMService
public JVMService(@NonNull @NonNull eu.cloudnetservice.driver.language.I18n i18n, @NonNull @NonNull DefaultTickLoop tickLoop, @NonNull @NonNull eu.cloudnetservice.node.config.Configuration nodeConfig, @NonNull @NonNull eu.cloudnetservice.driver.service.ServiceConfiguration configuration, @NonNull @NonNull InternalCloudServiceManager manager, @NonNull @NonNull eu.cloudnetservice.driver.event.EventManager eventManager, @NonNull @NonNull ServiceVersionProvider versionProvider, @NonNull @NonNull eu.cloudnetservice.node.service.ServiceConfigurationPreparer serviceConfigurationPreparer, @NonNull @NonNull ProcessServiceLogReadScheduler processLogReadScheduler) -
JVMService
protected JVMService(@NonNull @NonNull eu.cloudnetservice.driver.language.I18n i18n, @NonNull @NonNull DefaultTickLoop tickLoop, @NonNull @NonNull eu.cloudnetservice.node.config.Configuration nodeConfig, @NonNull @NonNull eu.cloudnetservice.driver.service.ServiceConfiguration configuration, @NonNull @NonNull InternalCloudServiceManager manager, @NonNull @NonNull eu.cloudnetservice.driver.event.EventManager eventManager, @NonNull @NonNull eu.cloudnetservice.node.service.ServiceConsoleLogCache logCache, @NonNull @NonNull ServiceVersionProvider versionProvider, @NonNull @NonNull eu.cloudnetservice.node.service.ServiceConfigurationPreparer serviceConfigurationPreparer)
-
-
Method Details
-
startProcess
protected void startProcess()- Specified by:
startProcessin classAbstractService
-
stopProcess
protected void stopProcess()- Specified by:
stopProcessin classAbstractService
-
runCommand
-
runtime
-
alive
public boolean alive() -
doStartProcess
-
prepareWrapperFile
-
prepareApplicationFile
-
completeJarAttributeInformation
-
computeWrapperClassPath
-
validateManifest
-