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

Static Readonly 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

browse

browsePath

browseSingleNode

browseWithAutomaticExpansion

closeSession

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

    closeSession

    Parameters

    • authenticationToken: NodeId
    • deleteSubscriptions: boolean

      : true if session'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

findOrphanSubscription

  • findOrphanSubscription(subscriptionId: number): Subscription
  • Parameters

    • subscriptionId: number

    Returns Subscription

findSubscription

  • Parameters

    • subscriptionId: number

    Returns Subscription

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

  • method

    initialize

    async

    Parameters

    Returns void

isStarted

  • isStarted(): boolean
  • Returns boolean

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: () => void): void
  • register a function that will be called when the server will perform its shut down.

    method

    registerShutdownTask

    Parameters

    • task: () => void
        • (): void
        • Returns void

    Returns void

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.

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

Generated using TypeDoc