@Deprecated public class JobServiceImpl extends DatabricksService implements JobService
client, mapper| Constructor and Description |
|---|
JobServiceImpl(DatabricksRestClient client)
Deprecated.
|
| 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.
|
public JobServiceImpl(DatabricksRestClient client)
public long createJob(JobSettingsDTO jobSettingsDTO) throws IOException, DatabricksRestException
JobServicecreateJob in interface JobServiceIOExceptionDatabricksRestExceptionpublic void deleteJob(long jobId)
throws IOException,
DatabricksRestException
JobServicedeleteJob in interface JobServicejobId - The canonical identifier of the job to deleteIOExceptionDatabricksRestExceptionpublic void deleteJob(String jobName) throws IOException, DatabricksRestException
JobServicedeleteJob in interface JobServicejobName - - the job name to delete.IOExceptionDatabricksRestExceptionpublic JobDTO getJob(long jobId) throws IOException, DatabricksRestException
JobServicegetJob in interface JobServicejobId - The canonical identifier of the job to retrieve information aboutIOExceptionDatabricksRestExceptionpublic List<JobDTO> getJobsByName(String jobName) throws IOException, DatabricksRestException
JobServicegetJobsByName in interface JobServicejobName - - the full name of the jobIOExceptionDatabricksRestExceptionpublic JobDTO getJobByName(String jobName) throws IOException, DatabricksRestException
JobServicegetJobByName in interface JobServiceIOExceptionDatabricksRestExceptionpublic JobDTO getJobByName(String jobName, boolean failOnMultipleJobs) throws IOException, DatabricksRestException
JobServicegetJobByName in interface JobServiceIOExceptionDatabricksRestExceptionpublic List<JobDTO> getJobsByRegex(Pattern regex) throws IOException, DatabricksRestException
JobServicegetJobsByRegex in interface JobServiceregex - - the regex to earch forIOExceptionDatabricksRestExceptionpublic JobsDTO listAllJobs() throws DatabricksRestException, IOException
JobServicelistAllJobs in interface JobServiceDatabricksRestExceptionIOExceptionpublic String getJobLink(long jobId)
JobServicegetJobLink in interface JobServicejobId - The canonical identifier of the job to retrieve information aboutpublic RunNowDTO runJobNow(long jobId) throws DatabricksRestException, IOException
JobServicerunJobNow in interface JobServicejobId - The job to runDatabricksRestExceptionIOExceptionpublic RunNowDTO runJobNow(long jobId, Map<String,String> notebookParams) throws DatabricksRestException, IOException
JobServicerunJobNow in interface JobServicejobId - The job to runnotebookParams - A map from keys to values for jobs with notebook taskDatabricksRestExceptionIOExceptionpublic RunNowDTO runJobNow(long jobId, RunParametersDTO params) throws DatabricksRestException, IOException
JobServicerunJobNow in interface JobServicejobId - the job id to runparams - the run parametersDatabricksRestException - any db specific exceptionsIOException - any other exceptionspublic RunsDTO listRuns(Long jobId, Boolean activeOnly, Integer offset, Integer limit) throws DatabricksRestException, IOException
JobServicelistRuns in interface JobServicejobId - 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
1000DatabricksRestExceptionIOExceptionpublic RunDTO getRun(long runId) throws DatabricksRestException, IOException
JobServicegetRun in interface JobServicerunId - The canonical identifier of the run for which to retrieve the metadataDatabricksRestExceptionIOExceptionpublic void cancelRun(long runId)
throws IOException,
DatabricksRestException
JobServicecancelRun in interface JobServicerunId - The desired run to cancelIOExceptionDatabricksRestExceptionpublic void reset(long jobId,
JobSettingsDTO jobSettings)
throws IOException,
DatabricksRestException
JobServicereset in interface JobServicejobId - the job to editjobSettings - the settings to change the job toIOException - any other errorsDatabricksRestException - any specific db errorspublic String buildRunJobRestUrl(long jobId, long numberInJob)
JobServicebuildRunJobRestUrl in interface JobServicepublic void upsertJob(JobSettingsDTO jobSettingsDTO, boolean failOnDuplicateJobNames) throws IOException, DatabricksRestException
JobServiceupsertJob in interface JobServiceIOExceptionDatabricksRestExceptionpublic RunNowDTO runSubmit(JobSettingsDTO jobSettings) throws IOException, DatabricksRestException
JobServicerunSubmit in interface JobServicejobSettings - the settings to change the job toIOExceptionDatabricksRestExceptionpublic String getOutput(long runId) throws IOException, DatabricksRestException
JobServicegetOutput in interface JobServicerunId - The desired run idIOExceptionDatabricksRestExceptionCopyright © 2023. All rights reserved.