start json listener 参数:启动有线监听器

随同 admin()task() 函数,使用 start json listener 参数来启动有线监听器。

语法

元素 描述 关键考虑
property_file 要使用的资产文件名,而不是缺省的。 property_file 是可选的。缺省资产文件在 $GBASEDBTDIR/etc/jsonListener.properties 中。
listener_arguments 传递给有线监听器的命令行参数。  

用法

start json listener 参数启动有线监听器。

示例

在这个示例中,通过使用 mycustom.properties 文件启动有线监听器,而不使用缺省 jsonListener.properties 文件:
EXECUTE FUNCTION task("start json listener", "mycustom.properties");
在这个示例中,通过使用 mycustom.properties 文件启动有线监听器,而不使用缺省 jsonListener.properties,并传递给有线监听器命令行参数:
EXECUTE FUNCTION task("start json listener", "mycustom.properties",
          "-port 27018 -loglevel debug");