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