@Deprecated public interface JobService
| Modifier and Type | Method and Description |
|---|---|
String |
buildRunJobRestUrl(long jobId,
long numberInJob)
Deprecated.
Formatting databricks job rest url.
|
void |
cancelRun(long runId)
Deprecated.
Cancels a run.
|
long |
createJob(JobSettingsDTO jobSettingsDTO)
Deprecated.
Creates job from settings DTO.
|
void |
deleteJob(long jobId)
Deprecated.
Deletes the job and sends an email to the addresses specified in email_notifications.
|
void |
deleteJob(String jobName)
Deprecated.
Deletes a job with a given name.
|
JobDTO |
getJob(long jobId)
Deprecated.
Retrieves information about a single job.
|
JobDTO |
getJobByName(String jobName)
Deprecated.
Will try and get a job by name.
|
JobDTO |
getJobByName(String jobName,
boolean failOnMultipleJobs)
Deprecated.
Will try and get a job by name.
|
String |
getJobLink(long jobId)
Deprecated.
Produces the URL of a job given job id.
|
List<JobDTO> |
getJobsByName(String jobName)
Deprecated.
Retrieves all jobs matching a name exactly.
|
List<JobDTO> |
getJobsByRegex(Pattern regex)
Deprecated.
Retrieves all jobs with a name matching a given regex.
|
String |
getOutput(long runId)
Deprecated.
Retrieve the output of a run.
|
RunDTO |
getRun(long runId)
Deprecated.
Retrieves the metadata of a run.
|
JobsDTO |
listAllJobs()
Deprecated.
Returns a list of all jobs that are active.
|
RunsDTO |
listRuns(Long jobId,
Boolean activeOnly,
Integer offset,
Integer limit)
Deprecated.
Lists runs from most recently started to least.
|
void |
reset(long jobId,
JobSettingsDTO jobSettings)
Deprecated.
"resets" or "edits" a job definition.
|
RunNowDTO |
runJobNow(long jobId)
Deprecated.
Runs the job now.
|
RunNowDTO |
runJobNow(long jobId,
Map<String,String> notebookParams)
Deprecated.
Runs the job now.
|
RunNowDTO |
runJobNow(long jobId,
RunParametersDTO params)
Deprecated.
Runs the job now.
|
RunNowDTO |
runSubmit(JobSettingsDTO jobSettings)
Deprecated.
Submit a one-time run.
|
void |
upsertJob(JobSettingsDTO jobSettingsDTO,
boolean failOnDuplicateJobNames)
Deprecated.
Given a job settings DTO object it will: - try to find the id by name.
|
long createJob(JobSettingsDTO jobSettingsDTO) throws IOException, DatabricksRestException
void deleteJob(long jobId)
throws IOException,
DatabricksRestException
jobId - The canonical identifier of the job to deleteIOExceptionDatabricksRestExceptionvoid deleteJob(String jobName) throws IOException, DatabricksRestException
jobName - - the job name to delete.IOExceptionDatabricksRestExceptionJobDTO getJob(long jobId) throws IOException, DatabricksRestException
jobId - The canonical identifier of the job to retrieve information aboutIOExceptionDatabricksRestExceptionList<JobDTO> getJobsByName(String jobName) throws IOException, DatabricksRestException
jobName - - the full name of the jobIOExceptionDatabricksRestExceptionJobDTO getJobByName(String jobName) throws IOException, DatabricksRestException
JobDTO getJobByName(String jobName, boolean failOnMultipleJobs) throws IOException, DatabricksRestException
List<JobDTO> getJobsByRegex(Pattern regex) throws IOException, DatabricksRestException
regex - - the regex to earch forIOExceptionDatabricksRestExceptionJobsDTO listAllJobs() throws IOException, DatabricksRestException
IOExceptionDatabricksRestExceptionString getJobLink(long jobId)
jobId - The canonical identifier of the job to retrieve information aboutRunNowDTO runJobNow(long jobId) throws DatabricksRestException, IOException
jobId - The job to runDatabricksRestExceptionIOExceptionRunNowDTO runJobNow(long jobId, Map<String,String> notebookParams) throws DatabricksRestException, IOException
jobId - The job to runnotebookParams - A map from keys to values for jobs with notebook taskDatabricksRestExceptionIOExceptionRunNowDTO runJobNow(long jobId, RunParametersDTO params) throws DatabricksRestException, IOException
jobId - the job id to runparams - the run parametersDatabricksRestException - any db specific exceptionsIOException - any other exceptionsRunsDTO listRuns(Long jobId, Boolean activeOnly, Integer offset, Integer limit) throws DatabricksRestException, IOException
jobId - The job for which to list runs. If omitted,
the Jobs service will list runs from all jobsactiveOnly - If true, lists active runs only; otherwise, lists both active and inactive
runsoffset - The offset of the first run to return, relative to the most recent run. The
default value is 20limit - The number of runs to return. This value should be greater than 0 and less than
1000DatabricksRestExceptionIOExceptionRunDTO getRun(long runId) throws DatabricksRestException, IOException
runId - The canonical identifier of the run for which to retrieve the metadataDatabricksRestExceptionIOExceptionvoid cancelRun(long runId)
throws IOException,
DatabricksRestException
runId - The desired run to cancelIOExceptionDatabricksRestExceptionvoid reset(long jobId,
JobSettingsDTO jobSettings)
throws IOException,
DatabricksRestException
jobId - the job to editjobSettings - the settings to change the job toIOException - any other errorsDatabricksRestException - any specific db errorsString buildRunJobRestUrl(long jobId, long numberInJob)
void upsertJob(JobSettingsDTO jobSettingsDTO, boolean failOnDuplicateJobNames) throws IOException, DatabricksRestException
IOExceptionDatabricksRestExceptionRunNowDTO runSubmit(JobSettingsDTO jobSettings) throws IOException, DatabricksRestException
jobSettings - the settings to change the job toIOExceptionDatabricksRestExceptionString getOutput(long runId) throws IOException, DatabricksRestException
runId - The desired run idIOExceptionDatabricksRestExceptionCopyright © 2023. All rights reserved.