import { MetricsManager } from '../common/MetricsManager' ; import { Facade } from 'pandora-hub' ; const assert = require ( 'assert' ) ; export class MetricsInjectionBridge { static daemon : any = null ; static ipcHub : Facade = null ; static metricsManager ; static getMetricsManager ( ) { if ( ! this . metricsManager ) { assert ( 'please set metrics server before use it' ) ; } return this . metricsManager ; } static setMetricsManager ( metricsServer ) { this . metricsManager = metricsServer ; } static setDaemon ( daemon ) { this . daemon = daemon ; } static getDaemon ( ) { return this . daemon ; } static setIPCHub ( ipcHub ) { this . ipcHub = ipcHub ; } static getIPCHub ( ) { return this . ipcHub ; } }