Options
All
  • Public
  • Public/Protected
  • All
Menu

  subscribe now with sterfive to access the online-user manual

Hierarchy

  • EventEmitter
    • ServerEngine

Index

Constructors

constructor

Properties

_internalState

_internalState: "initialized" | "creating" | "initializing" | "shutdown" | "disposed"

addressSpace

addressSpace: AddressSpace

Optional clientDescription

clientDescription: ApplicationDescription

historyServerCapabilities

historyServerCapabilities: HistoryServerCapabilities

isAuditing

isAuditing: boolean

serverCapabilities

serverCapabilities: ServerCapabilities

serverDiagnosticsEnabled

serverDiagnosticsEnabled: boolean

serverDiagnosticsSummary

serverDiagnosticsSummary: ServerDiagnosticsSummaryDataType

Readonly Static captureRejectionSymbol

captureRejectionSymbol: typeof captureRejectionSymbol

Static captureRejections

captureRejections: boolean

Sets or gets the default captureRejection value for all emitters.

Static defaultMaxListeners

defaultMaxListeners: number

Readonly Static errorMonitor

errorMonitor: typeof errorMonitor

This symbol shall be used to install a listener for only monitoring 'error' events. Listeners installed using this symbol are called before the regular 'error' listeners are called.

Installing a listener using this symbol does not change the behavior once an 'error' event is emitted, therefore the process will still crash if no regular 'error' listener is installed.

Readonly Static registry

registry: ObjectRegistry

Accessors

buildInfo

  • Returns BuildInfo

cumulatedSessionCount

  • get cumulatedSessionCount(): number
  • the cumulated number of sessions that have been opened since this object exists

    Returns number

cumulatedSubscriptionCount

  • get cumulatedSubscriptionCount(): number
  • the cumulated number of subscriptions that have been created since this object exists

    Returns number

currentSessionCount

  • get currentSessionCount(): number
  • the number of active sessions

    Returns number

currentSubscriptionCount

  • get currentSubscriptionCount(): number
  • the number of active subscriptions.

    Returns number

currentTime

  • get currentTime(): Date
  • Returns Date

publishingIntervalCount

  • get publishingIntervalCount(): number
  • Returns number

rejectedRequestsCount

  • get rejectedRequestsCount(): number
  • Returns number

rejectedSessionCount

  • get rejectedSessionCount(): number
  • Returns number

serverName

  • get serverName(): string
  • the name of the server

    Returns string

serverNameUrn

  • get serverNameUrn(): string
  • the server urn

    Returns string

serverNamespaceUrn

  • get serverNamespaceUrn(): string
  • the urn of the server namespace

    Returns string

serverStatus

sessionAbortCount

  • get sessionAbortCount(): number
  • Returns number

sessionTimeoutCount

  • get sessionTimeoutCount(): number
  • Returns number

startTime

  • get startTime(): Date
  • Returns Date

Methods

_createSubscriptionOnSession

addListener

  • addListener(event: string | symbol, listener: (...args: any[]) => void): ServerEngine
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ServerEngine

browse

browsePath

browseSingleNode

  • method

    browseSingleNode

    Parameters

    Returns BrowseResult

    the browse result

browseWithAutomaticExpansion

closeSession

  • closeSession(authenticationToken: NodeId, deleteSubscriptions: boolean, reason: ClosingReason): void
  • method

    closeSession

    Parameters

    • authenticationToken: NodeId
    • deleteSubscriptions: boolean

      : true if sessions's subscription shall be deleted

    • reason: ClosingReason

    Returns void

createSession

  • create a new server session object.

    method

    createSession

    Parameters

    Returns ServerSession

deleteOrphanSubscription

  • Parameters

    Returns StatusCode

dispose

  • dispose(): void
  • Returns void

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

findOrphanSubscription

  • findOrphanSubscription(subscriptionId: number): Subscription
  • Parameters

    • subscriptionId: number

    Returns Subscription

findSubscription

  • Parameters

    • subscriptionId: number

    Returns Subscription

getMaxListeners

  • getMaxListeners(): number
  • Returns number

getOldestUnactivatedSession

  • Returns ServerSession

getServerDiagnosticsEnabledFlag

  • getServerDiagnosticsEnabledFlag(): boolean
  • Returns boolean

getSession

  • retrieve a session by its authenticationToken.

    method

    getSession

    Parameters

    • authenticationToken: NodeId
    • Optional activeOnly: boolean

    Returns ServerSession

historyRead

historyReadSingleNode

incrementRejectedRequestsCount

  • incrementRejectedRequestsCount(): void
  • Returns void

incrementRejectedSessionCount

  • incrementRejectedSessionCount(): void
  • increment rejected session count (also increment rejected requests count)

    Returns void

incrementSecurityRejectedRequestsCount

  • incrementSecurityRejectedRequestsCount(): void
  • Returns void

