UNPKG

1.42 kBTypeScriptView Raw
1import ServerBase from "../common/ServerBase";
2import SqlBlobConfiguration from "./SqlBlobConfiguration";
3/**
4 * Default implementation of Azurite Blob HTTP server.
5 * This implementation provides a HTTP service based on express framework and LokiJS in memory database.
6 *
7 * We can create other blob servers by extending abstract Server class and initialize different httpServer,
8 * dataStore or requestListenerFactory fields.
9 *
10 * For example, creating a HTTPS server to accept HTTPS requests, or using other
11 * Node.js HTTP frameworks like Koa, or just using another SQL database.
12 *
13 * @export
14 * @class Server
15 */
16export default class SqlBlobServer extends ServerBase {
17 private readonly metadataStore;
18 private readonly extentMetadataStore;
19 private readonly extentStore;
20 private readonly accountDataStore;
21 private readonly gcManager;
22 /**
23 * Creates an instance of Server.
24 *
25 * @param {BlobConfiguration} configuration
26 * @memberof Server
27 */
28 constructor(configuration: SqlBlobConfiguration);
29 /**
30 * Clean up server persisted extent data.
31 *
32 * @returns {Promise<void>}
33 * @memberof BlobServer
34 */
35 clean(): Promise<void>;
36 protected beforeStart(): Promise<void>;
37 protected afterStart(): Promise<void>;
38 protected beforeClose(): Promise<void>;
39 protected afterClose(): Promise<void>;
40}
41//# sourceMappingURL=SqlBlobServer.d.ts.map
\No newline at end of file