Package io.deephaven.engine.table.impl
Class InstrumentedTableListenerBase
java.lang.Object
io.deephaven.util.referencecounting.ReferenceCounted
io.deephaven.engine.liveness.ReferenceCountedLivenessReferent
io.deephaven.engine.liveness.ReferenceCountedLivenessNode
io.deephaven.engine.liveness.LivenessArtifact
io.deephaven.engine.table.impl.InstrumentedTableListenerBase
- All Implemented Interfaces:
LogOutputAppendable
,LivenessManager
,LivenessNode
,LivenessReferent
,TableListener
,NotificationQueue.Dependency
,Serializable
- Direct Known Subclasses:
InstrumentedTableUpdateListener
,ShiftObliviousInstrumentedListener
public abstract class InstrumentedTableListenerBase
extends LivenessArtifact
implements TableListener, NotificationQueue.Dependency
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
protected class
Nested classes/interfaces inherited from interface io.deephaven.engine.table.TableListener
TableListener.Entry
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canExecute
(long step) @Nullable PerformanceEntry
getEntry()
getErrorNotification
(Throwable originalException, TableListener.Entry sourceEntry) Creates a notification for the exception.void
onFailure
(Throwable originalException, @Nullable TableListener.Entry sourceEntry) Notification of exceptions.protected abstract void
onFailureInternal
(Throwable originalException, @Nullable TableListener.Entry sourceEntry) protected final void
onFailureInternalWithDependent
(BaseTable<?> dependent, Throwable originalException, TableListener.Entry sourceEntry) boolean
satisfied
(long step) Is this ancestor satisfied? Note that this method must be safe to call on any thread.static boolean
setVerboseLogging
(boolean enableVerboseLogging) toString()
Methods inherited from class io.deephaven.engine.liveness.LivenessArtifact
manageWithCurrentScope
Methods inherited from class io.deephaven.engine.liveness.ReferenceCountedLivenessNode
getWeakReference, initializeTransientFieldsForLiveness, onReferenceCountAtZero, tryManage, tryUnmanage, tryUnmanage
Methods inherited from class io.deephaven.engine.liveness.ReferenceCountedLivenessReferent
destroy, dropReference, tryRetainReference
Methods inherited from class io.deephaven.util.referencecounting.ReferenceCounted
decrementReferenceCount, forceReferenceCountToZero, getReferenceCountDebug, incrementReferenceCount, resetReferenceCount, tryDecrementReferenceCount, tryIncrementReferenceCount
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.deephaven.engine.liveness.LivenessManager
manage, tryManage
Methods inherited from interface io.deephaven.engine.liveness.LivenessNode
tryUnmanage, tryUnmanage, unmanage, unmanage
Methods inherited from interface io.deephaven.engine.liveness.LivenessReferent
dropReference, getReferentDescription, getWeakReference, retainReference, tryRetainReference
Methods inherited from interface io.deephaven.engine.updategraph.NotificationQueue.Dependency
getUpdateGraph
-
Field Details
-
failed
protected boolean failed
-
-
Method Details
-
getUpdateGraph
- Specified by:
getUpdateGraph
in interfaceNotificationQueue.Dependency
- Returns:
- the update graph that this dependency is a part of
-
toString
- Overrides:
toString
in classReferenceCounted
-
setVerboseLogging
public static boolean setVerboseLogging(boolean enableVerboseLogging) -
getEntry
-
getErrorNotification
public NotificationQueue.ErrorNotification getErrorNotification(Throwable originalException, TableListener.Entry sourceEntry) Description copied from interface:TableListener
Creates a notification for the exception.- Specified by:
getErrorNotification
in interfaceTableListener
- Parameters:
originalException
- exceptionsourceEntry
- performance tracking- Returns:
- exception notification
-
append
- Specified by:
append
in interfaceLogOutputAppendable
- Overrides:
append
in classReferenceCounted
-
canExecute
public boolean canExecute(long step) -
satisfied
public boolean satisfied(long step) Description copied from interface:NotificationQueue.Dependency
Is this ancestor satisfied? Note that this method must be safe to call on any thread.- Specified by:
satisfied
in interfaceNotificationQueue.Dependency
- Parameters:
step
- The step for which we are testing satisfaction- Returns:
- Whether the dependency is satisfied on
step
(and will not fire subsequent notifications)
-
onFailure
public void onFailure(Throwable originalException, @Nullable @Nullable TableListener.Entry sourceEntry) Description copied from interface:TableListener
Notification of exceptions.- Specified by:
onFailure
in interfaceTableListener
- Parameters:
originalException
- exceptionsourceEntry
- performance tracking
-
onFailureInternal
protected abstract void onFailureInternal(Throwable originalException, @Nullable @Nullable TableListener.Entry sourceEntry) -
onFailureInternalWithDependent
protected final void onFailureInternalWithDependent(BaseTable<?> dependent, Throwable originalException, TableListener.Entry sourceEntry)
-