Package io.trino.server
Class ServerMainModule
java.lang.Object
io.airlift.configuration.AbstractConfigurationAwareModule
io.trino.server.ServerMainModule
- All Implemented Interfaces:
com.google.inject.Module,io.airlift.configuration.ConfigurationAwareModule
public class ServerMainModule
extends io.airlift.configuration.AbstractConfigurationAwareModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutorServicestatic io.airlift.concurrent.BoundedExecutorcreateAsyncHttpResponseExecutor(ExecutorService coreExecutor, TaskManagerConfig config) static ScheduledExecutorServicestatic ScheduledExecutorServicestatic ExecutorcreateStartupExecutor(ServerConfig config) static TypeOperatorscreateTypeOperators(TypeOperatorsCache typeOperatorsCache) static FunctionBundlejsonFunctionBundle(FunctionManager functionManager, Metadata metadata, TypeManager typeManager) protected voidsetup(com.google.inject.Binder binder) static FunctionBundlesystemFunctionBundle(FeaturesConfig featuresConfig, TypeOperators typeOperators, BlockTypeOperators blockTypeOperators, NodeVersion nodeVersion) Methods inherited from class io.airlift.configuration.AbstractConfigurationAwareModule
buildConfigObject, buildConfigObject, configure, consumeProperty, getProperties, getProperty, install, setConfigurationFactory
-
Constructor Details
-
ServerMainModule
-
-
Method Details
-
setup
protected void setup(com.google.inject.Binder binder) - Specified by:
setupin classio.airlift.configuration.AbstractConfigurationAwareModule
-
systemFunctionBundle
@ProvidesIntoSet public static FunctionBundle systemFunctionBundle(FeaturesConfig featuresConfig, TypeOperators typeOperators, BlockTypeOperators blockTypeOperators, NodeVersion nodeVersion) -
jsonFunctionBundle
@ProvidesIntoSet public static FunctionBundle jsonFunctionBundle(FunctionManager functionManager, Metadata metadata, TypeManager typeManager) -
createTypeOperators
-
createStartupExecutor
-
createExchangeExecutor
@Provides public static ScheduledExecutorService createExchangeExecutor(DirectExchangeClientConfig config) -
createAsyncHttpResponseCoreExecutor
-
createAsyncHttpResponseExecutor
@Provides public static io.airlift.concurrent.BoundedExecutor createAsyncHttpResponseExecutor(ExecutorService coreExecutor, TaskManagerConfig config) -
createAsyncHttpTimeoutExecutor
@Provides public static ScheduledExecutorService createAsyncHttpTimeoutExecutor(TaskManagerConfig config)
-