com.github.ltsopensource.tasktracker.runner
Class JobRunnerDelegate

java.lang.Object
  extended by com.github.ltsopensource.tasktracker.runner.JobRunnerDelegate
All Implemented Interfaces:
Runnable

public class JobRunnerDelegate
extends Object
implements Runnable

Job Runner 的代理类, 1. 做一些错误处理之类的 2. 监控统计 3. Context信息设置

Author:
Robert HG (254963746@qq.com) on 8/16/14.

Constructor Summary
JobRunnerDelegate(TaskTrackerAppContext appContext, com.github.ltsopensource.core.domain.JobMeta jobMeta, RunnerCallback callback)
           
 
Method Summary
 com.github.ltsopensource.core.domain.JobMeta currentJob()
           
 Thread currentThread()
           
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobRunnerDelegate

public JobRunnerDelegate(TaskTrackerAppContext appContext,
                         com.github.ltsopensource.core.domain.JobMeta jobMeta,
                         RunnerCallback callback)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

currentThread

public Thread currentThread()

currentJob

public com.github.ltsopensource.core.domain.JobMeta currentJob()


Copyright © 2017. All rights reserved.