1/* 2 * Copyright (C) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import {Address, ProfilerClient} from "./ProfilerClient.js"; 17 18export class HiProfilerClient { 19 private _client: ProfilerClient; 20 private _address: Address; 21 22 public constructor(clients: ProfilerClient, addr: Address) { 23 this._client = clients; 24 this._address = addr; 25 }; 26 27 get client(): ProfilerClient { 28 return this._client; 29 } 30 31 set client(value: ProfilerClient) { 32 this._client = value; 33 } 34 35 get address(): Address { 36 return this._address; 37 } 38 39 set address(value: Address) { 40 this._address = value; 41 } 42 43 public getProfilerClient(): ProfilerClient { 44 return this._client; 45 } 46 47 public getCapabilities() { 48 // this.client.start() 49 // this.client.getCapabilities( 50 } 51 52 public createSession() { 53 // this.client.createSession( 54 } 55 56 public startSession() { 57 // this.client.startSession( 58 } 59 60 public stopSession() { 61 // this.client.stopSession( 62 } 63 64 public destroySession() { 65 // this.client.destroySession( 66 } 67 68 public keepSession() { 69 // this.client.keepSession( 70 } 71}