示例:存储库属性文件中的作业
WSGrid 可以提交存储在作业存储库中的作业。您可以使用存储库属性文件来指定已保存的作业定义及其替代属性。
如果 PostingsSample 作业存储在名为 PostingsSample 的存储库中,那么您可以使用以下属性文件(名为 WSGrid.repo-postings.job)来指定已保存的作业定义及其替代属性:
# This specifies which job from the repository to submit.
repository-job=PostingsSample
# The following substitution property values will be passed to the job.
substitution-prop.wsbatch.count=5
substitution-prop.checkpoint=timebased
substitution-prop.checkpointInterval=15
substitution-prop.postingsDataStream=${was.install.root}/temp/postings"
上述属性文件所描述的针对提交作业的 WSGrid 调用为:
WSGrid WGrid.cntl WSGrid.repo-postings.job