Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » Mobile Link - サーバ起動同期 » サーバ起動同期の Mobile Link サーバ設定 » Notifier イベント » ポーリング・イベント

 

shutdown_query イベント

このポーリング・イベントは SQL スクリプトを受け入れ、begin_poll イベントの後に起動されます。戻り値は Notifier の停止ステータスを示します。デフォルトでは、値は NULL であるため、このイベントは起動されません。

Notifier を停止するには、'yes' を返すように SQL スクリプトを設定します。それ以外の場合は、'no' を返すように設定します。Notifier が停止した場合、end_poll イベントは起動されません。

停止ステータスをテーブルに格納している場合は、end_connection イベントを使用してステータスをリセットします。

参照

次の例では、ml_add_property システム・プロシージャを使用して、Simple という名前のカスタム Notifier 用の shutdown_query イベント・スクリプトを作成します。SELECT 文によって、tooManyNotifierErrors メソッドから true が返された場合に停止するよう Notifier に通知しています。

CALL ml_add_property('SIS', 'Notifier(Simple)', 'shutdown_query',
    'SELECT 
        IF tooManyNotifierErrors() THEN
            'yes'
        ELSE
            'no'
        ENDIF'
);