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

com.github.ltsopensource.queue.ExecutingJobQueue Maven / Gradle / Ivy

package com.github.ltsopensource.queue;

import com.github.ltsopensource.queue.domain.JobPo;

import java.util.List;

/**
 * 正在执行的 任务队列
 *
 * @author Robert HG ([email protected]) on 5/28/15.
 */
public interface ExecutingJobQueue extends JobQueue {

    /**
     * 入队列
     */
    boolean add(JobPo jobPo);

    /**
     * 出队列
     */
    boolean remove(String jobId);

    /**
     * 得到某个TaskTracker节点上正在执行的任务
     */
    List getJobs(String taskTrackerIdentity);

    /**
     * 根据过期时间得到死掉的任务
     */
    List getDeadJobs(long deadline);

    /**
     * 得到JobPo
     */
    JobPo getJob(String taskTrackerNodeGroup, String taskId);

    JobPo getJob(String jobId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy