Package io.trino.server.testing
Class TestingTrinoServer
java.lang.Object
io.trino.server.testing.TestingTrinoServer
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the event listeners from connectors.voidaddFinalQueryInfoListener(QueryId queryId, StateMachine.StateChangeListener<QueryInfo> stateChangeListener) voidaddFunctions(FunctionBundle functionBundle) static TestingTrinoServer.Builderbuilder()voidclose()static TestingTrinoServercreate()voidcreateCatalog(String catalogName, String connectorName) voidcom.google.common.net.HostAndPortgetConnector(String catalogName) getFullQueryInfo(QueryId queryId) com.google.common.net.HostAndPort<T> TgetInstance(com.google.inject.Key<T> key) getQueryPlan(QueryId queryId) voidinjectTaskFailure(String traceToken, int stageId, int partitionId, int attemptId, FailureInjector.InjectedFailureType injectionType, Optional<ErrorType> errorType) voidinstallPlugin(Plugin plugin) booleanvoidloadExchangeManager(String name, Map<String, String> properties) final AllNodes
-
Field Details
-
SESSION_START_TIME_PROPERTY
- See Also:
-
-
Method Details
-
create
-
builder
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
installPlugin
-
getDispatchManager
-
getQueryManager
-
getQueryPlan
-
getFullQueryInfo
-
addFinalQueryInfoListener
public void addFinalQueryInfoListener(QueryId queryId, StateMachine.StateChangeListener<QueryInfo> stateChangeListener) -
createCatalog
-
createCatalog
-
loadExchangeManager
-
addConnectorEventListeners
public void addConnectorEventListeners()Add the event listeners from connectors. Connector event listeners are only supported for statically loaded catalogs, and this doesn't match up with the model of the testing Trino server. This method should only be called once after all catalogs are added. -
getBaseDataDir
-
getBaseUrl
-
getHttpsBaseUrl
-
resolve
-
getAddress
public com.google.common.net.HostAndPort getAddress() -
getHttpsAddress
public com.google.common.net.HostAndPort getHttpsAddress() -
getTransactionManager
-
getTablePropertyManager
-
getPlannerContext
-
getQueryExplainer
-
getSessionPropertyManager
-
addFunctions
-
getStatsCalculator
-
getAccessControl
-
getGroupProvider
-
getProcedureTester
-
getSplitManager
-
getPageSourceManager
-
getResourceGroupManager
-
getSessionPropertyDefaults
-
getNodePartitioningManager
-
getLocalMemoryManager
-
getClusterMemoryManager
-
getMbeanServer
-
getGracefulShutdownHandler
-
getTaskManager
-
getShutdownAction
-
getConnector
-
isCoordinator
public boolean isCoordinator() -
refreshNodes
-
getInstance
public <T> T getInstance(com.google.inject.Key<T> key) -
injectTaskFailure
public void injectTaskFailure(String traceToken, int stageId, int partitionId, int attemptId, FailureInjector.InjectedFailureType injectionType, Optional<ErrorType> errorType)
-