UA Server SDK C++ Bundle
1.3.2.200
|
ServerConfigData Derived from ServerConfig. More...
#include <serverconfigdata.h>
Inherits ServerConfig.
Inherited by ServerConfigSettings, and ServerConfigXml.
Public Member Functions | |
ServerConfigData (const UaString &sApplicationPath) | |
construction | |
virtual | ~ServerConfigData () |
destruction | |
void | clear () |
Clears all members and intializes them with default values. | |
virtual UaStatus | getEndpointConfiguration (UaString &sRejectedCertificateDirectory, UaEndpointArray &uaEndpointArray) |
Get Endpoint Configuration. | |
virtual UaStatus | getUserIdentityTokenConfig (OpcUa_Boolean &bEnableAnonymous, OpcUa_Boolean &bEnableUserPw) |
Get the enabled settings for the different user identity tokens supported by the server. | |
virtual UaStatus | getDiscoveryRegistrationConfig (OpcUa_UInt32 &nRegistrationInterval, UaStringArray &discoveryUrlArray) |
Get settings for registration with discovery service. | |
virtual UaStatus | getWindowsDiscoveryRegistrationSecuritySetup (OpcUa_Boolean &bAutomaticCertificateExchange, UaString &sDiscoveryServerCertificateFile, UaString &sDiscoveryServerStoreName, UaString &sDiscoveryServerCertificateName) |
Get settings for exchanging certificates with local discovery server on a windows computer for registration with local windows discovery server. | |
virtual UaStatus | getSerializerConfiguration (OpcUa_Int32 &iMaxAlloc, OpcUa_Int32 &iMaxStringLength, OpcUa_Int32 &iMaxByteStringLength, OpcUa_Int32 &iMaxArrayLength, OpcUa_Int32 &iMaxMessageSize) const |
Get Serializer Configuration. | |
virtual UaStatus | getStackThreadPoolSettings (OpcUa_Boolean &bEnabled, OpcUa_Int32 &iMinThreads, OpcUa_Int32 &iMaxThreads, OpcUa_Int32 &iMaxJobs, OpcUa_Boolean &bBlockOnAdd, OpcUa_UInt32 &nTimeout) const |
Returns the settings for the thread pool used in the OPC UA Stack. | |
virtual UaStatus | getStackTraceSettings (OpcUa_Boolean &bTraceEnabled, OpcUa_UInt32 &uTraceLevel) const |
Get UA Stack trace settings. | |
virtual UaStatus | getServerTraceSettings (OpcUa_Boolean &bTraceEnabled, OpcUa_UInt32 &uTraceLevel, OpcUa_UInt32 &uMaxTraceEntries, OpcUa_UInt32 &uMaxBackupFiles, UaString &sTraceFile) const |
Get UA Server SDK trace settings. | |
virtual OpcUa_Int32 | getMaxRequestAge () const |
Returns the maximum age of a request the server allows. | |
virtual UaStatus | getSessionSettings (OpcUa_Int32 &iMaxSessionCount, OpcUa_Int32 &iMinSessionTimeout, OpcUa_Int32 &iMaxSessionTimeout) const |
Get the setting parameters for session creation. | |
virtual UaStatus | getServerSettings (OpcUa_Double &minSupportedSampleRate, UaStringArray &localeIdArray, UaStringArray &serverProfileArray, UaByteStringArray &softwareCertificateArray) const |
Get the general setting parameters for the server. | |
virtual OpcUa_Int32 | getMaxBrowseContinuationPoints () const |
Returns the maximum number of Browse Continuation Points managed by the server. | |
virtual OpcUa_Int32 | getMaxHistoryContinuationPoints () const |
Returns the maximum number of History Continuation Points managed by the server. | |
virtual UaStatus | getSubscriptionSettings (OpcUa_UInt32 &iMinPublishingInterval, OpcUa_UInt32 &iMaxPublishingInterval, OpcUa_UInt32 &iMinKeepAliveInterval, OpcUa_UInt32 &iMinSubscriptionLifetime, OpcUa_UInt32 &iMaxSubscriptionLifetime, OpcUa_UInt32 &iMaxRetransmitionQueueSize, OpcUa_UInt32 &iMaxNotificationsPerPublish) const |
Get the setting parameters for a subscription. | |
virtual UaStatus | getMonitoredItemSettings (OpcUa_UInt32 &iMaxDataQueueSize, OpcUa_UInt32 &iMaxEventQueueSize) const |
Get the setting parameters for a MonitoreItem. | |
virtual UaStatus | getSubscriptionMaxCountSettings (OpcUa_UInt32 &iMaxSubscriptionCount, OpcUa_UInt32 &iMaxMonitoredItemCount, OpcUa_UInt32 &iMaxMonitoredItemPerSubscriptionCount) const |
Get the max object count parameters for Subscriptions. | |
virtual UaStatus | getAvailableSamplingRates (UaUInt32Array &availableSamplingRates) const |
Returns the sampling rates provided by the OPC server. | |
virtual OpcUa_StatusCode | getBuildInfo (UaString &ApplicationUri, UaString &ManufacturerName, UaString &ApplicationName, UaString &sSoftwareVersion, UaString &sBuildNumber, OpcUa_DateTime &BuildDate) const |
Returns the BuildInfo for the server. | |
virtual OpcUa_StatusCode | getServerInstanceInfo (UaString &ServerUri, UaLocalizedTextArray &ServerName) const |
Returns the server instance information for the OPC server. | |
virtual UaStatus | getThreadPoolSettings (OpcUa_UInt32 &minSizeTransactionManager, OpcUa_UInt32 &maxSizeTransactionManager, OpcUa_UInt32 &minSizeSubscriptionManager, OpcUa_UInt32 &maxSizeSubscriptionManager) const |
Returns the settings for the thread pools used in the OPC server. | |
virtual OpcUa_Boolean | isAuditActivated () |
Flag indicating if audit events are activated. | |
virtual UaStatus | getRedundancySettings (OpcUa_RedundancySupport &redundancySupport, UaStringArray &serverUriArray) |
Provides the redundancy settings for the server. | |
virtual UaStatus | getAdditionalServerEntries (UaApplicationDescriptions &serverDescriptions) |
Provides capability to configure additional servers to be returned in FindServers. | |
Public Member Functions inherited from ServerConfig | |
ServerConfig () | |
construction. | |
virtual | ~ServerConfig () |
destruction | |
virtual UaStatus | loadConfiguration ()=0 |
Load the configuration from the config file. | |
virtual UaStatus | startUp (ServerManager *pServerManager)=0 |
Start up OPC ServerConfig. | |
virtual UaStatus | shutDown ()=0 |
Shut down OPC ServerConfig. | |
virtual UaStatus | saveConfiguration ()=0 |
Save the configuration to the config file. | |
virtual Session * | createSession (OpcUa_Int32 sessionID, const UaNodeId &authenticationToken)=0 |
Creates a session object for the OPC server. | |
virtual UaStatus | logonSessionUser (Session *pSession, UaUserIdentityToken *pUserIdentityToken)=0 |
Validates the user identity token and sets the user for a session. |
Static Public Member Functions | |
static void | replaceNodeName (UaString &sString, const UaString &sNodeName) |
Replace placeholder [NodeName] with real node name. | |
static void | replaceServerName (UaString &sString, const UaString &sServerName) |
Replace placeholder [ServerName] with real server name. | |
static void | replaceApplicationPath (UaString &sString, const UaString &sApplicationPath) |
Replace placeholder [ApplicationPath] with real application path. |
Protected Member Functions | |
OpcUa_DateTime | getBuildDate () const |
Get the build date from the static compiled in string. |
Protected Attributes | |
OpcUa_Int32 | m_maxRequestAge |
Maximum age of a request the server allows. | |
OpcUa_Int32 | m_maxSessionCount |
Maximum number of sessions the server allows to create. | |
OpcUa_Int32 | m_minSessionTimeout |
Minimum timeout in ms for a sessions the server allows to set. | |
OpcUa_Int32 | m_maxSessionTimeout |
Maximum timeout in ms for a sessions the server allows to set. | |
OpcUa_Int32 | m_maxBrowseContinuationPoints |
Maximum number of Browse Continuation Points managed by the server. | |
OpcUa_Int32 | m_maxHistoryContinuationPoints |
Maximum number of History Continuation Points managed by the server. | |
OpcUa_UInt32 | m_minPublishingInterval |
Minimum publishing interval in milliseconds the server allows. | |
OpcUa_UInt32 | m_maxPublishingInterval |
Maximum publishing interval in milliseconds the server allows. | |
OpcUa_UInt32 | m_minKeepAliveInterval |
Minimum KeepAlive interval in milliseconds the server allows. | |
OpcUa_UInt32 | m_minSubscriptionLifetime |
Minimum Subscription lifetime in milliseconds the server allows. | |
OpcUa_UInt32 | m_maxSubscriptionLifetime |
Maximum Subscription lifetime in milliseconds the server allows. | |
OpcUa_UInt32 | m_maxRetransmitionQueueSize |
Maximum number of messages in the republish queue the server allows per Subscription. | |
OpcUa_UInt32 | m_maxNotificationsPerPublish |
Maximum number of notifications per Publish the server allows. | |
UaUInt32Array | m_availableSamplingRates |
Array of sampling rates provided by the OPC server. | |
UaString | m_sApplicationUri |
BuildInfo structure. | |
UaString | m_sServerUri |
Server Description. | |
OpcUa_Boolean | m_bStackThreadPoolEnabled |
UA Stack Thread pool settings. | |
OpcUa_UInt32 | m_minSizeTransactionManager |
SDK Thread pool settings. | |
UaString | m_sRejectedCertificateDirectory |
Directory to store rejected certificates in. | |
UaEndpointArray | m_uaEndpointArray |
Array of UA endpoint descriptions. | |
OpcUa_UInt32 | m_nRegistrationInterval |
Discovery server registration settings. | |
OpcUa_Int32 | m_iMaxAlloc |
These are the Security constraints for the serializer. | |
OpcUa_Boolean | m_bTraceEnabled |
UA Stack trace settings. | |
OpcUa_Boolean | m_bSdkTraceEnabled |
UA Server SDK trace settings. |
ServerConfigData Derived from ServerConfig.
It is not possible to make plane copies of this class.
ServerConfigData::ServerConfigData | ( | const UaString & | sApplicationPath | ) |
construction
sApplicationPath | the path to the application. |
|
virtual |
Provides capability to configure additional servers to be returned in FindServers.
Every server must implement FindServers and must return its own application description. This can also be used to run the server on the default port 4840 if only one server is installed on the system. This configuration option allows to run this server on port 4840 but to return also additional servers for a fixed configuration e.g. two servers from the same vendor on one network node.
serverDescriptions | List of application descriptions containing the information for the additional servers to return. |
Reimplemented from ServerConfig.
|
virtual |
Returns the sampling rates provided by the OPC server.
availableSamplingRates | Description |
Implements ServerConfig.
|
protected |
Get the build date from the static compiled in string.
|
virtual |
Returns the BuildInfo for the server.
ApplicationUri | the URI of the actual application. |
ManufacturerName | the name of the manufacturer. |
ApplicationName | the name of this application. |
sSoftwareVersion | the software version. |
sBuildNumber | the build number. |
BuildDate | when was the server build? |
Implements ServerConfig.
|
virtual |
Get settings for registration with discovery service.
nRegistrationInterval | Interval in milliseconds used to register with the discovery servers. |
discoveryUrlArray | Array of discovery server URLs to register with. |
Implements ServerConfig.
|
virtual |
Get Endpoint Configuration.
sRejectedCertificateDirectory | The directory to store rejected client certificates. |
uaEndpointArray | Array of configured endpoints for the server. |
Implements ServerConfig.
|
virtual |
Returns the maximum number of Browse Continuation Points managed by the server.
Implements ServerConfig.
|
virtual |
Returns the maximum number of History Continuation Points managed by the server.
Implements ServerConfig.
|
virtual |
Returns the maximum age of a request the server allows.
Implements ServerConfig.
|
virtual |
Get the setting parameters for a MonitoreItem.
iMaxDataQueueSize | Maximum queue size for a data monitored item |
iMaxEventQueueSize | Maximum queue size for an event monitored item |
Implements ServerConfig.
|
virtual |
Provides the redundancy settings for the server.
There are three main options available, None, NonTransparent (with cold, warm and hot) and Transparent redundancy. This configuration covers the options None and NonTransparent. The option Transparent requires an additional SDK module. This redundancy module is also providing the required settings and creates the corresponding diagnostic and capability object.
redundancySupport | Redundancy support options
|
serverUriArray | List of server URIs for the servers in the NonTransparent redundant set |
Reimplemented from ServerConfig.
|
virtual |
Get Serializer Configuration.
iMaxAlloc | The largest size for a memory block the serializer can do when deserializing a message |
iMaxStringLength | The largest string accepted by the serializer |
iMaxByteStringLength | The largest byte string accepted by the serializer |
iMaxArrayLength | Maximum number of elements in an array accepted by the serializer |
iMaxMessageSize | The maximum number of bytes per message in total |
Implements ServerConfig.
|
virtual |
Returns the server instance information for the OPC server.
ServerUri | the actual server URI. |
ServerName | the server name. |
Implements ServerConfig.
|
virtual |
Get the general setting parameters for the server.
minSupportedSampleRate | Minimum supported sample rate by the server provided as capability information to the client |
localeIdArray | Array of LocaleIds that are known to be supported by the server. |
serverProfileArray | Array of conformance profile URIs indicating the features supported by the server. |
softwareCertificateArray | Array of software certificates containing all certificates supported by the server. |
Implements ServerConfig.
|
virtual |
Get UA Server SDK trace settings.
bTraceEnabled | Globally enable/disable trace output from the SDK |
uTraceLevel | Configure the level of messages traced |
uMaxTraceEntries | Maximum number of trace entries in one trace file |
uMaxBackupFiles | Maximum number of backup files |
sTraceFile | Name and path of the trace file |
Implements ServerConfig.
|
virtual |
Get the setting parameters for session creation.
iMaxSessionCount | Maximum number of sessions the server allows to create |
iMinSessionTimeout | Minimum timeout in ms for a sessions the server allows to set |
iMaxSessionTimeout | Maximum timeout in ms for a sessions the server allows to set |
Implements ServerConfig.
|
virtual |
Returns the settings for the thread pool used in the OPC UA Stack.
bEnabled | Controls whether the secure listener uses a thread pool to dispatch received requests |
iMinThreads | The minimum number of threads in the thread pool |
iMaxThreads | The maximum number of threads in the thread pool |
iMaxJobs | The length of the queue with jobs waiting for a free thread |
bBlockOnAdd | If MaxJobs is reached the add operation can block or return an error |
nTimeout | If the add operation blocks on a full job queue, this value sets the max waiting time |
Implements ServerConfig.
|
virtual |
Get UA Stack trace settings.
bTraceEnabled | Globally enable/disable trace output from the stack (exclude platformlayer) |
uTraceLevel | Configure the level of messages traced |
Implements ServerConfig.
|
virtual |
Get the max object count parameters for Subscriptions.
[out] | iMaxSubscriptionCount | Maximum number of subscriptions the server allows to create. Default value 0 is unlimited |
[out] | iMaxMonitoredItemCount | Maximum number of monitored items the server allows to create. Default value 0 is unlimited |
[out] | iMaxMonitoredItemPerSubscriptionCount | Maximum number of monitored items per subscriptions the server allows to create. Default value 0 is unlimited |
Reimplemented from ServerConfig.
|
virtual |
Get the setting parameters for a subscription.
iMinPublishingInterval | Minimum publishing interval in milliseconds the server allows |
iMaxPublishingInterval | Maximum publishing interval in milliseconds the server allows |
iMinKeepAliveInterval | Minimum KeepAlive interval in milliseconds the server allows |
iMinSubscriptionLifetime | Minimum Subscription lifetime in milliseconds the server allows |
iMaxSubscriptionLifetime | Maximum Subscription lifetime in milliseconds the server allows |
iMaxRetransmitionQueueSize | Maximum number of messages in the republish queue the server allows per Subscription |
iMaxNotificationsPerPublish | Maximum number of notifications per Publish the server allows |
Implements ServerConfig.
|
virtual |
Returns the settings for the thread pools used in the OPC server.
minSizeTransactionManager | Returns the number of threads that are created when the |
maxSizeTransactionManager | Returns the maximum number of threads allowed for the |
minSizeSubscriptionManager | Returns the number of threads that are created when the |
maxSizeSubscriptionManager | Returns the maximum number of threads allowed. |
Implements ServerConfig.
|
virtual |
Get the enabled settings for the different user identity tokens supported by the server.
bEnableAnonymous | Indicates if Anonymous login is allowed. |
bEnableUserPw | Indicates if login with user and password is activated. |
Implements ServerConfig.
|
virtual |
Get settings for exchanging certificates with local discovery server on a windows computer for registration with local windows discovery server.
[out] | bAutomaticCertificateExchange | Flag indicating if the certificates should be exchanged |
[out] | sDiscoveryServerCertificateFile | File name and path of the discovery server certificate to be stored in the sever trust list |
[out] | sDiscoveryServerStoreName | Store name used for the local discovery server in the windows certificate store |
[out] | sDiscoveryServerCertificateName | Certificate name of the local discovery server in the windows certificate store |
Reimplemented from ServerConfig.
|
virtual |
Flag indicating if audit events are activated.
Reimplemented from ServerConfig.
|
static |
Replace placeholder [ApplicationPath] with real application path.
In the configuration files only forward slashes are used to be portable. This code converts this to backslashes on Windows.
sString | a string used for the name. |
sApplicationPath | the path to the application. |
Replace placeholder [NodeName] with real node name.
sString | a string used for the name. |
sNodeName | the node name. |
|
static |
Replace placeholder [ServerName] with real server name.
Replace placeholder [ServerName] with real node name.
sString | a string used for the name. |
sServerName | the server name. |
|
protected |
UA Server SDK trace settings.
|
protected |
UA Stack trace settings.
|
protected |
These are the Security constraints for the serializer.
Set this values carefully.
|
protected |
Discovery server registration settings.