Private
allPrivate
expirationPrivate
globalPrivate
globalPrivate
lastProtected
Readonly
loggerLogger instance for this service
Protected
Readonly
nameService name for logging
Private
notebookPrivate
Readonly
RUNTIME_Private
runtimePrivate
runtimePrivate
Readonly
sdkPrivate
stateGets the current service state.
Protected
assertPrivate
clearClear all expiration timers.
Create a runtime for a specific notebook.
Optional
notebookPath: stringOptional
options: RuntimeOptionsPrivate
createInternal runtime creation method.
Optional
notebookPath: stringOptional
options: RuntimeOptionsDisposes the service and cleans up resources. Ensures disposal only happens once.
Private
emitGet runtime for a notebook.
Get service manager for a notebook.
Private
handlePrivate
handleHandle runtime expiration.
Initializes the service. Ensures initialization only happens once and tracks state.
List all runtimes on the platform. Uses cached data if available and fresh (< 30 seconds old).
Private
notifyNotify all subscribers that the runtime list has been refreshed.
Manually trigger runtime expiration (e.g., when user terminates a runtime) This will notify all subscribers that the runtime is no longer available
Protected
onImplementation-specific disposal logic. Called once during dispose().
Protected
onImplementation-specific initialization logic. Called once during initialize().
Subscribe to global runtime expiration events. Called when ANY runtime on the platform expires.
Function to call with the expired runtime's podName
Unsubscribe function
Subscribe to runtime list refresh events. Called when the list of all runtimes has been updated.
Subscribe to runtime state changes.
Refresh the list of all platform runtimes. Forces a fresh fetch even if cached data exists.
Set service manager for a notebook.
Private
startStart expiration timer for runtime.
Terminate a runtime for a specific notebook.
Private
updateUpdate global expiration timers for all platform runtimes. This monitors ALL runtimes and notifies when they expire.
Runtime service implementation using dependency injection. No global state, no singletons - all dependencies injected.