import { TxRegistry } from './tx-registry'; import { TxJob } from './tx-job'; import { TxDistribute } from './tx-distribute'; import { TxJobPersistAdapter } from "./tx-job-persist-adapter"; import { TxRecordPersistAdapter } from "./tx-record-persist-adapter"; import { TxConnectorConnection } from './tx-connector-connection'; import { TxJobEventType } from './tx-Job-event-type'; /** * TxJobRegistry - is class store TxJob by their ids. */ export declare class TxJobRegistry extends TxRegistry { private static _instance; private _persistDriver; private _recorderDriver; private _isRecordMap; private _jobComponents; private _serviceName; private _routeConnection; private _distributer; private _eventemitter; private constructor(); static readonly instance: TxJobRegistry; create(name?: string): TxJob; add(uuid: string, job: TxJob): TxJob; addComponent(job: string, mountpoint: string | Symbol): void; once(event: string, cb: (data: TxJobEventType) => void): void; emit(event: string, data: TxJobEventType): void; getJobs(): Map>; getComponents(job: string): Set; getPersistDriver(): TxJobPersistAdapter; setPersistDriver(_driver: TxJobPersistAdapter): void; persist(job: TxJob): Promise; rebuild(uuid: string): Promise; replace(oldUuid: string, newUuid: string, job: TxJob): void; getRecorderDriver(): TxRecordPersistAdapter; setRecorderDriver(_recordDriver: TxRecordPersistAdapter): void; private readonly isRecordMap; setRecordFlag(name: string, flag: boolean): void; getRecordFlag(name: string): boolean; setServiceName(name: string): void; getServiceName(): string; setRouteConnection(_service: string, _path: string): void; getRouteConnection(): TxConnectorConnection; setDistribute(_distributer?: TxDistribute): void; getDistribute(): TxDistribute; }