Package io.prestosql.server
Class ServerMainModule
- java.lang.Object
-
- io.airlift.configuration.AbstractConfigurationAwareModule
-
- io.prestosql.server.ServerMainModule
-
- All Implemented Interfaces:
com.google.inject.Module
,io.airlift.configuration.ConfigurationAwareModule
public class ServerMainModule extends io.airlift.configuration.AbstractConfigurationAwareModule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerMainModule.ExecutorCleanup
-
Constructor Summary
Constructors Constructor Description ServerMainModule(String nodeVersion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExecutorService
createAsyncHttpResponseCoreExecutor()
static io.airlift.concurrent.BoundedExecutor
createAsyncHttpResponseExecutor(ExecutorService coreExecutor, TaskManagerConfig config)
static ScheduledExecutorService
createAsyncHttpTimeoutExecutor(TaskManagerConfig config)
static BlockEncodingSerde
createBlockEncodingSerde(Metadata metadata)
static ScheduledExecutorService
createExchangeExecutor(ExchangeClientConfig config)
static TypeOperators
createTypeOperators(TypeOperatorsCache typeOperatorsCache)
protected void
setup(com.google.inject.Binder binder)
-
-
-
Constructor Detail
-
ServerMainModule
public ServerMainModule(String nodeVersion)
-
-
Method Detail
-
setup
protected void setup(com.google.inject.Binder binder)
- Specified by:
setup
in classio.airlift.configuration.AbstractConfigurationAwareModule
-
createTypeOperators
@Provides @Singleton public static TypeOperators createTypeOperators(TypeOperatorsCache typeOperatorsCache)
-
createExchangeExecutor
@Provides @Singleton public static ScheduledExecutorService createExchangeExecutor(ExchangeClientConfig config)
-
createAsyncHttpResponseCoreExecutor
@Provides @Singleton public static ExecutorService createAsyncHttpResponseCoreExecutor()
-
createAsyncHttpResponseExecutor
@Provides @Singleton public static io.airlift.concurrent.BoundedExecutor createAsyncHttpResponseExecutor(ExecutorService coreExecutor, TaskManagerConfig config)
-
createAsyncHttpTimeoutExecutor
@Provides @Singleton public static ScheduledExecutorService createAsyncHttpTimeoutExecutor(TaskManagerConfig config)
-
createBlockEncodingSerde
@Provides @Singleton public static BlockEncodingSerde createBlockEncodingSerde(Metadata metadata)
-
-