All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.schedulerx.worker.master.handler.UpdateInstanceStatusHandler Maven / Gradle / Ivy

There is a newer version: 1.12.2
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy