public class SchedulerJobConfiguration extends BaseManager
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
Modifier and Type | Field and Description |
---|---|
static int |
TIME_SPECIFICATION_MODE_OPTION_CRON |
static int |
TIME_SPECIFICATION_MODE_OPTION_SIMPLE |
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
CatalogList |
getCatalogList()
Returns the list of catalogs that the job should work on.
|
java.lang.String |
getCronText()
Returns the current CRON mode configuration string.
|
java.lang.String |
getInstance()
Returns the server instance name.
|
JPack |
getModulePreferences(PackListener listener)
Returns the configuration pack for the module.
|
GUID |
getModuleUID()
Returns the module UID for the module being executed when this job starts.
|
boolean |
getSendNotificationOnError()
Returns whether the scheduler should send a notification message when an error occurred while executing this job.
|
boolean |
getSendNotificationOnSuccessfulRun()
Returns whether the scheduler should send a notification message when this job was executed successfully.
|
int |
getSimpleSpecDaysOfWeek()
Returns an int representing the days the job should run.
|
java.util.Date |
getStartDate()
Returns the start date for this job.
|
int |
getTimeSpecificationMode()
Returns the mode this scheduler job uses for determining the next start date.
|
boolean |
isActive()
Returns whether this scheduler job is active.
|
boolean |
isAllCatalogs()
Deprecated.
Cumulus 8.1 no longer supports the "All Catalogs" option therefore this now always returns false.
|
boolean |
isNewStart()
Returns true if this job should be started immediately after being scheduled by the server ignoring the currently stored start date.
|
boolean |
sameConfiguration(SchedulerJobConfiguration jobConfiguration)
Returns whether the given jobs configuration equals this jobs configuration.
|
void |
setActive(boolean active)
Sets whether this scheduler job should be active.
|
void |
setAllCatalogs(boolean all)
Deprecated.
Cumulus 8.1 no longer supports the "All Catalogs" option and this is now a no-op.
|
void |
setCronText(java.lang.String text)
Sets a new CRON mode configuration string.
|
void |
setInstance(java.lang.String instance)
Sets the server instance name.
|
void |
setModulePreferences(PackListener listener,
JPack pack)
Sets the modules preferences.
|
void |
setModuleUID(GUID uid)
Sets the module UID of the module being executed at the scheduler server when this job runs.
|
void |
setNewStart(boolean start)
Configures whether this job should be started immediately after being scheduled by the server ignoring the currently stored start date.
|
void |
setSendNotificationOnError(boolean sendNotification)
Configures whether the scheduler should send a notification message when an error occurred while executing this job.
|
void |
setSendNotificationOnSuccessfulRun(boolean sendNotification)
Configures whether the scheduler should send a notification message when this job was executed successfully.
|
void |
setSimpleSpecDaysOfWeek(int val)
Sets the days the job should run.
|
void |
setStartDate(java.util.Date date)
Sets the start date this job should run the first time.
|
void |
setTimeSpecificationMode(int mode)
Sets the mode this scheduler job uses for determining the next start date.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public static final int TIME_SPECIFICATION_MODE_OPTION_SIMPLE
public static final int TIME_SPECIFICATION_MODE_OPTION_CRON
@Deprecated public boolean isAllCatalogs()
@Deprecated public void setAllCatalogs(boolean all)
all
- set to true if the job should work on all catalogspublic boolean isActive()
public void setActive(boolean active)
active
- set to true if this job is activepublic boolean isNewStart()
public void setNewStart(boolean start)
start
- specify true to make this job start immediatelypublic int getTimeSpecificationMode()
TIME_SPECIFICATION_MODE_OPTION_SIMPLE
and
TIME_SPECIFICATION_MODE_OPTION_CRON
. Defaults to TIME_SPECIFICATION_MODE_OPTION_SIMPLE
.public void setTimeSpecificationMode(int mode)
TIME_SPECIFICATION_MODE_OPTION_SIMPLE
and
TIME_SPECIFICATION_MODE_OPTION_CRON
.mode
- mode this scheduler job uses for determining the next start datepublic java.lang.String getCronText()
public void setCronText(java.lang.String text)
text
- new CRON configurationpublic java.lang.String getInstance()
public void setInstance(java.lang.String instance)
instance
- the server instance namepublic CatalogList getCatalogList()
public int getSimpleSpecDaysOfWeek()
public void setSimpleSpecDaysOfWeek(int val)
val
- the days the job should runpublic java.util.Date getStartDate()
public void setStartDate(java.util.Date date)
date
- the date to start this jobpublic boolean getSendNotificationOnSuccessfulRun()
public void setSendNotificationOnSuccessfulRun(boolean sendNotification)
sendNotification
- true if the scheduler should send a notification message when this job was executed successfully, false otherwisepublic boolean getSendNotificationOnError()
public void setSendNotificationOnError(boolean sendNotification)
sendNotification
- true if the scheduler should send a notification message when an error occurred while executing this job, false otherwisepublic void setModuleUID(GUID uid)
uid
- module UIDpublic GUID getModuleUID()
public JPack getModulePreferences(PackListener listener)
listener
- the listener being notified if the configuration should be savedpublic void setModulePreferences(PackListener listener, JPack pack)
listener
- listener instance registered for changes when calling getModulePreferences(PackListener)
pack
- the preferences to storepublic boolean sameConfiguration(SchedulerJobConfiguration jobConfiguration)
jobConfiguration
- the configuration to check for equalitywww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.