Interface JobSpecificationProjection
- All Superinterfaces:
AuditProjection,IdProjection,JobArchiveLocationProjection,UniqueIdProjection
- All Known Implementing Classes:
JobEntity
public interface JobSpecificationProjection
extends UniqueIdProjection, JobArchiveLocationProjection
Projection of the database fields which make up the required elements of a job specification.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionGet the applications used to run this job.Get the cluster that ran or is currently running a given job.Get the command that ran or is currently running a given job.Get the command arguments the user supplied for this job.Get all the configuration files for this job.Get all the dependency files for this job.Get the final set of environment variables sent from the server to the agent for the job.Get the job directory location the agent should use.Get the setup file for this resource.Get the final resolved timeout duration (in seconds) if there was one for this job.booleanGet whether the job was an interactive job or not when launched.booleanGet whether the job specification has been resolved yet or not.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.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.UniqueIdProjection
getUniqueId
-
Method Details
-
getConfigs
Set<FileEntity> getConfigs()Get all the configuration files for this job.- Returns:
- The set of configs
-
getDependencies
Set<FileEntity> getDependencies()Get all the dependency files for this job.- Returns:
- The set of dependencies
-
getSetupFile
Optional<FileEntity> getSetupFile()Get the setup file for this resource.- Returns:
- The setup file
-
getJobDirectoryLocation
Get the job directory location the agent should use.- Returns:
- The job directory location if its been set wrapped in an
Optional
-
getCommandArgs
Get the command arguments the user supplied for this job.- Returns:
- The command arguments
-
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
-
getApplications
List<ApplicationEntity> getApplications()Get the applications used to run this job.- Returns:
- The applications
-
isInteractive
boolean isInteractive()Get whether the job was an interactive job or not when launched.- Returns:
- true if the job was interactive
-
getEnvironmentVariables
Get the final set of environment variables sent from the server to the agent for the job.- Returns:
- The environment variables
-
isResolved
boolean isResolved()Get whether the job specification has been resolved yet or not.- Returns:
- True if the job specification has been resolved
-
getTimeoutUsed
Get the final resolved timeout duration (in seconds) if there was one for this job.- Returns:
- The timeout value wrapped in an
Optional
-