@Entity public class JobEntity extends BaseEntity implements JobProjection, JobRequestProjection, JobMetadataProjection, JobExecutionProjection, JobApplicationsProjection, JobClusterProjection, JobCommandProjection, JobSearchProjection
Constructor and Description |
---|
JobEntity()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Optional<java.lang.String> |
getArchiveLocation()
Get location where logs are archived.
|
java.util.Optional<java.lang.Long> |
getCheckDelay()
Get the amount of time (in milliseconds) to delay the check for the job status.
|
java.util.Optional<java.lang.String> |
getClientHost()
Get the client host.
|
java.util.Optional<ClusterEntity> |
getCluster()
Get the cluster that is running or did run this job.
|
java.util.Optional<java.lang.String> |
getClusterName()
Gets the name of the cluster on which this job was run.
|
java.util.Optional<CommandEntity> |
getCommand()
Get the command that is executing this job.
|
java.util.Optional<CriterionEntity> |
getCommandCriterion()
Get the command criterion if one exists.
|
java.util.Optional<java.lang.String> |
getCommandName()
Gets the command name for this job.
|
java.util.Optional<java.lang.Integer> |
getCpuRequested()
Get the number of CPU's requested to run this job.
|
java.util.Optional<java.lang.String> |
getEmail()
Get the email of the user associated with this job if they desire an email notification at completion
of the job.
|
java.util.Optional<java.lang.Integer> |
getExitCode()
Get the exit code from the process that ran the job.
|
java.util.Optional<java.util.Date> |
getFinished()
Gets the finish time for this job.
|
java.util.Optional<java.lang.String> |
getGenieUserGroup()
Get the user group for this job.
|
java.util.Optional<java.lang.String> |
getGrouping()
Get the grouping this job is a part of.
|
java.util.Optional<java.lang.String> |
getGroupingInstance()
Get the instance identifier of a grouping.
|
java.util.Optional<java.lang.Integer> |
getMemoryRequested()
Get the memory requested to run this job with.
|
java.util.Optional<java.lang.Integer> |
getMemoryUsed()
Get the amount of memory (in MB) that this job is/was run with.
|
java.util.Optional<java.lang.Integer> |
getNumAttachments()
Get the number of attachments.
|
java.util.Optional<java.lang.Integer> |
getProcessId()
Get the process id of the job.
|
java.util.Optional<java.util.Date> |
getStarted()
Gets the start time for this job.
|
java.util.Optional<java.lang.String> |
getStatusMsg()
Gets the status message or this job.
|
java.util.Optional<java.lang.Long> |
getStdErrSize()
Get the size of standard error for this job.
|
java.util.Optional<java.lang.Long> |
getStdOutSize()
Get the size of standard out for this job.
|
java.util.Optional<java.util.Date> |
getTimeout()
Get the date this job will be killed due to exceeding its set timeout duration.
|
java.util.Optional<java.lang.Integer> |
getTimeoutRequested()
Get the timeout (in seconds) requested by the user for this job.
|
java.util.Optional<java.lang.Long> |
getTotalSizeOfAttachments()
Get the total size of the attachments.
|
java.util.Optional<java.lang.String> |
getUserAgent()
Get the user agent.
|
int |
hashCode() |
void |
setApplications(java.util.List<ApplicationEntity> applications)
Set the applications used to run this job.
|
void |
setCluster(ClusterEntity cluster)
Set the cluster this job ran on.
|
void |
setClusterCriteria(java.util.List<CriterionEntity> clusterCriteria)
Set the cluster criteria set for this job.
|
void |
setCommand(CommandEntity command)
Set the command used to run this job.
|
void |
setCommandArgs(java.util.List<java.lang.String> commandArgs)
Set the command arguments to use with this job.
|
void |
setCommandCriterion(CriterionEntity commandCriterion)
Set the command criterion.
|
void |
setConfigs(java.util.Set<FileEntity> configs)
Set all the files associated as configuration files for this job.
|
void |
setDependencies(java.util.Set<FileEntity> dependencies)
Set all the files associated as dependency files for this job.
|
void |
setFinished(java.util.Date finished)
Set the finishTime for the job.
|
void |
setStarted(java.util.Date started)
Set the startTime for the job.
|
void |
setStdErrSize(java.lang.Long stdErrSize)
Set the total size in bytes of the std err file for this job.
|
void |
setStdOutSize(java.lang.Long stdOutSize)
Set the total size in bytes of the std out file for this job.
|
void |
setTags(java.util.Set<TagEntity> tags)
Set all the tags associated to this job.
|
void |
setTimeout(java.util.Date timeout)
Set the date this job will be killed due to exceeding its set timeout duration.
|
getDescription, getMetadata, getSetupFile, setDescription, setMetadata, setSetupFile
getCreated, getUpdated, onCreateBaseEntity, onUpdateBaseEntity
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getApplications
getApplicationsRequested, getClusterCriteria, getConfigs, getDependencies, isDisableLogArchival
getCommandArgs, getTags
getDescription, getMetadata, getName, getUniqueId, getUser, getVersion
getCreated, getUpdated
getId
getSetupFile
getUniqueId
getUniqueId
getHostName
getApplications
getName, getUniqueId, getUser
getStatus
public java.util.Optional<java.lang.String> getGenieUserGroup()
getGenieUserGroup
in interface JobRequestProjection
public java.util.Optional<CriterionEntity> getCommandCriterion()
getCommandCriterion
in interface JobRequestProjection
public java.util.Optional<java.lang.String> getEmail()
getEmail
in interface JobRequestProjection
public java.util.Optional<java.lang.Integer> getCpuRequested()
getCpuRequested
in interface JobRequestProjection
public java.util.Optional<java.lang.Integer> getMemoryRequested()
getMemoryRequested
in interface JobRequestProjection
public java.util.Optional<java.lang.Integer> getTimeoutRequested()
getTimeoutRequested
in interface JobRequestProjection
public void setCommandCriterion(@Nullable CriterionEntity commandCriterion)
commandCriterion
- The criterion. Null clears reference.public java.util.Optional<java.lang.String> getGrouping()
getGrouping
in interface JobCommonFieldsProjection
public java.util.Optional<java.lang.String> getGroupingInstance()
getGroupingInstance
in interface JobCommonFieldsProjection
public java.util.Optional<java.lang.String> getClientHost()
getClientHost
in interface JobMetadataProjection
public java.util.Optional<java.lang.String> getUserAgent()
getUserAgent
in interface JobMetadataProjection
public java.util.Optional<java.lang.Integer> getNumAttachments()
getNumAttachments
in interface JobMetadataProjection
public java.util.Optional<java.lang.Long> getTotalSizeOfAttachments()
getTotalSizeOfAttachments
in interface JobMetadataProjection
public java.util.Optional<java.lang.Long> getStdOutSize()
getStdOutSize
in interface JobMetadataProjection
public java.util.Optional<java.lang.Long> getStdErrSize()
getStdErrSize
in interface JobMetadataProjection
public void setStdErrSize(@Nullable java.lang.Long stdErrSize)
stdErrSize
- The size. Null empties database fieldpublic void setStdOutSize(@Nullable java.lang.Long stdOutSize)
stdOutSize
- The size. Null empties database fieldpublic java.util.Optional<java.lang.String> getStatusMsg()
getStatusMsg
in interface JobProjection
public java.util.Optional<java.util.Date> getStarted()
getStarted
in interface JobProjection
getStarted
in interface JobSearchProjection
public void setStarted(@Nullable java.util.Date started)
started
- epoch time as java.util.Date or nullpublic java.util.Optional<java.util.Date> getFinished()
getFinished
in interface JobProjection
getFinished
in interface JobSearchProjection
public void setFinished(@Nullable java.util.Date finished)
finished
- The finished time.public java.util.Optional<java.lang.String> getArchiveLocation()
getArchiveLocation
in interface JobProjection
public java.util.Optional<java.lang.String> getClusterName()
getClusterName
in interface JobProjection
getClusterName
in interface JobSearchProjection
public java.util.Optional<java.lang.String> getCommandName()
getCommandName
in interface JobProjection
getCommandName
in interface JobSearchProjection
public java.util.Optional<java.lang.Integer> getProcessId()
getProcessId
in interface JobExecutionProjection
public java.util.Optional<java.lang.Long> getCheckDelay()
getCheckDelay
in interface JobExecutionProjection
public java.util.Optional<java.lang.Integer> getExitCode()
getExitCode
in interface JobExecutionProjection
public java.util.Optional<java.lang.Integer> getMemoryUsed()
getMemoryUsed
in interface JobExecutionProjection
public java.util.Optional<java.util.Date> getTimeout()
getTimeout
in interface JobExecutionProjection
public void setTimeout(@Nullable java.util.Date timeout)
timeout
- The new timeoutpublic void setCommandArgs(@Nullable java.util.List<java.lang.String> commandArgs)
commandArgs
- The command arguments to usepublic void setConfigs(@Nullable java.util.Set<FileEntity> configs)
configs
- The configuration files to setpublic void setDependencies(@Nullable java.util.Set<FileEntity> dependencies)
dependencies
- The dependency files to setpublic void setTags(@Nullable java.util.Set<TagEntity> tags)
tags
- The tags to setpublic java.util.Optional<ClusterEntity> getCluster()
getCluster
in interface JobClusterProjection
public void setCluster(@Nullable ClusterEntity cluster)
cluster
- The cluster this job ran onpublic java.util.Optional<CommandEntity> getCommand()
getCommand
in interface JobCommandProjection
public void setCommand(@Nullable CommandEntity command)
command
- The commandpublic void setApplications(@Nullable java.util.List<ApplicationEntity> applications)
applications
- The applicationspublic void setClusterCriteria(@Nullable java.util.List<CriterionEntity> clusterCriteria)
clusterCriteria
- The cluster criteria in priority orderpublic boolean equals(java.lang.Object o)
equals
in class AuditEntity
public int hashCode()
hashCode
in class AuditEntity