Package io.deephaven.server.runner
Class DeephavenApiServer
java.lang.Object
io.deephaven.server.runner.DeephavenApiServer
Entrypoint for the Deephaven gRPC server, starting the various engine and script components, running any specified
application, and enabling the gRPC endpoints to be accessed by consumers.
-
Constructor Summary
ConstructorDescriptionDeephavenApiServer
(GrpcServer server, UpdateGraph ug, LogInit logInit, javax.inject.Provider<Set<BusinessCalendar>> calendars, Scheduler scheduler, javax.inject.Provider<ScriptSession> scriptSessionProvider, PluginRegistration pluginRegistration, ApplicationInjector applicationInjector, UriResolvers uriResolvers, SessionService sessionService, Map<String, AuthenticationRequestHandler> authenticationHandlers, javax.inject.Provider<ExecutionContext> executionContextProvider, ServerConfig serverConfig, SessionFactoryCreator sessionFactoryCreator) -
Method Summary
Modifier and TypeMethodDescriptionstatic DeephavenApiServer
void
join()
Blocks until the server exits.run()
Starts the various server components, and returns without blocking.server()
-
Constructor Details
-
DeephavenApiServer
@Inject public DeephavenApiServer(GrpcServer server, @Named("DEFAULT") UpdateGraph ug, LogInit logInit, javax.inject.Provider<Set<BusinessCalendar>> calendars, Scheduler scheduler, javax.inject.Provider<ScriptSession> scriptSessionProvider, PluginRegistration pluginRegistration, ApplicationInjector applicationInjector, UriResolvers uriResolvers, SessionService sessionService, Map<String, AuthenticationRequestHandler> authenticationHandlers, javax.inject.Provider<ExecutionContext> executionContextProvider, ServerConfig serverConfig, SessionFactoryCreator sessionFactoryCreator)
-
-
Method Details
-
getInstance
-
server
-
sessionService
-
run
Starts the various server components, and returns without blocking. Shutdown is mediated by the ShutdownManager, who will call the gRPC server to shut it down when the process is itself shutting down.- Throws:
IOException
- thrown in event of an error with logging, finding and running an application, and starting the gRPC service.ClassNotFoundException
- thrown if a class can't be found while finding and running an application.TimeoutException
-
join
Blocks until the server exits.- Throws:
InterruptedException
- thrown if this thread is interrupted while blocking for the server to halt.
-
getUpdateGraph
-
sessionFactoryCreator
-