Package mindsdb.services
Class Jobs
java.lang.Object
mindsdb.services.Jobs
The Jobs class provides methods to list, get, create, and drop jobs in a project.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate job with only nameCreate job with name and query stringcreate
(String name, String queryStr, LocalDateTime startAt, LocalDateTime endAt) Create job with name, query string, start time, and end timecreate
(String name, String queryStr, LocalDateTime startAt, LocalDateTime endAt, String repeatStr) Create job with name, query string, start time, end time, and repeat stringcreate
(String name, String queryStr, LocalDateTime startAt, LocalDateTime endAt, String repeatStr, Integer repeatMin) Create job in projectcreate
(String name, LocalDateTime startAt, LocalDateTime endAt, String repeatStr, Integer repeatMin) Create job without query stringCreate job with name and list of query stringscreate
(String name, List<String> queryStr, LocalDateTime startAt, LocalDateTime endAt) Create job with name, list of query strings, start time, and end timecreate
(String name, List<String> queryStr, LocalDateTime startAt, LocalDateTime endAt, Integer repeatMin) Create job with name, list of query strings, start time, end time, and repeat minutescreate
(String name, List<String> queryStr, LocalDateTime startAt, LocalDateTime endAt, String repeatStr) Create job with name, list of query strings, start time, end time, and repeat stringvoid
Drop job from projectGet job by namelist()
Show list of jobs in project
-
Constructor Details
-
Jobs
Constructs a new Jobs instance with the provided project and API.- Parameters:
project
- The project associated with the jobs.api
- The API instance used to interact with the backend.
-
-
Method Details
-
list
Show list of jobs in project- Returns:
- list of Job objects
-
get
Get job by name- Parameters:
name
- job name- Returns:
- Job object
-
create
public Job create(String name, String queryStr, LocalDateTime startAt, LocalDateTime endAt, String repeatStr, Integer repeatMin) Create job in project- Parameters:
name
- name of the jobqueryStr
- query stringstartAt
- start timeendAt
- end timerepeatStr
- repeat stringrepeatMin
- repeat minutes- Returns:
- Job object
-
create
Create job with only name- Parameters:
name
- name of the job- Returns:
- Job object
-
create
public Job create(String name, LocalDateTime startAt, LocalDateTime endAt, String repeatStr, Integer repeatMin) Create job without query string- Parameters:
name
- - name of the jobstartAt
- - start timeendAt
- - end timerepeatStr
- - repeat stringrepeatMin
- - repeat minutes- Returns:
- Job object
-
create
Create job with name and query string- Parameters:
name
- name of the jobqueryStr
- query string- Returns:
- Job object
-
create
Create job with name, query string, start time, and end time- Parameters:
name
- name of the jobqueryStr
- query stringstartAt
- start timeendAt
- end time- Returns:
- Job object
-
create
public Job create(String name, String queryStr, LocalDateTime startAt, LocalDateTime endAt, String repeatStr) Create job with name, query string, start time, end time, and repeat string- Parameters:
name
- name of the jobqueryStr
- query stringstartAt
- start timeendAt
- end timerepeatStr
- repeat string- Returns:
- Job object
-
create
Create job with name and list of query strings- Parameters:
name
- name of the jobqueryStr
- list of query strings- Returns:
- Job object
-
create
Create job with name, list of query strings, start time, and end time- Parameters:
name
- name of the jobqueryStr
- list of query stringsstartAt
- start timeendAt
- end time- Returns:
- Job object
-
create
public Job create(String name, List<String> queryStr, LocalDateTime startAt, LocalDateTime endAt, String repeatStr) Create job with name, list of query strings, start time, end time, and repeat string- Parameters:
name
- name of the jobqueryStr
- list of query stringsstartAt
- start timeendAt
- end timerepeatStr
- repeat string- Returns:
- Job object
-
create
public Job create(String name, List<String> queryStr, LocalDateTime startAt, LocalDateTime endAt, Integer repeatMin) Create job with name, list of query strings, start time, end time, and repeat minutes- Parameters:
name
- name of the jobqueryStr
- list of query stringsstartAt
- start timeendAt
- end timerepeatMin
- repeat minutes- Returns:
- Job object
-
drop
Drop job from project- Parameters:
name
- name of the job
-