Class WebClientTableFactory
java.lang.Object
io.deephaven.enterprise.webclientdata2.WebClientTableFactory
Create, manage lifetimes and cache tables created on behalf of particular users, based on controller subscriptions
for that user.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWebClientTableFactory(@NotNull Database db, @NotNull AuthenticationClient authClient, @NotNull io.deephaven.shadow.jetcd.io.etcd.jetcd.Client etcdClient, @NotNull GroupProvider groupProvider) Create an instance of this class -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateAndAddToScope(@NotNull Database db, @NotNull AuthenticationClient authClient, @NotNull io.deephaven.shadow.jetcd.io.etcd.jetcd.Client etcdClient, @NotNull GroupProvider groupProvider, @NotNull QueryScope scope) Create an instance of this class and add it to the given scope.getOrCreate(String baseTableName, String user) Get from cache or create a table based on its name.static boolean
-
Field Details
-
SCOPE_NAME
- See Also:
-
logPfx
-
-
Constructor Details
-
WebClientTableFactory
public WebClientTableFactory(@NotNull @NotNull Database db, @NotNull @NotNull AuthenticationClient authClient, @NotNull @NotNull io.deephaven.shadow.jetcd.io.etcd.jetcd.Client etcdClient, @NotNull @NotNull GroupProvider groupProvider) Create an instance of this class- Parameters:
db- the DatabaseauthClient- the authentication clientetcdClient- the etcd clientgroupProvider- the group provider
-
-
Method Details
-
isObjectsDebugEnabled
public static boolean isObjectsDebugEnabled() -
createAndAddToScope
public static void createAndAddToScope(@NotNull @NotNull Database db, @NotNull @NotNull AuthenticationClient authClient, @NotNull @NotNull io.deephaven.shadow.jetcd.io.etcd.jetcd.Client etcdClient, @NotNull @NotNull GroupProvider groupProvider, @NotNull @NotNull QueryScope scope) Create an instance of this class and add it to the given scope.- Parameters:
db- the DatabaseauthClient- the authentication clientetcdClient- the etcd clientgroupProvider- the group providerscope- the scope
-
getOrCreate
Get from cache or create a table based on its name. The caller is assumed to have an active liveness scope.- Parameters:
baseTableName- the name of the base tableuser- the name of a user for which to provide a user-specific version of the base table- Returns:
- a table
-