import Context from '../context/Context'; import ContextManager from '../context/ContextManager'; import AbstractContext from '../context/AbstractContext'; import DefaultContextEventListener from '../context/DefaultContextEventListener'; import Runnable from '../util/java/Runnable'; import AbstractAggreGateDeviceController from './AbstractAggreGateDeviceController'; import Event from '../data/Event'; import FunctionDefinition from '../context/FunctionDefinition'; import TableFormat from '../datatable/TableFormat'; import CallerController from '../context/CallerController'; import DataTable from '../datatable/DataTable'; import VariableDefinition from '../context/VariableDefinition'; import EventData from '../context/EventData'; import ActionDefinition from '../action/ActionDefinition'; import EventDefinition from '../context/EventDefinition'; import ContextStatus from '../context/ContextStatus'; import RequestController from '../context/RequestController'; import FireEventRequestController from '../event/FireEventRequestController'; import Permissions from '../security/Permissions'; import AggreGateDevice from './AggreGateDevice'; export default class ProxyContext, M extends ContextManager> extends AbstractContext { private static readonly DEFERRED_TASKS; private static readonly METADATA_READ_TIMEOUT; private static readonly LISTENER_OPERATIONS_TIMEOUT; static readonly DURABLE_OPERATIONS_TIMEOUT = 600000; static readonly F_LOCAL_REINITIALIZE = "localReinitialize"; private readonly controller; private notManageRemoteListeners; private localInitComplete; private initializingInfo; private initializedInfo; private initializingChildren; private initializedChildren; private initializingVariables; private initializedVariables; private initializingFunctions; private initializedFunctions; private initializingEvents; private initializedEvents; private initializingContext; private initializedContext; private initializingActions; private initializedActions; private initializingStatus; private initializedStatus; private initializingVisibleChildren; private visibleChildren; private localRoot; private peerRoot; private peerPrimaryRoot; private remoteRoot; private remotePath; private mapped; private variableCache; private loadingContext; private loadingChildren; private static initProxyContext; private static AUTO_LISTENED_EVENTS; static staticInitializerProxyContext(): void; constructor(name: string, controller: AbstractAggreGateDeviceController); init(): Promise>; setupMyself(): void; private addListenersOnInfo; private addListenersOnActions; private addListenersOnEvents; private addListenersOnFunctions; private addListenersOnVariables; private addListenersOnChildren; protected addLocalFunctionDefinitions(): void; private isDigitCode; protected decodeFormat(source: string, caller: CallerController | null): TableFormat | null; protected clear(): void; initInfo(): Promise; initChildren(): Promise; private initVariables; private initFunctions; private initEvents; private initActions; initVisibleChildren(): Promise; private initStatus; private initInfoImpl; protected convertRemoteDescription(remoteDescription: string): string; private initChildrenImpl; private initVisibleChildrenImpl; protected createChildContextProxy(name: string): ProxyContext; private initVariablesImpl; private loadFormatToCacheIfNeeded; private initFunctionsImpl; private initEventsImpl; private initActionsImpl; private initStatusImpl; private checkInfo; getDescription(): string | null; getType(): string | null; getLocalRoot(withParent: boolean): string | null; getRemoteRoot(): string | null; getPeerRoot(): string | null; isMapped(): boolean; get(contextPath: string, caller?: CallerController): Promise | null>; getIconId(): string | null; getChild(name: string, caller?: CallerController): Promise; getVariableDefinition(name: string, caller?: CallerController): VariableDefinition | null; getFunctionDefinition(name: string, caller?: CallerController): FunctionDefinition | null; getEventData(name: string): EventData; getActionDefinition(name: string, caller?: CallerController): ActionDefinition | null; getVariableDefinitions(includeHidden?: boolean, caller?: CallerController): Array; getFunctionDefinitions(includeHidden?: boolean, caller?: CallerController): Array; getEventDefinitions(includeHidden?: boolean, caller?: CallerController): Array; getActionDefinitions(includeHidden?: boolean, caller?: CallerController): Array; getStatus(): Promise; initVariablesLoggingErrors(): Promise; initFunctionsLoggingErrors(): Promise; initEventsLoggingErrors(): Promise; initActionsLoggingErrors(): Promise; initStatusLoggingErrors(): Promise; private sendGetVariable; getRemoteVariable(format: TableFormat, name: string, timeout: number): Promise; getController(): AbstractAggreGateDeviceController; protected setupVariables(): void; protected getVariableImpl(def: VariableDefinition, caller?: CallerController, request?: RequestController): Promise; private getRemoteVariableByDef; protected setVariableImpl(def: VariableDefinition, value: DataTable, caller?: CallerController, request?: RequestController): Promise; protected setupFunctions(): void; protected callFunctionImpl(def: FunctionDefinition, parameters: DataTable, caller?: CallerController, request?: RequestController): Promise; protected callRemoteFunction(name: string, outputFormat: TableFormat | null, parameters: DataTable, queueName: string | null, isReplyRequired: boolean): Promise; addEventListener(name: string, listener: DefaultContextEventListener, weak?: boolean): boolean; addEventListenerToProxy(name: string, contextEventListener: DefaultContextEventListener, weak: boolean, sendRemoteCommand: boolean): boolean; removeEventListener(name: string, listener: DefaultContextEventListener): boolean; removeEventListenerToProxy(name: string, listener: DefaultContextEventListener, sendRemoteCommand: boolean): boolean; private addRemoteListener; getChildren(caller?: CallerController): Promise>>; getVisibleChildren(caller?: CallerController): Promise>>; getVisibleChildrenPaths(): Set; addVisibleChild(localVisiblePath: string): void; removeVisibleChild(localVisiblePath: string): void; hasVisibleChild(path: string): boolean; private restoreEventListeners; reinitialize(): void; protected _fireEvent(ed: EventDefinition, data: DataTable, level: number, id: number | null, creationtime: Date | null, listener: number | null, caller?: CallerController, request?: FireEventRequestController, permissions?: Permissions): Promise; private cacheVariableValue; protected getPathDescription(): string; isProxy(): boolean; isDistributed(): boolean; getRemotePath(): string | null; getLocalPrimaryRoot(): string | null; getPeerPath(): string; getLocalPath(remoteFullPath: string, visible: boolean): string | null; private getLocalPrimaryPath; static addDeferredTask(path: string, task: Runnable): void; private executeDeferredTasks; protected getLocalVisiblePath(peerVisiblePath: string): string; isInitializedStatus(): boolean; isInitializedInfo(): boolean; isInitializedChildren(): boolean; isInitializedVariables(): boolean; isInitializedFunctions(): boolean; isInitializedEvents(): boolean; isNotManageRemoteListeners(): boolean; setNotManageRemoteListeners(notManageRemoteListeners: boolean): void; }