///
///
///
///
///
declare module "copyright" {
export class ServiceLogicCopyright {
static toString(): string;
}
}
declare module "sk/service/logic/system/IndexSpace" {
export class IndexSpace {
static namespaces(): string[];
}
}
declare module "sk/service/logic/system/logic/SystemInfoIntervalService" {
import { IContext } from 'cross/runtime/lang/IContext';
import { ResultObject } from 'cross/runtime/lang/ResultObject';
import { EnvironmentService } from 'cross/runtime/module/environment/EnvironmentService';
import { ThreadService } from 'cross/runtime/module/thread/ThreadService';
import { Service } from 'cross/runtime/module/Service';
import { IMessageContext } from 'cross/data/module/message/IMessageContext';
import { MessageRouterService } from 'foundation/service/common/router/message/MessageRouterService';
import { DataConnectionService } from 'foundation/service/common/database/DataConnectionService';
import { LogicContext } from 'foundation/service/common/logic/LogicContext';
import { OssConnectionService } from 'foundation/service/common/oss/OssConnectionService';
import { RouterService } from 'foundation/service/common/router/RouterService';
type ServerEnvironments = {
host: string;
port: string;
projectName: string;
moduleName: string;
space: string;
};
export class SystemInfoIntervalService extends Service {
serverId: string;
host: string;
port: string;
private _hasBeenSendStartDate;
errorLogs: any[];
startTime: number;
private _updateServerIntervalTime;
private _updateServerInfoIntervalTime;
private _updateServerProcessInfoIntervalTime;
private _updateServerMessageIntervalTime;
protected _threadService: ThreadService;
protected _environmentService: EnvironmentService;
protected _messageRouterService: MessageRouterService;
protected _ossConnectionService: OssConnectionService;
protected _dataConnectionService: DataConnectionService;
protected _routerService: RouterService;
constructor();
initializeConfig(jconfig: any): void;
initAsync(context?: IContext): Promise;
onActive(): void;
updateServerAsync(context: IMessageContext): Promise;
updateServerInfoAsync(context: LogicContext): Promise;
updateServerProcessInfoAsync(context: LogicContext): Promise;
updateServerMessageAsync(context: LogicContext): Promise;
getCpu(): number;
getRamRss(): number;
getEnvironments(): ServerEnvironments;
cpuIAverage(i: number): any;
private onLog;
private setServerAsync;
private setServerProcessInfoAsync;
private setServerInfoAsync;
getOssConnectionInfo(): any;
getDataConnectionInfo(): any;
}
}
declare module "sk/service/logic/system/LogicSystemInfoRouterUtil" {
export class LogicSystemInfoRouterUtil {
static register(app: any): void;
}
}