Class: SchedulePlugin
A plugin for managing scheduled jobs.
Extends
Constructors
Constructor
new SchedulePlugin(
logger,jobGenerator,injector):SchedulePlugin
Parameters
logger
jobGenerator
injector
Returns
SchedulePlugin
Overrides
Properties
options?
protectedoptionaloptions?:PluginOptions
Inherited from
state
protectedstate:PluginLifecycle
Inherited from
stateError?
protectedoptionalstateError?:Error
Inherited from
dependencies?
readonlystaticoptionaldependencies?: (PluginType<Plugin> | {optional:boolean;plugin:PluginType; })[]
Inherited from
Methods
getState()
getState():
PluginLifecycle
Retrieves the current lifecycle state of the plugin.
Returns
The current lifecycle state of the plugin.
Inherited from
getStateError()
getStateError():
Error|undefined
Retrieves the error state of the plugin, if any.
Returns
Error | undefined
The error that caused the plugin to enter the error state, or undefined if no error occurred.
Inherited from
onRegister()
onRegister(
context):Promise<void>
Lifecycle method called when the plugin is registered.
Parameters
context
The AxiSparkContext to be passed to the plugin during registration.
Returns
Promise<void>
Overrides
onStart()
onStart():
Promise<void>
Lifecycle method called when the plugin is started.
Returns
Promise<void>
Overrides
onStop()
onStop():
Promise<void>
Lifecycle method called when the plugin is stopped.
Returns
Promise<void>
Overrides
setState()
setState(
state):void
Sets the lifecycle state of the plugin.
Parameters
state
The new lifecycle state of the plugin.
Returns
void
Inherited from
setStateError()
setStateError(
error):void
Sets the error state of the plugin.
Parameters
error
Error
The error that caused the plugin to enter the error state.
Returns
void