incrementSecurityRejectedSessionCount

  • incrementSecurityRejectedSessionCount(): void
  • increment rejected session count (also increment rejected requests count)

    Returns void

incrementSessionAbortCount

  • incrementSessionAbortCount(): void
  • Returns void

incrementSessionTimeoutCount

  • incrementSessionTimeoutCount(): void
  • Returns void

initialize

  • initialize(options: any, callback: any): void
  • method

    initialize

    async

    Parameters

    • options: any
    • callback: any

    Returns void

isStarted

  • isStarted(): boolean
  • Returns boolean

listenerCount

  • listenerCount(event: string | symbol): number
  • Parameters

    • event: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • off(event: string | symbol, listener: (...args: any[]) => void): ServerEngine
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ServerEngine

on

  • on(event: string | symbol, listener: (...args: any[]) => void): ServerEngine
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ServerEngine

once

  • once(event: string | symbol, listener: (...args: any[]) => void): ServerEngine
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ServerEngine

prependListener

  • prependListener(event: string | symbol, listener: (...args: any[]) => void): ServerEngine
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ServerEngine

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): ServerEngine
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ServerEngine

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

read

  • Maximum age of the value to be read in milliseconds. The age of the value is based on the difference between the ServerTimestamp and the time when the Server starts processing the request. For example if the Client specifies a maxAge of 500 milliseconds and it takes 100 milliseconds until the Server starts processing the request, the age of the returned value could be 600 milliseconds prior to the time it was requested. If the Server has one or more values of an Attribute that are within the maximum age, it can return any one of the values or it can read a new value from the data source. The number of values of an Attribute that a Server has depends on the number of MonitoredItems that are defined for the Attribute. In any case, the Client can make no assumption about which copy of the data will be returned. If the Server does not have a value that is within the maximum age, it shall attempt to read a new value from the data source. If the Server cannot meet the requested maxAge, it returns its 'best effort' value rather than rejecting the request. This may occur when the time it takes the Server to process and return the new data value after it has been accessed is greater than the specified maximum age. If maxAge is set to 0, the Server shall attempt to read a new value from the data source. If maxAge is set to the max Int32 value or greater, the Server shall attempt to get a cached value. Negative values are invalid for maxAge.

    Parameters

    Returns DataValue[]

    an array of DataValue

readSingleNode

refreshValues

  • performs a call to asyncRefresh on all variable nodes that provide an async refresh func.

    method

    refreshValues

    async

    Parameters

    • nodesToRefresh: ReadValueId[] | HistoryReadValueId[]

      an array containing the node to consider Each element of the array shall be of the form { nodeId: , attributeIds: }.

    • maxAge: number
    • callback: (err: Error, dataValues?: DataValue[]) => void
        • (err: Error, dataValues?: DataValue[]): void
        • Parameters

          • err: Error
          • Optional dataValues: DataValue[]

          Returns void

    Returns void

registerShutdownTask

  • registerShutdownTask(task: any): void
  • register a function that will be called when the server will perform its shut down.

    method

    registerShutdownTask

    Parameters

    • task: any

    Returns void

removeAllListeners

  • Parameters

    • Optional event: string | symbol

    Returns ServerEngine

removeListener

  • removeListener(event: string | symbol, listener: (...args: any[]) => void): ServerEngine
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ServerEngine

secondsTillShutdown

  • secondsTillShutdown(): number
  • method

    secondsTillShutdown

    Returns number

    the approximate number of seconds until the server will be shut down. The value is only relevant once the state changes into SHUTDOWN.

setMaxListeners

  • Parameters

    • n: number

    Returns ServerEngine

setServerState

  • Parameters

    Returns void

setShutdownReason

  • Parameters

    Returns void

setShutdownTime

  • setShutdownTime(date: Date): void
  • Parameters

    • date: Date

    Returns void

shutdown

  • shutdown(): void
  • method

    shutdown

    Returns void

transferSubscription

  • method

    transferSubscription

    Parameters

    • session: ServerSession

      the new session that will own the subscription

    • subscriptionId: number

      the subscription Id to transfer

    • sendInitialValues: boolean

      true if initial values will be resent.

    Returns Promise<TransferResult>

write

  • write a collection of nodes

    method

    write

    async

    Parameters

    Returns void

writeSingleNode

  • method

    writeSingleNode

    async

    Parameters

    Returns void

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • deprecated

    since v4.0.0

    Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

Static on

  • on(emitter: EventEmitter, event: string): AsyncIterableIterator<any>
  • Parameters

    • emitter: EventEmitter
    • event: string

    Returns AsyncIterableIterator<any>

Static once

  • once(emitter: NodeEventTarget, event: string | symbol): Promise<any[]>
  • once(emitter: DOMEventTarget, event: string): Promise<any[]>
  • Parameters

    • emitter: NodeEventTarget
    • event: string | symbol

    Returns Promise<any[]>

  • Parameters

    • emitter: DOMEventTarget
    • event: string

    Returns Promise<any[]>

Generated using TypeDoc