experimentManager.ts 973 Bytes
Newer Older
1
2
3
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

4
export class MockedExperimentManager {
5
6
7
8
9
10
11
12
13
14
15
16
17
18
    public getExperimentsInfo(): Promise<JSON> {
        const expInfo = JSON.parse(JSON.stringify({
            "test": {
                "port": 8080,
                "startTime": 1605246730756,
                "endTime": "N/A",
                "status": "RUNNING",
                "platform": "local",
                "experimentName": "testExp",
                "tag": [], "pid": 11111,
                "webuiUrl": [],
                "logDir": null
            }
        }));
19
        return new Promise<JSON>((resolve, _reject) => {
20
21
22
23
            resolve(expInfo);
        });
    }

24
    public setExperimentPath(_newPath: string): void {
25
26
27
        return
    }

28
    public setExperimentInfo(_experimentId: string, _key: string, _value: any): void {
29
30
31
32
33
34
35
        return
    }

    public stop(): Promise<void> {
        return new Promise<void>(()=>{});
    }
}