public final class JobSchedule extends Object implements Serializable, Comparable<JobSchedule>
JobScheduleConfig
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
JobSchedule.Status
Statuses of
JobSchedule . |
Constructor and Description |
---|
JobSchedule()
Default no-arg constructor.
|
JobSchedule(String id,
JobScheduleConfig jobScheduleConfig)
Constructs
JobSchedule with id and JobScheduleConfig . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(JobSchedule o)
Compares another job schedule to this one, based on their create time.
|
String |
getId()
Gets the job schedule id.
|
List<Long> |
getJobExecutionIds()
Gets all ids of job executions that have realized from this job schedule.
|
JobScheduleConfig |
getJobScheduleConfig()
Gets the job schedule config, which is typically passed in when creating
JobSchedule . |
JobSchedule.Status |
getStatus()
Gets the job schedule status.
|
public JobSchedule()
public JobSchedule(String id, JobScheduleConfig jobScheduleConfig)
JobSchedule
with id and JobScheduleConfig
.id
- job schedule idjobScheduleConfig
- job schedule configpublic String getId()
public JobScheduleConfig getJobScheduleConfig()
JobSchedule
.public JobSchedule.Status getStatus()
public List<Long> getJobExecutionIds()
public int compareTo(JobSchedule o)
compareTo
in interface Comparable<JobSchedule>
o
- the other job scheduleCopyright © 2016 JBoss by Red Hat. All rights reserved.