com.alibaba.dts.client.executor.job.context.JobContext Maven / Gradle / Ivy
package com.alibaba.dts.client.executor.job.context;
import com.alibaba.dts.client.executor.logcollector.AbstractLogCollector;
import com.alibaba.dts.common.domain.store.Job;
import com.alibaba.dts.common.domain.store.JobInstanceSnapshot;
/**
* job上下文
* @author tianyao.myc
*
*/
public interface JobContext {
public Job getJob();
public JobInstanceSnapshot getJobInstanceSnapshot();
public int getRetryCount() ;
public void setRetryCount(int retryCount);
public void setJob(Job job);
public void setJobInstanceSnapshot(JobInstanceSnapshot jobInstanceSnapshot);
public Object getRouteTask();
public void setRouteTask(Object routeTask);
public boolean isStop();
public void setStop(boolean stop);
public AbstractLogCollector getLogCollector();
public void setLogCollector(AbstractLogCollector logCollector);
ClientContext getClientContext();
}