import { ProcessRepresentation } from '../domain'; /** * Class ScalableMaster * For kind of the process, that's field scale great than 1 */ export declare class ScalableMaster { started: boolean; private workers; private processRepresentation; private get workersSet(); constructor(processRepresentation: ProcessRepresentation); /** * Get all the workers * @return {Array} */ getWorkers(): any[]; /** * Start master * @return {Promise} */ start(): Promise; /** * Stop master, stop all workers * @return {Promise} */ stop(): Promise; /** * Reload all workers * @param targetName * @return {Promise} */ reload(targetName?: any): Promise; /** * Realod named workers * @param workers * @return {Promise} */ private reloadNamedWorkers; /** * Reload a worker * @param worker * @return {Promise} */ private reloadWorker; private sendShutdownToWorker; /** * Kill a worker by a SOP * @param worker * @return {Promise} */ killWorkerSop(worker: any): Promise; /** * Send message to all workers * @param action * @param data */ notify(action: any, data: any): void; /** * Fork a new worker, keep it live * @param {ProcessRepresentation} processRepresentation * @return {Promise} */ private forkWorker; /** * Listen the events of the cluster when the master start */ private listenEvents; /** * Handing the process message * @param message */ onProcessMessage(message: any): void; onClusterFork(worker: any): void; onWorkerDie(worker: any, code: any, signal: any): void; }