1 | import { IDisposable } from '@lumino/disposable';
|
2 | import { Poll } from '@lumino/polling';
|
3 | import { ISignal } from '@lumino/signaling';
|
4 | import { Builder } from './builder';
|
5 | import { Contents } from './contents';
|
6 | import { Event } from './event';
|
7 | import { Kernel } from './kernel';
|
8 | import { KernelSpec } from './kernelspec';
|
9 | import { NbConvert } from './nbconvert';
|
10 | import { ServerConnection } from './serverconnection';
|
11 | import { Session } from './session';
|
12 | import { Setting } from './setting';
|
13 | import { Terminal } from './terminal';
|
14 | import { User } from './user';
|
15 | import { Workspace } from './workspace';
|
16 |
|
17 |
|
18 |
|
19 | export declare class ServiceManager implements ServiceManager.IManager {
|
20 | |
21 |
|
22 |
|
23 | constructor(options?: Partial<ServiceManager.IOptions>);
|
24 | /**
|
25 | * A signal emitted when there is a connection failure with the kernel.
|
26 | */
|
27 | get connectionFailure(): ISignal<this, Error>;
|
28 | /**
|
29 | * Test whether the service manager is disposed.
|
30 | */
|
31 | get isDisposed(): boolean;
|
32 | /**
|
33 | * Dispose of the resources used by the manager.
|
34 | */
|
35 | dispose(): void;
|
36 | /**
|
37 | * The server settings of the manager.
|
38 | */
|
39 | readonly serverSettings: ServerConnection.ISettings;
|
40 | /**
|
41 | * Get the session manager instance.
|
42 | */
|
43 | readonly sessions: Session.IManager;
|
44 | /**
|
45 | * Get the kernel manager instance.
|
46 | */
|
47 | readonly kernels: Kernel.IManager;
|
48 | /**
|
49 | * Get the kernelspec manager instance.
|
50 | */
|
51 | readonly kernelspecs: KernelSpec.IManager;
|
52 | /**
|
53 | * Get the setting manager instance.
|
54 | */
|
55 | readonly settings: Setting.IManager;
|
56 | /**
|
57 | * The builder for the manager.
|
58 | */
|
59 | readonly builder: Builder.IManager;
|
60 | /**
|
61 | * Get the contents manager instance.
|
62 | */
|
63 | readonly contents: Contents.IManager;
|
64 | /**
|
65 | * The event manager instance.
|
66 | */
|
67 | readonly events: Event.IManager;
|
68 | /**
|
69 | * Get the terminal manager instance.
|
70 | */
|
71 | readonly terminals: Terminal.IManager;
|
72 | /**
|
73 | * Get the user manager instance.
|
74 | */
|
75 | readonly user: User.IManager;
|
76 | /**
|
77 | * Get the workspace manager instance.
|
78 | */
|
79 | readonly workspaces: Workspace.IManager;
|
80 | /**
|
81 | * Get the nbconvert manager instance.
|
82 | */
|
83 | readonly nbconvert: NbConvert.IManager;
|
84 | /**
|
85 | * Test whether the manager is ready.
|
86 | */
|
87 | get isReady(): boolean;
|
88 | /**
|
89 | * A promise that fulfills when the manager is ready.
|
90 | */
|
91 | get ready(): Promise<void>;
|
92 | private _onConnectionFailure;
|
93 | private _isDisposed;
|
94 | private _readyPromise;
|
95 | private _connectionFailure;
|
96 | private _isReady;
|
97 | }
|
98 | /**
|
99 | * The namespace for `ServiceManager` statics.
|
100 | */
|
101 | export declare namespace ServiceManager {
|
102 | |
103 |
|
104 |
|
105 | export interface IManager extends IDisposable, IManagers {
|
106 | |
107 |
|
108 |
|
109 | readonly isReady: boolean;
|
110 | |
111 |
|
112 |
|
113 | readonly ready: Promise<void>;
|
114 | |
115 |
|
116 |
|
117 | readonly connectionFailure: ISignal<IManager, Error>;
|
118 | }
|
119 | |
120 |
|
121 |
|
122 | export interface IOptions extends IManagers {
|
123 | |
124 |
|
125 |
|
126 | readonly defaultDrive: Contents.IDrive;
|
127 | |
128 |
|
129 |
|
130 | standby: Poll.Standby | (() => boolean | Poll.Standby);
|
131 | }
|
132 | /**
|
133 | * The managers provided by the service manager.
|
134 | */
|
135 | interface IManagers {
|
136 | /**
|
137 | * The builder for the manager.
|
138 | *
|
139 | * @deprecated will be removed in JupyterLab v5
|
140 | */
|
141 | readonly builder: Builder.IManager;
|
142 | /**
|
143 | * The contents manager for the manager.
|
144 | */
|
145 | readonly contents: Contents.IManager;
|
146 | /**
|
147 | * The events service manager.
|
148 | */
|
149 | readonly events: Event.IManager;
|
150 | /**
|
151 | * A promise that fulfills when the manager is initially ready.
|
152 | */
|
153 | readonly ready: Promise<void>;
|
154 | /**
|
155 | * The server settings of the manager.
|
156 | */
|
157 | readonly serverSettings: ServerConnection.ISettings;
|
158 | /**
|
159 | * The session manager for the manager.
|
160 | */
|
161 | readonly sessions: Session.IManager;
|
162 | /**
|
163 | * The kernel manager of the manager.
|
164 | */
|
165 | readonly kernels: Kernel.IManager;
|
166 | /**
|
167 | * The kernelspec manager for the manager.
|
168 | */
|
169 | readonly kernelspecs: KernelSpec.IManager;
|
170 | /**
|
171 | * The setting manager for the manager.
|
172 | */
|
173 | readonly settings: Setting.IManager;
|
174 | /**
|
175 | * The terminals manager for the manager.
|
176 | */
|
177 | readonly terminals: Terminal.IManager;
|
178 | /**
|
179 | * The user manager for the manager.
|
180 | */
|
181 | readonly user: User.IManager;
|
182 | /**
|
183 | * The workspace manager for the manager.
|
184 | */
|
185 | readonly workspaces: Workspace.IManager;
|
186 | /**
|
187 | * The nbconvert manager for the manager.
|
188 | */
|
189 | readonly nbconvert: NbConvert.IManager;
|
190 | }
|
191 | export {};
|
192 | }
|
193 |
|
\ | No newline at end of file |