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

org.duracloud.mill.ltp.State Maven / Gradle / Ivy

There is a newer version: 5.1.0
Show newest version
/*
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 *     http://duracloud.org/license/
 */
package org.duracloud.mill.ltp;

import java.util.Date;
import java.util.LinkedHashSet;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * Represents the persistent state of the LoopingTaskProducer.
 * @author Daniel Bernstein
 *	       Date: Nov 6, 2013
 */
public class State {
    
    private LinkedHashSet morsels = new LinkedHashSet<>();
    private Date currentRunStartDate = null;
    private Date nextRunStartDate = null;

    /**
     * @return the morsels
     */
    public LinkedHashSet getMorsels() {
        return morsels;
    }
    
    /**
     * @param morsels the morsels to set
     */
    public void setMorsels(LinkedHashSet morsels) {
        this.morsels = morsels;
    }

    /**
     * @return
     */
    public Date getCurrentRunStartDate() {
        return this.currentRunStartDate;
    }

    /**
     * @param time
     */
    public void setCurrentRunStartDate(Date time) {
        this.currentRunStartDate = time;
    }

    /**
     * @return
     */
    public Date getNextRunStartDate() {
        return this.nextRunStartDate;
    }

    /**
     * @param time
     */
    public void setNextRunStartDate(Date time) {
        this.nextRunStartDate = time;
    }
    
   /* (non-Javadoc)
    * @see java.lang.Object#toString()
    */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
    

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy