Package io.deephaven.enterprise.remote
Class ControllerStateWatcher
java.lang.Object
io.deephaven.enterprise.remote.ControllerStateWatcher
- All Implemented Interfaces:
RemoteTableStateWatcher
A
RemoteTableStateWatcher
that uses a PersistentQueryControllerClient
to produce tokens backed by
PersistentQueryInfoMessage
s.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
ARemoteTableStateWatcher.StateToken
backed by aPersistentQueryInfoMessage
Nested classes/interfaces inherited from interface io.deephaven.enterprise.remote.RemoteTableStateWatcher
RemoteTableStateWatcher.Observer, RemoteTableStateWatcher.StateToken
-
Constructor Summary
ConstructorsConstructorDescriptionControllerStateWatcher
(@NotNull PersistentQueryControllerClient client, @NotNull String queryName) Createa a newControllerStateWatcher
that monitors the state of the specified query by name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearObserver
(@NotNull RemoteTableStateWatcher.Observer o) Remove theRemoteTableStateWatcher.Observer
set byRemoteTableStateWatcher.setObserver(Observer)
.Get a description of the watcher.void
setObserver
(@NotNull RemoteTableStateWatcher.Observer o) Set theRemoteTableStateWatcher.Observer
to notify of state changes.
-
Constructor Details
-
ControllerStateWatcher
public ControllerStateWatcher(@NotNull @NotNull PersistentQueryControllerClient client, @NotNull @NotNull String queryName) Createa a newControllerStateWatcher
that monitors the state of the specified query by name.- Parameters:
client
- thePersistentQueryControllerClient
queryName
- the query name.
-
-
Method Details
-
setObserver
Description copied from interface:RemoteTableStateWatcher
Set theRemoteTableStateWatcher.Observer
to notify of state changes.- Specified by:
setObserver
in interfaceRemoteTableStateWatcher
- Parameters:
o
- the observer
-
description
Description copied from interface:RemoteTableStateWatcher
Get a description of the watcher.- Specified by:
description
in interfaceRemoteTableStateWatcher
- Returns:
- a description.
-
clearObserver
Description copied from interface:RemoteTableStateWatcher
Remove theRemoteTableStateWatcher.Observer
set byRemoteTableStateWatcher.setObserver(Observer)
. The observer must be identical.- Specified by:
clearObserver
in interfaceRemoteTableStateWatcher
- Parameters:
o
- the observer to remove. Must be identical to what was passed toRemoteTableStateWatcher.setObserver(Observer)
-