提交者能过查询命令查看CSF配置情况,结合自己作业类型决定提交类型及是否提交。
与现有CSF相比,增加了作业类型,比较容易的融合各插件;由于提交者更了解自己的作业类型,方便作业的分类。
服务端根据作业类型创建作业(为JobResource的子类)
<queues>
<queue name='normal' ... />
<plugin name='wfplugin' ... />
</queue>
</queues>
<jobs>
<job name='workflow' class='com.platform.metascheduler.WFJob'/>
</jobs>
<plugins>
<plugin name='wfplugin' job='workflow' class='com.platform.metascheduler.WorkFlowPlugin'/>
</plugins>
<queues>
<queue name='workflow_parallel' ... />
<plugin name='wp_wf_plugin' ... />
<plugin name='wp_pa_plugin' ... />
</queue>
</queues>
<jobs>
<job name='wf_pa' class='com.platform.metascheduler.WFPAJob' ... />
</jobs>
<plugins>
<plugin name='wp_wf_plugin' job='wf_pa' class='com.platform.metascheduler.WorkFlowPlugin' ... />
<plugin name='wp_pa_plugin' job='wf_pa' class='com.platform.metascheduler.ParallelPlugin' ... />
</plugins>
public class WFPAClass implements WorkFlowJob, ParallelJob{
......
}
<queue type='notify' ... />
<queue type='normal' ... />