Class PersistentQueryTablesContext
java.lang.Object
io.deephaven.util.referencecounting.ReferenceCounted
io.deephaven.engine.liveness.ReferenceCountedLivenessReferent
io.deephaven.engine.liveness.ReferenceCountedLivenessNode
io.deephaven.enterprise.webclientdata2.PersistentQueryTablesContext
- All Implemented Interfaces:
LogOutputAppendable,LivenessManager,LivenessNode,LivenessReferent
Creates and makes available tables associated to controller subscriptions for PQ state changes. The object is a
liveness node managed by the tables it creates, to ensure their liveness.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPersistentQueryTablesContext(String user, PersistentQueryControllerClient controllerClient, GroupProvider groupProvider, UpdateSourceRegistrar updateSourceRegistrar, Runnable shutdownHook) Create a new object of this class -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconfigTypeNameToDisplayableName(String configTypeName) voiddestroy()Get the QueryInfo tableGet the raw Config tableGet the raw State tablestatic @Nullable StringgetSchedulingDetails(String[] scheduling) Get the ScopeNamesAndType tablevoidshutdown()Ask this object to shutdown itself.static StringstatusAsString(Object enumName) voidBlock until the initial controller client subscription is completed.Methods inherited from class io.deephaven.engine.liveness.ReferenceCountedLivenessNode
getWeakReference, initializeTransientFieldsForLiveness, onReferenceCountAtZero, tryManage, tryUnmanage, tryUnmanageMethods inherited from class io.deephaven.engine.liveness.ReferenceCountedLivenessReferent
dropReference, tryRetainReferenceMethods inherited from class io.deephaven.util.referencecounting.ReferenceCounted
append, decrementReferenceCount, forceReferenceCountToZero, getReferenceCountDebug, incrementReferenceCount, resetReferenceCount, toString, tryDecrementReferenceCount, tryIncrementReferenceCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.deephaven.engine.liveness.LivenessManager
manage, unmanage, unmanageMethods inherited from interface io.deephaven.engine.liveness.LivenessReferent
dropReference, getReferentDescription, retainReference, tryRetainReference
-
Field Details
-
SERIAL_COLUMN_NAME
- See Also:
-
SPARE_COUNT_COLUMN_NAME
- See Also:
-
MULTIPLE_STATES_COLUMN_NAME
- See Also:
-
REPLICA_SLOT_COLUMN_NAME
- See Also:
-
GEN_COL_NAME
- See Also:
-
-
Constructor Details
-
PersistentQueryTablesContext
public PersistentQueryTablesContext(String user, PersistentQueryControllerClient controllerClient, GroupProvider groupProvider, UpdateSourceRegistrar updateSourceRegistrar, Runnable shutdownHook) Create a new object of this class- Parameters:
controllerClient- a controller client where to add an observerupdateSourceRegistrar- the registrar to use for this objectshutdownHook- code to run when this object is destroyed
-
-
Method Details
-
getRawConfigTable
Get the raw Config table- Returns:
- a table
-
getRawStateTable
Get the raw State table- Returns:
- a table
-
waitUntilInitialSubscriptionDone
public void waitUntilInitialSubscriptionDone()Block until the initial controller client subscription is completed. -
getQueryInfoTable
Get the QueryInfo table- Returns:
- a table
-
getScopeNamesAndTypeTable
Get the ScopeNamesAndType table- Returns:
- a table
-
shutdown
public void shutdown()Ask this object to shutdown itself. -
destroy
public void destroy()- Overrides:
destroyin classReferenceCountedLivenessReferent
-
statusAsString
-
configTypeNameToDisplayableName
-
getSchedulingDetails
-