Package org.nuxeo.ecm.core.scheduler
Class ScheduleImpl
- java.lang.Object
-
- org.nuxeo.ecm.core.scheduler.ScheduleImpl
-
-
Field Summary
Fields Modifier and Type Field Description String
cronExpression
boolean
enabled
String
eventCategory
String
eventId
String
id
Class<? extends EventJobFactory>
jobFactoryClass
String
timeZone
String
username
-
Constructor Summary
Constructors Constructor Description ScheduleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getCronExpression()
Returns the cron expression.String
getEventCategory()
Returns the event category.String
getEventId()
Returns the event id.String
getId()
Returns the schedule job id.EventJobFactory
getJobFactory()
Returns an instance of theEventJobFactory
(DefaultEventJobFactory
by default).String
getTimeZone()
Returns the timezone to be used for the Cron Expression.String
getUsername()
Returns the username.int
hashCode()
boolean
isEnabled()
Returns true if the scheduler is enabled and the job scheduled for executionvoid
setEventId(String eventId)
String
toString()
-
-
-
Field Detail
-
id
public String id
-
jobFactoryClass
public Class<? extends EventJobFactory> jobFactoryClass
- Since:
- 10.2
-
eventId
public String eventId
-
eventCategory
public String eventCategory
-
cronExpression
public String cronExpression
-
timeZone
public String timeZone
- Since:
- 10.2
-
username
public String username
-
enabled
public boolean enabled
- Since:
- 5.7.3
-
-
Method Detail
-
setEventId
public void setEventId(String eventId)
-
getId
public String getId()
Description copied from interface:Schedule
Returns the schedule job id.
-
getJobFactory
public EventJobFactory 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
public String getEventId()
Description copied from interface:Schedule
Returns the event id.- Specified by:
getEventId
in interfaceSchedule
- Returns:
- the event id
-
getEventCategory
public String getEventCategory()
Description copied from interface:Schedule
Returns the event category.- Specified by:
getEventCategory
in interfaceSchedule
- Returns:
- the event category
-
getCronExpression
public String getCronExpression()
Description copied from interface:Schedule
Returns the cron expression.- Specified by:
getCronExpression
in interfaceSchedule
- Returns:
- the cron expression
-
getUsername
public String getUsername()
Description copied from interface:Schedule
Returns the username.- Specified by:
getUsername
in interfaceSchedule
- Returns:
- the username
-
isEnabled
public boolean isEnabled()
Description copied from interface:Schedule
Returns true if the scheduler is enabled and the job scheduled for execution
-
getTimeZone
public String 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
-
-