19 package org.sleuthkit.datamodel;
 
   21 import java.util.Date;
 
   22 import java.util.List;
 
   23 import java.util.ResourceBundle;
 
   30         private static final ResourceBundle bundle = ResourceBundle.getBundle(
"org.sleuthkit.datamodel.Bundle");
 
   35                 STARTED(bundle.getString(
"IngestJobInfo.IngestJobStatusType.Started.displayName")),
 
   36                 CANCELLED(bundle.getString(
"IngestJobInfo.IngestJobStatusType.Cancelled.displayName")),
 
   37                 COMPLETED(bundle.getString(
"IngestJobInfo.IngestJobStatusType.Completed.displayName"));
 
   39                 private String displayName;
 
   42                         this.displayName = displayName;
 
   47                                 if (statusType.ordinal() == typeId) {
 
   62         private final long ingestJobId;
 
   63         private final long objectId;
 
   64         private final String hostName;
 
   65         private final Date startDateTime;
 
   66         private Date endDateTime = 
new Date(0);
 
   67         private final String settingsDir;
 
   68         private final List<IngestModuleInfo> ingestModuleInfo;
 
   83         IngestJobInfo(
long ingestJobId, 
long objectId, String hostName, Date startDateTime, String settingsDir, List<IngestModuleInfo> ingestModuleInfo, 
SleuthkitCase skCase) {
 
   84                 this.ingestJobId = ingestJobId;
 
   85                 this.objectId = objectId;
 
   86                 this.hostName = hostName;
 
   87                 this.startDateTime = startDateTime;
 
   88                 this.settingsDir = settingsDir;
 
   90                 this.ingestModuleInfo = ingestModuleInfo;
 
  107         IngestJobInfo(
long ingestJobId, 
long dataSourceId, String hostName, Date startDateTime, Date endDateTime, IngestJobStatusType status, String settingsDir, List<IngestModuleInfo> ingestModuleInfo, SleuthkitCase skCase) {
 
  108                 this.ingestJobId = ingestJobId;
 
  109                 this.objectId = dataSourceId;
 
  110                 this.hostName = hostName;
 
  111                 this.startDateTime = startDateTime;
 
  112                 this.endDateTime = endDateTime;
 
  113                 this.settingsDir = settingsDir;
 
  114                 this.skCase = skCase;
 
  115                 this.ingestModuleInfo = ingestModuleInfo;
 
  116                 this.status = status;
 
  135                 Date oldDate = this.endDateTime;
 
  136                 this.endDateTime = endDateTime;
 
  138                         skCase.setIngestJobEndDateTime(
getIngestJobId(), endDateTime.getTime());
 
  140                         this.endDateTime = oldDate;
 
  154                 this.status = status;
 
  158                         this.status = oldStatus;
 
  188                 return startDateTime;
 
  202                 return ingestModuleInfo;
 
List< IngestModuleInfo > getIngestModuleInfo()
 
static IngestJobStatusType fromID(int typeId)
 
void setIngestJobStatus(IngestJobStatusType status)
 
void setEndDateTime(Date endDateTime)
 
IngestJobStatusType getStatus()