Package org.nuxeo.ecm.core.scheduler
Class ScheduleImpl
java.lang.Object
org.nuxeo.ecm.core.scheduler.ScheduleImpl
- All Implemented Interfaces:
Schedule
,Descriptor
ScheduleImpl extension definition.
-
Field Summary
FieldsFields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the cron expression.Returns the event category.Returns the event id.getId()
The descriptor id, descriptors with same id are merged.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()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove, merge
-
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:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
- Specified by:
getId
in interfaceSchedule
- 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
-