Package org.nuxeo.ecm.core.scheduler
Class ScheduleImpl
java.lang.Object
org.nuxeo.ecm.core.scheduler.ScheduleImpl
- All Implemented Interfaces:
Schedule
ScheduleImpl extension definition.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the cron expression.Returns the event category.Returns the event id.getId()
Returns the schedule job id.Returns an instance of theEventJobFactory
(DefaultEventJobFactory
by default).Returns the timezone to be used for the Cron Expression.Returns the username.int
hashCode()
boolean
Returns true if the scheduler is enabled and the job scheduled for executionvoid
setEventId
(String eventId) toString()
-
Field Details
-
id
-
jobFactoryClass
- Since:
- 10.2
-
eventId
-
eventCategory
-
cronExpression
-
timeZone
- Since:
- 10.2
-
username
-
enabled
public boolean enabled- Since:
- 5.7.3
-
-
Constructor Details
-
ScheduleImpl
public ScheduleImpl()
-
-
Method Details
-
setEventId
-
getId
Description copied from interface:Schedule
Returns the schedule job id. -
getJobFactory
Description copied from interface:Schedule
Returns an instance of theEventJobFactory
(DefaultEventJobFactory
by default).- Specified by:
getJobFactory
in interfaceSchedule
- Returns:
- An instance of
EventJobFactory
.
-
getEventId
Description copied from interface:Schedule
Returns the event id.- Specified by:
getEventId
in interfaceSchedule
- Returns:
- the event id
-
getEventCategory
Description copied from interface:Schedule
Returns the event category.- Specified by:
getEventCategory
in interfaceSchedule
- Returns:
- the event category
-
getCronExpression
Description copied from interface:Schedule
Returns the cron expression.- Specified by:
getCronExpression
in interfaceSchedule
- Returns:
- the cron expression
-
getUsername
Description copied from interface:Schedule
Returns the username.- Specified by:
getUsername
in interfaceSchedule
- Returns:
- the username
-
toString
-
equals
-
hashCode
public int hashCode() -
isEnabled
public boolean isEnabled()Description copied from interface:Schedule
Returns true if the scheduler is enabled and the job scheduled for execution -
getTimeZone
Description copied from interface:Schedule
Returns the timezone to be used for the Cron Expression.- Specified by:
getTimeZone
in interfaceSchedule
- Returns:
- the timezone, or
null
if not specified - Since:
- 10.2
-