Package io.deephaven.enterprise.test
Class CapturingUpdateGraph
java.lang.Object
io.deephaven.enterprise.test.CapturingUpdateGraph
- All Implemented Interfaces:
LogOutputAppendable,NotificationQueue,NotificationQueue.Dependency,UpdateGraph,UpdateSourceRegistrar
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.updategraph.NotificationQueue
NotificationQueue.Dependency, NotificationQueue.ErrorNotification, NotificationQueue.Notification -
Constructor Summary
ConstructorsConstructorDescriptionCapturingUpdateGraph(@NotNull io.deephaven.engine.testutil.ControlledUpdateGraph delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotification(@NotNull NotificationQueue.Notification notification) voidaddNotifications(@NotNull Collection<? extends NotificationQueue.Notification> notifications) voidclock()booleangetName()booleanmaybeAddNotification(@NotNull NotificationQueue.Notification notification, long deliveryStep) intvoidvoidremoveSource(@NotNull Runnable updateSource) voidvoidresetForUnitTests(boolean after) <T extends Exception>
voidrunWithinUnitTestCycle(@NotNull ThrowingRunnable<T> runnable) <T extends Exception>
voidrunWithinUnitTestCycle(@NotNull ThrowingRunnable<T> runnable, boolean satisfied) booleansatisfied(long step) booleanbooleansetSerialTableOperationsSafe(boolean newValue) voidstop()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.engine.updategraph.NotificationQueue.Dependency
getUpdateGraphMethods inherited from interface io.deephaven.engine.updategraph.UpdateGraph
allowSerialTableOperations, allowSerialTableOperations, cast, checkInitiateSerialTableOperation, requestSignal, runWhenIdleMethods inherited from interface io.deephaven.engine.updategraph.UpdateSourceRegistrar
removeSources
-
Constructor Details
-
CapturingUpdateGraph
public CapturingUpdateGraph(@NotNull @NotNull io.deephaven.engine.testutil.ControlledUpdateGraph delegate)
-
-
Method Details
-
addSource
- Specified by:
addSourcein interfaceUpdateSourceRegistrar
-
refreshSources
public void refreshSources() -
append
- Specified by:
appendin interfaceLogOutputAppendable
-
satisfied
public boolean satisfied(long step) - Specified by:
satisfiedin interfaceNotificationQueue.Dependency
-
getUpdateGraph
- Specified by:
getUpdateGraphin interfaceNotificationQueue.Dependency
-
addNotification
- Specified by:
addNotificationin interfaceNotificationQueue
-
addNotifications
public void addNotifications(@NotNull @NotNull Collection<? extends NotificationQueue.Notification> notifications) - Specified by:
addNotificationsin interfaceNotificationQueue
-
maybeAddNotification
public boolean maybeAddNotification(@NotNull @NotNull NotificationQueue.Notification notification, long deliveryStep) - Specified by:
maybeAddNotificationin interfaceNotificationQueue
-
getName
- Specified by:
getNamein interfaceUpdateGraph
-
exclusiveLock
- Specified by:
exclusiveLockin interfaceUpdateGraph
-
clock
- Specified by:
clockin interfaceUpdateGraph
-
parallelismFactor
public int parallelismFactor()- Specified by:
parallelismFactorin interfaceUpdateGraph
-
logDependencies
- Specified by:
logDependenciesin interfaceUpdateGraph
-
currentThreadProcessesUpdates
public boolean currentThreadProcessesUpdates()- Specified by:
currentThreadProcessesUpdatesin interfaceUpdateGraph
-
serialTableOperationsSafe
public boolean serialTableOperationsSafe()- Specified by:
serialTableOperationsSafein interfaceUpdateGraph
-
setSerialTableOperationsSafe
public boolean setSerialTableOperationsSafe(boolean newValue) - Specified by:
setSerialTableOperationsSafein interfaceUpdateGraph
-
supportsRefreshing
public boolean supportsRefreshing()- Specified by:
supportsRefreshingin interfaceUpdateGraph
-
requestRefresh
public void requestRefresh()- Specified by:
requestRefreshin interfaceUpdateGraph- Specified by:
requestRefreshin interfaceUpdateSourceRegistrar
-
removeSource
- Specified by:
removeSourcein interfaceUpdateSourceRegistrar
-
runWithinUnitTestCycle
public <T extends Exception> void runWithinUnitTestCycle(@NotNull @NotNull ThrowingRunnable<T> runnable) throws T - Throws:
T extends Exception
-
runWithinUnitTestCycle
public <T extends Exception> void runWithinUnitTestCycle(@NotNull @NotNull ThrowingRunnable<T> runnable, boolean satisfied) throws T - Throws:
T extends Exception
-
resetForUnitTests
public void resetForUnitTests(boolean after) -
stop
public void stop()- Specified by:
stopin interfaceUpdateGraph
-