UA Server SDK C++ Bundle  1.3.2.200
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
ServerConfigXml Class Reference

ServerConfigXml Derived from ServerConfig. More...

#include <serverconfigxml.h>

Inherits ServerConfigData.

Inherited by ServerConfigBasicXml.

Public Member Functions

 ServerConfigXml (const UaString &sXmlFileName, const UaString &sApplicationPath)
 construction
virtual ~ServerConfigXml ()
 destruction
UaStatus loadConfiguration ()
 Load the configuration from the config file and generate node managers.
UaStatus saveConfiguration ()
 Save the configuration to the config file.
- Public Member Functions inherited from ServerConfigData
 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 startUp (ServerManager *pServerManager)=0
 Start up OPC ServerConfig.
virtual UaStatus shutDown ()=0
 Shut down OPC ServerConfig.
virtual SessioncreateSession (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.

Additional Inherited Members

- Static Public Member Functions inherited from ServerConfigData
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 inherited from ServerConfigData
OpcUa_DateTime getBuildDate () const
 Get the build date from the static compiled in string.
- Protected Attributes inherited from ServerConfigData
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.

Detailed Description

ServerConfigXml Derived from ServerConfig.

It is not possible to make plane copies of this class.

Constructor & Destructor Documentation

ServerConfigXml::ServerConfigXml ( const UaString sXmlFileName,
const UaString sApplicationPath 
)

construction

Parameters
sXmlFileNamethe file name of the XML file.
sApplicationPaththe path to the application.

Member Function Documentation

UaStatus ServerConfigXml::loadConfiguration ( )
virtual

Load the configuration from the config file and generate node managers.

First method called after creation of ServerConfig. Must create all NodeManagers before method startUp is called.

Returns
Error code.

Implements ServerConfig.

UaStatus ServerConfigXml::saveConfiguration ( )
virtual

Save the configuration to the config file.

Returns
Error code.

Implements ServerConfig.


The documentation for this class was generated from the following files: