Interface FinishedJobProjection
- All Superinterfaces:
AuditProjection,BaseProjection,IdProjection,UniqueIdProjection
- All Known Implementing Classes:
JobEntity
Projection for a job entity that reached a terminal status.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionGet the applications used to run this job.Get the location where the job was archived.Get the cluster that ran or is currently running a given job.Get all the cluster criteria.Get the command that ran or is currently running a given job.Get the command arguments the user supplied for this job.Get the command criterion for this job.Get the exit code from the process that ran the job.Get when the job was finished.Get the grouping this job is a part of.Get the instance identifier of a grouping.Get the amount of memory (in MB) that this job is/was run with.Optional<com.fasterxml.jackson.databind.JsonNode>Get the metadata of this entity which is unstructured JSON.Get the number of attachments.Get the hostname of the agent that requested this job be run if there was one.Get the version of the agent that requested this job be run if there was one.Get the request api client hostname.Get the user agent.Get the memory requested to run this job with.Get when the job was started.Get the current status message of the job.getTags()Get the tags for 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, 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.UniqueIdProjection
getUniqueId
-
Method Details
-
getTags
Get the tags for the job.- Returns:
- Any tags that were sent in when job was originally requested
-
getGrouping
Get the grouping this job is a part of. e.g. scheduler job name for job run many times- Returns:
- The grouping
-
getGroupingInstance
Get the instance identifier of a grouping. e.g. the run id of a given scheduled job- Returns:
- The grouping instance
-
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
-
getMetadata
Optional<com.fasterxml.jackson.databind.JsonNode> getMetadata()Get the metadata of this entity which is unstructured JSON.- Specified by:
getMetadatain interfaceBaseProjection- Returns:
- Optional of the metadata json node
-
getCommandArgs
Get the command arguments the user supplied for this job.- Returns:
- The command arguments
-
getRequestedMemory
Get the memory requested to run this job with.- Returns:
- The amount of memory the user requested for this job in MB as an Optional
-
getRequestApiClientHostname
Get the request api client hostname.- Returns:
Optionalof the client host
-
getRequestApiClientUserAgent
Get the user agent.- Returns:
Optionalof the user agent
-
getNumAttachments
Get the number of attachments.- Returns:
- The number of attachments as an
Optional
-
getRequestAgentClientHostname
Get the hostname of the agent that requested this job be run if there was one.- Returns:
- The hostname wrapped in an
Optional
-
getRequestAgentClientVersion
Get the version of the agent that requested this job be run if there was one.- Returns:
- The version wrapped in an
Optional
-
getExitCode
Get the exit code from the process that ran the job.- Returns:
- The exit code or -1 if the job hasn't finished yet
-
getArchiveLocation
Get the location where the job was archived.- Returns:
- The archive location
-
getMemoryUsed
Get the amount of memory (in MB) that this job is/was run with.- Returns:
- The memory as an
Optionalas it could be null
-
getClusterCriteria
List<CriterionEntity> getClusterCriteria()Get all the cluster criteria.- Returns:
- The criteria in priority order
-
getCommandCriterion
CriterionEntity getCommandCriterion()Get the command criterion for this job.- Returns:
- The command criterion for this job
-
getApplications
List<ApplicationEntity> getApplications()Get the applications used to run this job.- Returns:
- The applications
-
getCluster
Optional<ClusterEntity> getCluster()Get the cluster that ran or is currently running a given job.- Returns:
- The cluster entity
-
getCommand
Optional<CommandEntity> getCommand()Get the command that ran or is currently running a given job.- Returns:
- The command entity
-