以下关键字可用于配置使用 dblsn -l 选项创建的消息处理程序。 有关使用 MobiLink 监听器关键字的详细信息,请参见-l dblsn 选项。
以下关键字用于过滤推式通知中的消息:
关键字语法 | 说明 |
---|---|
subject= subject-string |
如果消息主题在文字上与 subject-string 相同,则过滤出该消息。 |
content= content-string |
如果消息内容在文字上与 content-string 相同,则过滤出该消息。 |
message= message-string |
如果整条消息在文字上与 message-string 相同,则过滤出该消息。 |
message_start= message-string |
如果消息以 message-string 开头,则过滤出该消息。 |
sender= sender-string |
如果消息由 sender-string 发送,则过滤出该消息。 |
以下关键字用于在满足过滤器条件时启动操作:
关键字语法 | 说明 |
---|---|
action= command |
指定操作命令。 请参见用于 Windows 设备的 MobiLink 监听器操作命令。 |
altaction= command |
指定操作命令失败时启动的替代操作命令。 请参见用于 Windows 设备的 MobiLink 监听器操作命令。 |
以下选项用于配置轻量级轮询器:
关键字语法 | 说明 |
---|---|
poll_connect= { http | https | tcpip } [ (protocol-option=value;...) ] |
指定连接到服务器所需的轻量级网络协议选项。缺省值从 dblsn -x 选项继承。 请参见-x dblsn 选项。 |
poll_notifier= Notifier-string |
指定处理推式请求的通告程序的名称。必需。 |
poll_key= key-string |
指定 MobiLink 监听器用于向通告程序标识自己的名称。此值必须唯一。必需。 |
poll_every= seconds-number |
指定 MobiLink 监听器轮询服务器的频率。时间间隔以秒为单位测量。缺省值从 MobiLink 服务器自动检索。 |
以下选项可用于配置消息处理程序行为:
关键字语法 | 说明 |
---|---|
continue=[ yes | no ] |
指定 MobiLink 监听器在发现第一个匹配项后是否继续监听。缺省值为 no。在指定多个过滤器时 yes 值很有用,此时一个消息启动多项操作。 |
confirm_action=[ yes | no ] |
指定过滤器是否确认操作。缺省值为 yes。 |
confirm_delivery=[ yes | no ] |
指定过滤器是否确认符合条件的消息传送。缺省值为 yes,所以第一个过滤器接受消息后发送传送确认。 只有在消息需要确认且过滤器接受消息时才能确认传送。如果指定的网关将 confirm_delivery 关键字值设置为 yes,则消息需要确认。在多个过滤器接受同一条消息时,可使用 no 值,以使您更精确地控制哪个过滤器确认传送。 有关在服务器上处理传送确认的信息,请参见confirmation_handler 事件。 |
maydial=[ yes | no ] |
指定操作是否拥有调制解调器的拨号权限。缺省值为 yes。no 值会使 MobiLink 监听器在执行操作之前释放调制解调器。 |
![]() |
使用DocCommentXchange讨论此页。
|
版权 © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |