|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UaServerListener
A listener interface for server "events". Note that the interface definition may change in future.
| Method Summary | |
|---|---|
boolean |
onAllowReadSecurityDiagnostics(ServiceContext serviceContext)
Define the user access level for reading the session security diagnostics from the server. |
NodeManager |
onCreateNewNodeManager(ServiceContext serviceContext,
String namespaceUri)
Called, when a client application is creating new nodes that do not have a respective NodeManager. |
void |
onRegisterServer(String discoveryServerUrl,
boolean isOnline)
Notification of a registration to the (Local) Discovery Server. |
boolean |
onRegisterServerError(String discoveryServerUrl,
boolean isOnline,
UaServerException e)
Notification of a registration error to the (Local) Discovery Server. |
void |
onShutdown(UaServer uaServer,
boolean restart)
Called when server is shut down. |
boolean |
onShutdownRequest(ServiceContext serviceContext,
int seconds,
org.opcfoundation.ua.builtintypes.LocalizedText reason,
boolean restart)
Called when client asks to begin shutdown process. |
| Method Detail |
|---|
boolean onAllowReadSecurityDiagnostics(ServiceContext serviceContext)
serviceContext - client calling context, including the session information, which defines
the userIdentity
NodeManager onCreateNewNodeManager(ServiceContext serviceContext,
String namespaceUri)
throws StatusException
If the method returns null, a new NodeManagerUaNode will be created.
serviceContext - client calling context, including the session information, which defines
the userIdentitynamespaceUri - the URI of the new namespace
StatusException
void onRegisterServer(String discoveryServerUrl,
boolean isOnline)
isOnline - whether the server was about to be registered online or offlinediscoveryServerUrl - the URL of the discovery server that was being connected to
boolean onRegisterServerError(String discoveryServerUrl,
boolean isOnline,
UaServerException e)
isOnline - whether the server was about to be registered online or offlinediscoveryServerUrl - the URL of the discovery server that was being connected toe - the error that was raised.
void onShutdown(UaServer uaServer,
boolean restart)
uaServer - the server that is shut downrestart - a flag indicating whether the server will be restarted after shutdown
boolean onShutdownRequest(ServiceContext serviceContext,
int seconds,
org.opcfoundation.ua.builtintypes.LocalizedText reason,
boolean restart)
throws StatusException
serviceContext - calling context, including the session information, which defines the
userIdentityseconds - the number of seconds until shutdownreason - reason for the shutdown requestrestart - a flag indicating whether the server will be restarted after shutdown
StatusException - StatusCodes.Bad_UserAccessDenied if the user is not authorized
to request the state change
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||