RegisterServerManager is responsible to Register an opcua server on a LDS or LDS-ME server
This class takes in charge :
the initial registration of a server
the regular registration renewal (every 8 minutes or so ...)
dealing with cases where LDS is not up and running when server starts.
( in this case the connection will be continuously attempted using the infinite
back-off strategy
the un-registration of the server ( during shutdown for instance)
Events:
Emitted when the server is trying to registered the LDS
but when the connection to the lds has failed
serverRegistrationPending is sent when the backoff signal of the
connection process is rained
schemaDiagnosticInfo:StructuredTypeSchema = buildStructuredType({name: "DiagnosticInfo",baseType: "BaseUAObject",fields: [{name: "namespaceUri",fieldType: "Int32",defaultValue: -1,documentation: "The symbolicId is defined within the context of a namespace."},{name: "symbolicId",fieldType: "Int32",defaultValue: -1,documentation: "The symbolicId shall be used to identify a vendor-specific error or condition"},{name: "locale",fieldType: "Int32",defaultValue: -1,documentation: "The locale part of the vendor-specific localized text describing the symbolic id."},{ name: "localizedText", fieldType: "Int32", defaultValue: -1 },{name: "additionalInfo",fieldType: "String",defaultValue: null,documentation: "Vendor-specific diagnostic information."},{name: "innerStatusCode",fieldType: "StatusCode",defaultValue: StatusCodes.Good,documentation: "The StatusCode from the inner operation."},{name: "innerDiagnosticInfo",fieldType: "DiagnosticInfo",defaultValue: null,documentation: "The diagnostic info associated with the inner StatusCode."}]})
serverCapabilities:string[] = ["NA", // No capability information is available. Cannot be used in combination with any other capability."DA", // Provides current data."HD", // Provides historical data."AC", // Provides alarms and conditions that may require operator interaction."HE", // Provides historical alarms and events."GDS", // Supports the Global Discovery Server information model."LDS", // Only supports the Discovery Services. Cannot be used in combination with any other capability."DI", // Supports the Device Integration (DI) information model (see DI)."ADI", // Supports the Analyser Device Integration (ADI) information model (see ADI)."FDI", // Supports the Field Device Integration (FDI) information model (see FDI)."FDIC", // Supports the Field Device Integration (FDI) Communication Server information model (see FDI)."PLC", // Supports the PLCopen information model (see PLCopen)."S95", // Supports the ISA95 information model (see ISA-95).// new in 1.04"RCP", // Supports the reverse connect capabilities defined in Part 6."PUB", // Supports the Publisher capabilities defined in Part 14."SUB", // Supports the Publisher capabilities defined in Part 14.]
makeRelativePath(str: string, addressSpace?: any): any
construct a RelativePath from a string containing the relative path description.
The string must comply to the OPCUA BNF for RelativePath ( see part 4 - Annexe A)
method
makeRelativePath
example:
var relativePath = makeRelativePath("/Server.ServerStatus.CurrentTime");
description:string = "Property not available, this condition is disabled."
name
name:string = "BadConditionDisabled"
value
value:number = 2157510656
BadConditionNotShelved
BadConditionNotShelved:object
description
description:string = "The condition is not currently shelved."
name
name:string = "BadConditionNotShelved"
value
value:number = 2161246208
BadConfigurationError
BadConfigurationError:object
description
description:string = "There is a problem with the configuration that affects the usefulness of the value."
name
name:string = "BadConfigurationError"
value
value:number = 2156462080
BadConnectionClosed
BadConnectionClosed:object
description
description:string = "The network connection has been closed."
name
name:string = "BadConnectionClosed"
value
value:number = 2158886912
BadConnectionRejected
BadConnectionRejected:object
description
description:string = "Could not establish a network connection to remote server."
name
name:string = "BadConnectionRejected"
value
value:number = 2158755840
BadContentFilterInvalid
BadContentFilterInvalid:object
description
description:string = "The content filter is not valid."
name
name:string = "BadContentFilterInvalid"
value
value:number = 2152202240
BadContinuationPointInvalid
BadContinuationPointInvalid:object
description
description:string = "The continuation point provide is longer valid."
name
name:string = "BadContinuationPointInvalid"
value
value:number = 2152333312
BadDataEncodingInvalid
BadDataEncodingInvalid:object
description
description:string = "The data encoding is invalid."
name
name:string = "BadDataEncodingInvalid"
value
value:number = 2151153664
BadDataEncodingUnsupported
BadDataEncodingUnsupported:object
description
description:string = "The server does not support the requested data encoding for the node."
name
name:string = "BadDataEncodingUnsupported"
value
value:number = 2151219200
BadDataLost
BadDataLost:object
description
description:string = "Data is missing due to collection started/stopped/lost."
name
name:string = "BadDataLost"
value
value:number = 2157772800
BadDataTypeIdUnknown
BadDataTypeIdUnknown:object
description
description:string = "The extension object cannot be (de)serialized because the data type id is not recognized."
name
name:string = "BadDataTypeIdUnknown"
value
value:number = 2148597760
BadDataUnavailable
BadDataUnavailable:object
description
description:string = "Expected data is unavailable for the requested time range due to an un-mounted volume, an off-line archive or tape, or similar reason for temporary unavailability."
name
name:string = "BadDataUnavailable"
value
value:number = 2157838336
BadDeadbandFilterInvalid
BadDeadbandFilterInvalid:object
description
description:string = "The deadband filter is not valid."
name
name:string = "BadDeadbandFilterInvalid"
value
value:number = 2156789760
BadDecodingError
BadDecodingError:object
description
description:string = "Decoding halted because of invalid data in the stream."
name
name:string = "BadDecodingError"
value
value:number = 2147942400
BadDependentValueChanged
BadDependentValueChanged:object
description
description:string = "A dependent value has been changed but the change has not been applied to the device. The quality of the dominant variable is Bad."
name
name:string = "BadDependentValueChanged"
value
value:number = 2162360320
BadDeviceFailure
BadDeviceFailure:object
description
description:string = "There has been a failure in the device/data source that generates the value that has affected the value."
name
name:string = "BadDeviceFailure"
value
value:number = 2156593152
BadDialogNotActive
BadDialogNotActive:object
description
description:string = "The dialog condition is not active."
name
name:string = "BadDialogNotActive"
value
value:number = 2160918528
BadDialogResponseInvalid
BadDialogResponseInvalid:object
description
description:string = "The response is not valid for the dialog."
name
name:string = "BadDialogResponseInvalid"
value
value:number = 2160984064
BadDisconnect
BadDisconnect:object
description
description:string = "The server has disconnected from the client."
name
name:string = "BadDisconnect"
value
value:number = 2158821376
BadDiscoveryUrlMissing
BadDiscoveryUrlMissing:object
description
description:string = "No DiscoveryUrl was specified."
name
name:string = "BadDiscoveryUrlMissing"
value
value:number = 2152792064
BadDominantValueChanged
BadDominantValueChanged:object
description
description:string = "The related EngineeringUnit has been changed but this change has not been applied to the device. The Variable Value is still dependent on the previous unit but its status is currently Bad."
name
name:string = "BadDominantValueChanged"
value
value:number = 2162229248
BadDuplicateReferenceNotAllowed
BadDuplicateReferenceNotAllowed:object
description
description:string = "The reference type between the nodes is already defined."
name
name:string = "BadDuplicateReferenceNotAllowed"
value
value:number = 2154168320
BadEncodingError
BadEncodingError:object
description
description:string = "Encoding halted because of invalid data in the objects being serialized."
name
name:string = "BadEncodingError"
value
value:number = 2147876864
BadEncodingLimitsExceeded
BadEncodingLimitsExceeded:object
description
description:string = "The message encoding/decoding limits imposed by the stack have been exceeded."
name
name:string = "BadEncodingLimitsExceeded"
value
value:number = 2148007936
BadEndOfStream
BadEndOfStream:object
description
description:string = "Cannot move beyond end of the stream."
name
name:string = "BadEndOfStream"
value
value:number = 2159017984
BadEntryExists
BadEntryExists:object
description
description:string = "The data or event was not successfully inserted because a matching entry exists."
name
name:string = "BadEntryExists"
value
value:number = 2157903872
BadEventFilterInvalid
BadEventFilterInvalid:object
description
description:string = "The event filter is not valid."
name
name:string = "BadEventFilterInvalid"
value
value:number = 2152136704
BadEventIdUnknown
BadEventIdUnknown:object
description
description:string = "The specified event id is not recognized."
name
name:string = "BadEventIdUnknown"
value
value:number = 2157576192
BadEventNotAcknowledgeable
BadEventNotAcknowledgeable:object
description
description:string = "The event cannot be acknowledged."
name
name:string = "BadEventNotAcknowledgeable"
value
value:number = 2159738880
BadExpectedStreamToBlock
BadExpectedStreamToBlock:object
description
description:string = "The stream did not return all data requested (possibly because it is a non-blocking stream)."
name
name:string = "BadExpectedStreamToBlock"
value
value:number = 2159280128
BadFilterElementInvalid
BadFilterElementInvalid:object
description
description:string = "The referenced element is not a valid element in the content filter."
name
name:string = "BadFilterElementInvalid"
value
value:number = 2160328704
BadFilterLiteralInvalid
BadFilterLiteralInvalid:object
description
description:string = "The referenced literal is not a valid value."
name
name:string = "BadFilterLiteralInvalid"
value
value:number = 2160394240
BadFilterNotAllowed
BadFilterNotAllowed:object
description
description:string = "A monitoring filter cannot be used in combination with the attribute specified."
name
name:string = "BadFilterNotAllowed"
value
value:number = 2152005632
BadFilterOperandCountMismatch
BadFilterOperandCountMismatch:object
description
description:string = "The number of operands provided for the filter operator was less then expected for the operand provided."
name
name:string = "BadFilterOperandCountMismatch"
value
value:number = 2160263168
BadFilterOperandInvalid
BadFilterOperandInvalid:object
description
description:string = "The operand used in a content filter is not valid."
name
name:string = "BadFilterOperandInvalid"
value
value:number = 2152267776
BadFilterOperatorInvalid
BadFilterOperatorInvalid:object
description
description:string = "An unrecognized operator was provided in a filter."
name
name:string = "BadFilterOperatorInvalid"
value
value:number = 2160132096
BadFilterOperatorUnsupported
BadFilterOperatorUnsupported:object
description
description:string = "A valid operator was provided, but the server does not provide support for this filter operator."
name
name:string = "BadFilterOperatorUnsupported"
value
value:number = 2160197632
BadHistoryOperationInvalid
BadHistoryOperationInvalid:object
description
description:string = "The history details parameter is not valid."
name
name:string = "BadHistoryOperationInvalid"
value
value:number = 2154889216
BadHistoryOperationUnsupported
BadHistoryOperationUnsupported:object
description
description:string = "The server does not support the requested operation."
name
name:string = "BadHistoryOperationUnsupported"
value
value:number = 2154954752
BadIdentityChangeNotSupported
BadIdentityChangeNotSupported:object
description
description:string = "The server does not support changing the user identity assigned to the session."
name
name:string = "BadIdentityChangeNotSupported"
value
value:number = 2160459776
BadIdentityTokenInvalid
BadIdentityTokenInvalid:object
description
description:string = "The user identity token is not valid."
name
name:string = "BadIdentityTokenInvalid"
value
value:number = 2149580800
BadIdentityTokenRejected
BadIdentityTokenRejected:object
description
description:string = "The user identity token is valid but the server has rejected it."
name
name:string = "BadIdentityTokenRejected"
value
value:number = 2149646336
BadIndexRangeInvalid
BadIndexRangeInvalid:object
description
description:string = "The syntax of the index range parameter is invalid."