com.prosysopc.ua.client
Interface ServerStatusListener


public interface ServerStatusListener

Event interface for listening changes in the OPC UA Server status.


Method Summary
 void onShutdown(UaClient uaClient, long secondsTillShutdown, org.opcfoundation.ua.builtintypes.LocalizedText shutdownReason)
          A notification of a server shutdown.
 void onStateChange(UaClient uaClient, org.opcfoundation.ua.core.ServerState oldState, org.opcfoundation.ua.core.ServerState newState)
          A notification of the change in the server state.
 void onStatusChange(UaClient uaClient, org.opcfoundation.ua.core.ServerStatusDataType status)
          A notification of a new server status.
 

Method Detail

onShutdown

void onShutdown(UaClient uaClient,
                long secondsTillShutdown,
                org.opcfoundation.ua.builtintypes.LocalizedText shutdownReason)
A notification of a server shutdown. The method is called whenever the server status changes to Shutdown, meaning that it will close down.

Parameters:
uaClient -
secondsTillShutdown - number of seconds to the expected shutdown.
shutdownReason - the reason for the shutdown as reported by the server.

onStateChange

void onStateChange(UaClient uaClient,
                   org.opcfoundation.ua.core.ServerState oldState,
                   org.opcfoundation.ua.core.ServerState newState)
A notification of the change in the server state.

Parameters:
uaClient - the client object that is connected to the server.
oldState - the previous ServerState (Unknown, if it was not available)
newState - the new ServerState (Unknown, if it was not available)

onStatusChange

void onStatusChange(UaClient uaClient,
                    org.opcfoundation.ua.core.ServerStatusDataType status)
A notification of a new server status. The method is called whenever a new status is received from the server, which means every StatusCheckInterval.

Parameters:
uaClient - the client object that is connected to the server.
status - the new status


Copyright © 2018. All rights reserved.