@Validated
public interface JobSearchService
Modifier and Type | Method and Description |
---|---|
org.springframework.data.domain.Page<JobSearchResult> |
findJobs(java.lang.String id,
java.lang.String name,
java.lang.String user,
java.util.Set<JobStatus> statuses,
java.util.Set<java.lang.String> tags,
java.lang.String clusterName,
java.lang.String clusterId,
java.lang.String commandName,
java.lang.String commandId,
java.util.Date minStarted,
java.util.Date maxStarted,
java.util.Date minFinished,
java.util.Date maxFinished,
org.springframework.data.domain.Pageable page)
Search for jobs which match the given filter criteria.
|
long |
getActiveJobCountForUser(java.lang.String user)
Get the count of 'active' jobs for a given user across all instances.
|
java.util.Set<Job> |
getAllActiveJobsOnHost(java.lang.String hostName)
Given a hostname return a set of all the jobs currently active on that host.
|
java.util.List<java.lang.String> |
getAllHostsWithActiveJobs()
Get a list of host names which are currently have active jobs in the Genie cluster.
|
Job |
getJob(java.lang.String id)
Get job information for given job id.
|
java.util.List<Application> |
getJobApplications(java.lang.String id)
Get the applications the job was run with or exception if not found.
|
Cluster |
getJobCluster(java.lang.String id)
Get the cluster the job was run on or exception if not found.
|
Command |
getJobCommand(java.lang.String id)
Get the command the job was run with or exception if not found.
|
JobExecution |
getJobExecution(java.lang.String id)
Get job execution for given job id.
|
java.lang.String |
getJobHost(java.lang.String jobId)
Get the hostname a job is running on.
|
JobRequest |
getJobRequest(java.lang.String id)
Get job request for given job id.
|
JobStatus |
getJobStatus(java.lang.String id)
Get the status of the job with the given id.
|
org.springframework.data.domain.Page<JobSearchResult> findJobs(java.lang.String id, java.lang.String name, java.lang.String user, java.util.Set<JobStatus> statuses, java.util.Set<java.lang.String> tags, java.lang.String clusterName, java.lang.String clusterId, java.lang.String commandName, java.lang.String commandId, java.util.Date minStarted, java.util.Date maxStarted, java.util.Date minFinished, java.util.Date maxFinished, @NotNull org.springframework.data.domain.Pageable page)
id
- id for jobname
- name of job (can be a SQL-style pattern such as HIVE%)user
- user who submitted jobstatuses
- statuses of jobtags
- tags for the jobclusterName
- name of cluster for jobclusterId
- id of cluster for jobcommandName
- name of the command run in the jobcommandId
- id of the command run in the jobminStarted
- The time which the job had to start after in order to be return (inclusive)maxStarted
- The time which the job had to start before in order to be returned (exclusive)minFinished
- The time which the job had to finish after in order to be return (inclusive)maxFinished
- The time which the job had to finish before in order to be returned (exclusive)page
- Page information of job to getjava.util.Set<Job> getAllActiveJobsOnHost(@NotBlank java.lang.String hostName)
hostName
- The host name to search for. Not null or empty.java.util.List<java.lang.String> getAllHostsWithActiveJobs()
Job getJob(@NotBlank(message="No id entered. Unable to get job.") java.lang.String id) throws GenieException
id
- id of job to look upGenieException
- if there is an errorJobStatus getJobStatus(@NotBlank java.lang.String id) throws GenieException
id
- The id of the job to get status forGenieException
- When any error, including not found, is encounteredJobRequest getJobRequest(@NotBlank java.lang.String id) throws GenieException
id
- id of job request to look upGenieException
- if there is an errorJobExecution getJobExecution(@NotBlank java.lang.String id) throws GenieException
id
- id of job execution to look upGenieException
- if there is an errorCluster getJobCluster(@NotBlank java.lang.String id) throws GenieException
id
- The id of the job to get the cluster forGenieException
- If either the job or the cluster is not foundCommand getJobCommand(@NotBlank java.lang.String id) throws GenieException
id
- The id of the job to get the command forGenieException
- If either the job or the command is not foundjava.util.List<Application> getJobApplications(@NotBlank java.lang.String id) throws GenieException
id
- The id of the job to get the applications forGenieException
- If either the job or the applications were not foundjava.lang.String getJobHost(@NotBlank java.lang.String jobId) throws GenieException
jobId
- The id of the job to get the hostname forGenieException
- If the job isn't found or any other errorlong getActiveJobCountForUser(@NotBlank java.lang.String user) throws GenieException
user
- The user nameGenieException
- If any error occurs