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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFinalQueryInfoListener(QueryId queryId, StateMachine.StateChangeListener<QueryInfo> stateChangeListener) static TestingTrinoServer.Builderbuilder()voidclose()static TestingTrinoServercreate()createCatalog(String catalogName, String connectorName) getActiveNodesWithConnector(CatalogName catalogName) com.google.common.net.HostAndPortgetFullQueryInfo(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) booleanfinal AllNodesvoidwaitForNodeRefresh(Duration timeout)
-
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
-
getBaseDataDir
-
getBaseUrl
-
getHttpsBaseUrl
-
resolve
-
getAddress
public com.google.common.net.HostAndPort getAddress() -
getHttpsAddress
public com.google.common.net.HostAndPort getHttpsAddress() -
getCatalogManager
-
getTransactionManager
-
getMetadata
-
getTypeManager
-
getQueryExplainer
-
getSessionPropertyManager
-
getStatsCalculator
-
getProcedureRegistry
-
getAccessControl
-
getGroupProvider
-
getProcedureTester
-
getSplitManager
-
getPageSourceManager
-
getResourceGroupManager
-
getSessionPropertyDefaults
-
getNodePartitioningManager
-
getLocalMemoryManager
-
getClusterMemoryManager
-
getMbeanServer
-
getGracefulShutdownHandler
-
getTaskManager
-
getShutdownAction
-
isCoordinator
public boolean isCoordinator() -
refreshNodes
-
waitForNodeRefresh
- Throws:
InterruptedExceptionTimeoutException
-
getActiveNodesWithConnector
-
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)
-