C++ Based OPC UA Client/Server SDK  1.5.5.355
UaApplicationControlCallback Class Referenceabstract

Callback interface for providing application control funtions through methods. More...

#include <servermanagerhelper.h>

Inherited by UaServerApplication.

Public Member Functions

 UaApplicationControlCallback ()
 Construction.
 
virtual ~UaApplicationControlCallback ()
 Destruction.
 
virtual OpcUa_UInt32 getEndpointCount ()=0
 Returns the number of OPC UA endpoints in the server. More...
 
virtual UaEndpointgetEndpoint (OpcUa_UInt32 endpointIndex)=0
 Returns the endpoint at the sepcified index. More...
 
virtual UaStatus openEndpoint (OpcUa_UInt32 endpointIndex)=0
 Opens the endpoint sepcified by the index. More...
 
virtual UaStatus closeEndpoint (OpcUa_UInt32 endpointIndex)=0
 Closes the endpoint sepcified by the index. More...
 
virtual UaStatus requestServerShutDown (OpcUa_Int32 secondsTillShutdown, const UaLocalizedText &shutdownReason, OpcUa_Boolean restart)=0
 Requests the shutdown of the OPC UA Server application. More...
 
virtual void beforeEndpointOpen (UaEndpoint *pEndpoint, bool certificateAvailable)=0
 Information about an endpoint that will be opened by the server. More...
 

Detailed Description

Callback interface for providing application control funtions through methods.

This callback interface needs to be implemented if the application wants to allow control of application behaviour like server shutdown or close/reopen of endpoints to be controlled through methods in the server address space.

Member Function Documentation

virtual void UaApplicationControlCallback::beforeEndpointOpen ( UaEndpoint pEndpoint,
bool  certificateAvailable 
)
pure virtual

Information about an endpoint that will be opened by the server.

This callbacks allows certificate checks or creation.

Parameters
[in]pEndpointUaEndpoint that will be opened by the server
[in]certificateAvailableFlag indicating if a certificate is available

Implemented in UaServerApplication.

virtual UaStatus UaApplicationControlCallback::closeEndpoint ( OpcUa_UInt32  endpointIndex)
pure virtual

Closes the endpoint sepcified by the index.

Parameters
[in]endpointIndexIndex of the Endpoint to close

Implemented in UaServerApplication.

virtual UaEndpoint* UaApplicationControlCallback::getEndpoint ( OpcUa_UInt32  endpointIndex)
pure virtual

Returns the endpoint at the sepcified index.

Parameters
[in]endpointIndexIndex of the Endpoint to return

Implemented in UaServerApplication.

virtual OpcUa_UInt32 UaApplicationControlCallback::getEndpointCount ( )
pure virtual

Returns the number of OPC UA endpoints in the server.

Implemented in UaServerApplication.

virtual UaStatus UaApplicationControlCallback::openEndpoint ( OpcUa_UInt32  endpointIndex)
pure virtual

Opens the endpoint sepcified by the index.

Parameters
[in]endpointIndexIndex of the Endpoint to open

Implemented in UaServerApplication.

virtual UaStatus UaApplicationControlCallback::requestServerShutDown ( OpcUa_Int32  secondsTillShutdown,
const UaLocalizedText shutdownReason,
OpcUa_Boolean  restart 
)
pure virtual

Requests the shutdown of the OPC UA Server application.

Returns
Result of the request. If the result is Bad, the application will not shut down
Parameters
[in]secondsTillShutdownSeconds till shutdown of the server
[in]shutdownReasonReason for the shutdown
[in]restartA flag indicating if the Server should be restarted after shutdown

Implemented in UaServerApplication.


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