com.alibaba.schedulerx.worker.master.handler.UpdateInstanceStatusHandler Maven / Gradle / Ivy
package com.alibaba.schedulerx.worker.master.handler;
import com.alibaba.schedulerx.common.domain.InstanceStatus;
import com.alibaba.schedulerx.common.domain.JobInstanceInfo;
import com.alibaba.schedulerx.worker.master.TaskMaster;
import com.alibaba.schedulerx.worker.master.TaskMasterPool;
/**
*
* @author zhaibian
* @version $Id: UpdateInstanceStatusHandler.java, v 0.1 2019年02月28日 19:35 zhaibian Exp $
*/
public abstract class UpdateInstanceStatusHandler {
protected final JobInstanceInfo jobInstanceInfo;
protected final TaskMaster taskMaster;
protected TaskMasterPool masterPool = TaskMasterPool.INSTANCE;
UpdateInstanceStatusHandler(TaskMaster taskMaster, JobInstanceInfo jobInstanceInfo){
this.taskMaster = taskMaster;
this.jobInstanceInfo = jobInstanceInfo;
}
public abstract void handle(long serialNum, InstanceStatus instanceStatus, String result) throws Exception;
}