Interface JobProjection
- All Superinterfaces:
AuditProjection,BaseProjection,IdProjection,JobArchiveLocationProjection,JobCommonFieldsProjection,StatusProjection,UniqueIdProjection
- All Known Implementing Classes:
JobEntity
public interface JobProjection
extends JobCommonFieldsProjection, StatusProjection, JobArchiveLocationProjection
Projection for the fields originally available in pre-3.3.0 JobEntity classes.
- Since:
- 3.3.0
-
Method Summary
Modifier and TypeMethodDescriptionGet the applications used to run this job.Get the name of the cluster that is running or did run this job.Get the name of the command that is executing this job.Get when the job was finished.Get when the job was started.Get the current status message of the job.Methods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.AuditProjection
getCreated, getUpdatedMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.BaseProjection
getDescription, getMetadata, getName, getStatus, getUser, getVersionMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.IdProjection
getIdMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.JobArchiveLocationProjection
getArchiveLocationMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.JobCommonFieldsProjection
getCommandArgs, getGrouping, getGroupingInstance, getTagsMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.StatusProjection
getStatusMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.UniqueIdProjection
getUniqueId
-
Method Details
-
getStatusMsg
Get the current status message of the job.- Returns:
- The status message
-
getStarted
Get when the job was started.- Returns:
- The start date
-
getFinished
Get when the job was finished.- Returns:
- The finish date
-
getClusterName
Get the name of the cluster that is running or did run this job.- Returns:
- The cluster name or empty Optional if it hasn't been set
-
getCommandName
Get the name of the command that is executing this job.- Returns:
- The command name or empty Optional if one wasn't set yet
-
getApplications
List<ApplicationEntity> getApplications()Get the applications used to run this job.- Returns:
- The applications
-