Package io.deephaven.enterprise.dnd
Class ControllerClientFactory
java.lang.Object
io.deephaven.enterprise.dnd.ControllerClientFactory
A lazy provider of the singleton controller client for queries. Some operations require the controller client, and we
do not want to create one unless it is necessary, or create more than one to avoid additional controller load. The
client is currently used for:
- PQ URI resolution.
- Variable updates.
- Heartbeat requests
- Script requests
-
Constructor Summary
ConstructorsConstructorDescriptionControllerClientFactory
(@NotNull AuthenticationClient authClient, @Nullable io.deephaven.shadow.jetcd.io.etcd.jetcd.Client etcdClient, @Nullable String name) -
Method Summary
Modifier and TypeMethodDescriptionGet a controller client that is subscribed to all queries.Get a (possibly) unsubscribed controller client.static ControllerClientFactory
static ControllerClientFactory
makeControllerClientFactory
(@NotNull AuthenticationClient authClient, @NotNull io.deephaven.shadow.jetcd.io.etcd.jetcd.Client etcdClient, @NotNull ProcessInfo info) static ControllerClientFactory
makeControllerClientFactory
(@Nullable String name)
-
Constructor Details
-
ControllerClientFactory
public ControllerClientFactory(@NotNull @NotNull AuthenticationClient authClient, @Nullable @Nullable io.deephaven.shadow.jetcd.io.etcd.jetcd.Client etcdClient, @Nullable @Nullable String name)
-
-
Method Details
-
makeControllerClientFactory
@Provides @Singleton public static ControllerClientFactory makeControllerClientFactory(@NotNull @NotNull AuthenticationClient authClient, @NotNull @NotNull io.deephaven.shadow.jetcd.io.etcd.jetcd.Client etcdClient, @NotNull @NotNull ProcessInfo info) -
makeControllerClientFactory
-
makeControllerClientFactory
-
getUnsubscribed
Get a (possibly) unsubscribed controller client.- Returns:
- a controller client
-
getSubscribed
Get a controller client that is subscribed to all queries.- Returns:
- a subscribed controller client.
-