|
CXI
|
The EventHandler interface provides callback functions, which are called if the state of the current CryptoServer within a cluster changes or an error occurs. More...
Inherited by CryptoServerCXI.EventHandler.
Public Member Functions | |
| void | stateChanged (String device, int state) |
| This method is called if the state of a CryptoServer changes (e.g. More... | |
| void | errorOccurred (String device, int err, String where, String message) |
| This method is called if an error occurred on a CryptoServer. More... | |
The EventHandler interface provides callback functions, which are called if the state of the current CryptoServer within a cluster changes or an error occurs.
The following code demonstrates a sample event handler:
The event handler can be registered with a CryptoServerCluster as follows:
| void stateChanged | ( | String | device, |
| int | state | ||
| ) |
This method is called if the state of a CryptoServer changes (e.g.
from DeviceState.Active to DeviceState.Closed).
| device | device whose state changed (see DeviceState). |
| state | new state |
| void errorOccurred | ( | String | device, |
| int | err, | ||
| String | where, | ||
| String | message | ||
| ) |
This method is called if an error occurred on a CryptoServer.
| device | device that caused the error |
| err | error code |
| where | location (native function) where error occurred |
| message | clear text error message |