content: /*
   *  Copyright (C) 2010-2012, 2019 Stichting Akvo (Akvo Foundation)
   *
   *  This file is part of Akvo FLOW.
   *
   *  Akvo FLOW is free software: you can redistribute it and modify it under the terms of
   *  the GNU Affero General Public License (AGPL) as published by the Free Software Foundation,
   *  either version 3 of the License or any later version.
   *
   *  Akvo FLOW is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
   *  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   *  See the GNU Affero General Public License included below for more details.
   *
   *  The full license text can also be seen at <http://www.gnu.org/licenses/agpl.html>.
   */
  
  package com.gallatinsystems.operations.domain;
  
  import java.util.Date;
  
  import javax.jdo.annotations.PersistenceCapable;
  
  import com.gallatinsystems.framework.domain.BaseDomain;
  
  /**
   * Domain that can be used to track processing status for use in computing
   * last-run times, duration and progress of lengthy tasks.
   * 
   */
  @PersistenceCapable
  public class ProcessingStatus extends BaseDomain {
      private static final long serialVersionUID = -5624416550678028364L;
  
      private String code;
      private String value;
      private String guid;
      private Boolean inError;
      private Date lastEventDate;
      private Date maxDurationDate;
      private Long maxDurationMs;
      
      public Boolean getInError() {
          return inError;
      }
  
      public void setInError(Boolean inError) {
          this.inError = inError;
      }
  
      public Date getLastEventDate() {
          return lastEventDate;
      }
  
      public void setLastEventDate(Date lastEventDate) {
          this.lastEventDate = lastEventDate;
      }
  
      public String getGuid() {
          return guid;
      }
  
      public void setGuid(String guid) {
          this.guid = guid;
      }
  
      public String getCode() {
          return code;
      }
  
      public void setCode(String code) {
          this.code = code;
      }
  
      public String getValue() {
          return value;
      }
  
      public void setValue(String value) {
          this.value = value;
      }
  
      public Date getMaxDurationDate() {
          return maxDurationDate;
      }
  
      public void setMaxDurationDate(Date maxDurationDate) {
          this.maxDurationDate = maxDurationDate;
      }
  
      public Long getMaxDurationMs() {
          return maxDurationMs;
      }
  
      public void setMaxDurationMs(Long maxDuration) {
          this.maxDurationMs = maxDuration;
      }
  
  }
  