Package io.deephaven.enterprise.dnd
Interface EnterpriseJettyComponent.Builder
- All Superinterfaces:
DeephavenApiServerComponent.Builder<EnterpriseJettyComponent.Builder,
EnterpriseJettyComponent>
- Enclosing interface:
- EnterpriseJettyComponent
@Builder
public static interface EnterpriseJettyComponent.Builder
extends DeephavenApiServerComponent.Builder<EnterpriseJettyComponent.Builder,EnterpriseJettyComponent>
The root builder for the DnD jetty component.
-
Method Summary
Modifier and TypeMethodDescriptionautoDelete
(Boolean autoDelete) Set if the worker should delete its corresponding query on shutdownbuild()
enforceSessionCount
(int enforceSessionCount) Set if the worker should time out when there are fewer than enforceSessionCount active sessions.pushSessionChanges
(boolean pushSessionChanges) Set if the worker should push session changes to the controller.sessionTimeoutMillis
(Long sessionTimeoutMillis) How long is the session timeout grace period.trustAll
(boolean trustAll) Set if the worker should ignore the truststore with regard for PQ uri resolution.withAdminGroups
(@NotNull Set<String> adminGroups) withAuditEventLogger
(@NotNull io.deephaven.enterprise.auth.audit.AuditEventLogger auditEventLogger) withDispatcherClient
(@NotNull io.deephaven.enterprise.dispatcher.client.DispatcherClient dispatcherClient) Set theDispatcherClient
for components.withJettyConfig
(@NotNull JettyConfig config) Set the Jetty configuration to use for the server.withPersistentQuerySerial
(long persistentQuerySerial) withUserContext
(@NotNull io.deephaven.enterprise.auth.UserContext context) Set the user context of the owning userwithViewerGroups
(@NotNull Set<String> viewerGroups) withVirtualEnvironment
(String virtualEnvironment) Methods inherited from interface io.deephaven.server.runner.DeephavenApiServerComponent.Builder
withErr, withOut
-
Method Details
-
withJettyConfig
@BindsInstance EnterpriseJettyComponent.Builder withJettyConfig(@NotNull @NotNull JettyConfig config) Set the Jetty configuration to use for the server.- Parameters:
config
- the configuration- Returns:
- this builder
-
withUserContext
@BindsInstance EnterpriseJettyComponent.Builder withUserContext(@NotNull @NotNull io.deephaven.enterprise.auth.UserContext context) Set the user context of the owning user- Parameters:
context
- the context- Returns:
- this builder
-
withAdminGroups
@BindsInstance EnterpriseJettyComponent.Builder withAdminGroups(@Named("auth.adminGroups") @NotNull @NotNull Set<String> adminGroups) -
withViewerGroups
@BindsInstance EnterpriseJettyComponent.Builder withViewerGroups(@Named("auth.viewerGroups") @NotNull @NotNull Set<String> viewerGroups) -
enforceSessionCount
@BindsInstance EnterpriseJettyComponent.Builder enforceSessionCount(@Named("enforceSessionCount") int enforceSessionCount) Set if the worker should time out when there are fewer than enforceSessionCount active sessions.- Parameters:
enforceSessionCount
- true if the worker should time out- Returns:
- this builder
-
sessionTimeoutMillis
@BindsInstance EnterpriseJettyComponent.Builder sessionTimeoutMillis(@Nullable @Named("sessionTimeoutMillis") Long sessionTimeoutMillis) How long is the session timeout grace period.- Parameters:
sessionTimeoutMillis
- how many millis after the last session terminates should we terminate- Returns:
- this builder
-
pushSessionChanges
@BindsInstance EnterpriseJettyComponent.Builder pushSessionChanges(@Named("pushSessionChanges") boolean pushSessionChanges) Set if the worker should push session changes to the controller.- Parameters:
pushSessionChanges
- true if the worker should push session changes to the controller- Returns:
- this builder
-
autoDelete
@BindsInstance EnterpriseJettyComponent.Builder autoDelete(@Named("queryAutoDelete") Boolean autoDelete) Set if the worker should delete its corresponding query on shutdown- Parameters:
autoDelete
- true if the worker should auto delete the corresponding query on shutdown- Returns:
- this builder
-
withDispatcherClient
@BindsInstance EnterpriseJettyComponent.Builder withDispatcherClient(@NotNull @NotNull io.deephaven.enterprise.dispatcher.client.DispatcherClient dispatcherClient) Set theDispatcherClient
for components.- Parameters:
dispatcherClient
- the dispatcher client- Returns:
- this builder
-
withAuditEventLogger
@BindsInstance EnterpriseJettyComponent.Builder withAuditEventLogger(@NotNull @NotNull io.deephaven.enterprise.auth.audit.AuditEventLogger auditEventLogger) - Parameters:
auditEventLogger
-AuditEventLogger
instance to be used as needed, e.g. uponDatabaseImpl
provision- Returns:
- this builder
-
withPersistentQuerySerial
@BindsInstance EnterpriseJettyComponent.Builder withPersistentQuerySerial(@Named("persistentQuerySerial") long persistentQuerySerial) - Parameters:
persistentQuerySerial
- the persistent query serial that we are running, -1 for non-pq workers- Returns:
- this builder
-
withVirtualEnvironment
@BindsInstance EnterpriseJettyComponent.Builder withVirtualEnvironment(@Nullable @Named("virtualEnvironment") String virtualEnvironment) -
trustAll
Set if the worker should ignore the truststore with regard for PQ uri resolution.- Parameters:
trustAll
- true if the worker should trust without regard to a truststore for uri resolution- Returns:
- this builder
-
build
EnterpriseJettyComponent build()- Specified by:
build
in interfaceDeephavenApiServerComponent.Builder<EnterpriseJettyComponent.Builder,
EnterpriseJettyComponent>
-