本文整理匯總了TypeScript中grid-client-core.Utils.getJobNotificationTopic方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Utils.getJobNotificationTopic方法的具體用法?TypeScript Utils.getJobNotificationTopic怎麽用?TypeScript Utils.getJobNotificationTopic使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類grid-client-core.Utils
的用法示例。
在下文中一共展示了Utils.getJobNotificationTopic方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: notifyClientsJobDone
notifyClientsJobDone(jobId: string) : void {
let msg: GridMessage = {
type: 'job-done'
,content: jobId
};
this.connectionsManager.dispatchMessage(Utils.getJobNotificationTopic(jobId), {type: 'job-done'}, msg);
}
示例2: notifyClientsTaskComplete
notifyClientsTaskComplete(task:ITask) : void {
let msg: GridMessage = {
type: 'task-complete'
,content: task
};
this.connectionsManager.dispatchMessage(Utils.getJobNotificationTopic(task.j), {type: 'task-complete'}, msg);
}
示例3: notifyClientsJobStatusChanged
notifyClientsJobStatusChanged(jobProgress: IJobProgress) : void {
let msg: GridMessage = {
type: 'status-changed'
,content: jobProgress
};
this.connectionsManager.dispatchMessage(Utils.getJobNotificationTopic(jobProgress.jobId), {type: 'status-changed'}, msg);
}