Class/Object

com.typesafe.akka.extension.quartz

QuartzSchedulerExtension

Related Docs: object QuartzSchedulerExtension | package quartz

Permalink

class QuartzSchedulerExtension extends Extension

Note that this extension will only be instantiated *once* *per actor system*.

Linear Supertypes
Extension, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QuartzSchedulerExtension
  2. Extension
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QuartzSchedulerExtension(system: ExtendedActorSystem)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def cancelJob(name: String): Boolean

    Permalink

    Cancels the running job and all associated triggers

    Cancels the running job and all associated triggers

    name

    The name of the job, as defined in the schedule

    returns

    Success or Failure in a Boolean

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val config: Config

    Permalink
    Attributes
    protected
  8. def createJobSchedule(name: String, receiver: ActorRef, msg: AnyRef, description: Option[String] = None, cronExpression: String, calendar: Option[String] = None, timezone: TimeZone = defaultTimezone): Date

    Permalink

    Creates job, associated triggers and corresponding schedule at once.

    Creates job, associated triggers and corresponding schedule at once.

    name

    The name of the job, as defined in the schedule

    receiver

    An ActorRef, who will be notified each time the schedule fires

    msg

    A message object, which will be sent to receiver each time the schedule fires

    description

    A string describing the purpose of the job

    cronExpression

    A string with the cron-type expression

    calendar

    An optional calendar to use.

    timezone

    The time zone to use if different from default.

    returns

    A date which indicates the first time the trigger will fire.

  9. def createSchedule(name: String, description: Option[String] = None, cronExpression: String, calendar: Option[String] = None, timezone: TimeZone = defaultTimezone): Unit

    Permalink

    Create a schedule programmatically (must still be scheduled by calling 'schedule')

    Create a schedule programmatically (must still be scheduled by calling 'schedule')

    name

    A String identifying the job

    description

    A string describing the purpose of the job

    cronExpression

    A string with the cron-type expression

    calendar

    An optional calendar to use.

  10. val daemonThreads_?: Boolean

    Permalink
  11. val defaultTimezone: TimeZone

    Permalink
  12. def deleteJobSchedule(name: String): Boolean

    Permalink

    Deletes job, associated triggers and corresponding schedule at once.

    Deletes job, associated triggers and corresponding schedule at once.

    Remark: Identical to unscheduleJob. Exists to provide consistent naming of related JobSchedule operations.

    name

    The name of the job, as defined in the schedule

    returns

    Success or Failure in a Boolean

  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. def initialiseCalendars(): Unit

    Permalink

    Parses calendar configurations, creates Calendar instances and attaches them to the scheduler

    Parses calendar configurations, creates Calendar instances and attaches them to the scheduler

    Attributes
    protected
  19. def isInStandbyMode: Boolean

    Permalink
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def isStarted: Boolean

    Permalink
  22. lazy val jobStore: JobStore

    Permalink
    Attributes
    protected
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def nextTrigger(name: String): Option[Date]

    Permalink

    Returns the next Date a schedule will be fired

  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def rescheduleJob(name: String, receiver: ActorRef, msg: AnyRef, description: Option[String] = None, cronExpression: String, calendar: Option[String] = None, timezone: TimeZone = defaultTimezone): Date

    Permalink

    Reschedule a job

    Reschedule a job

    name

    A String identifying the job

    receiver

    An ActorRef, who will be notified each time the schedule fires

    msg

    A message object, which will be sent to receiver each time the schedule fires

    description

    A string describing the purpose of the job

    cronExpression

    A string with the cron-type expression

    calendar

    An optional calendar to use.

    returns

    A date which indicates the first time the trigger will fire.

  28. def resumeAll(): Unit

    Permalink

    Unpauses all jobs in the scheduler

  29. def resumeJob(name: String): Boolean

    Permalink

    Attempts to resume (un-pause) the given job

    Attempts to resume (un-pause) the given job

    name

    The name of the job, as defined in the schedule

    returns

    Success or Failure in a Boolean

  30. val runningJobs: Map[String, JobKey]

    Permalink
  31. def schedule(name: String, receiver: EventStream, msg: AnyRef, startDate: Option[Date]): Date

    Permalink

    Schedule a job, whose named configuration must be available

    Schedule a job, whose named configuration must be available

    name

    A String identifying the job, which must match configuration

    receiver

    An EventStream, who will be published to each time the schedule fires

    msg

    A message object, which will be published to receiver each time the schedule fires

    returns

    A date which indicates the first time the trigger will fire.

  32. def schedule(name: String, receiver: ActorSelection, msg: AnyRef, startDate: Option[Date]): Date

    Permalink

    Schedule a job, whose named configuration must be available

    Schedule a job, whose named configuration must be available

    name

    A String identifying the job, which must match configuration

    receiver

    An ActorSelection, who will be notified each time the schedule fires

    msg

    A message object, which will be sent to receiver each time the schedule fires

    returns

    A date which indicates the first time the trigger will fire.

  33. def schedule(name: String, receiver: ActorRef, msg: AnyRef, startDate: Option[Date]): Date

    Permalink

    Schedule a job, whose named configuration must be available

    Schedule a job, whose named configuration must be available

    name

    A String identifying the job, which must match configuration

    receiver

    An ActorRef, who will be notified each time the schedule fires

    msg

    A message object, which will be sent to receiver each time the schedule fires

    returns

    A date which indicates the first time the trigger will fire.

  34. def schedule(name: String, receiver: EventStream, msg: AnyRef): Date

    Permalink

    Schedule a job, whose named configuration must be available

    Schedule a job, whose named configuration must be available

    name

    A String identifying the job, which must match configuration

    receiver

    An EventStream, who will be published to each time the schedule fires

    msg

    A message object, which will be published to receiver each time the schedule fires

    returns

    A date which indicates the first time the trigger will fire.

  35. def schedule(name: String, receiver: ActorSelection, msg: AnyRef): Date

    Permalink

    Schedule a job, whose named configuration must be available

    Schedule a job, whose named configuration must be available

    name

    A String identifying the job, which must match configuration

    receiver

    An ActorSelection, who will be notified each time the schedule fires

    msg

    A message object, which will be sent to receiver each time the schedule fires

    returns

    A date which indicates the first time the trigger will fire.

  36. def schedule(name: String, receiver: ActorRef, msg: AnyRef): Date

    Permalink

    Schedule a job, whose named configuration must be available

    Schedule a job, whose named configuration must be available

    name

    A String identifying the job, which must match configuration

    receiver

    An ActorRef, who will be notified each time the schedule fires

    msg

    A message object, which will be sent to receiver each time the schedule fires

    returns

    A date which indicates the first time the trigger will fire.

  37. def scheduleJob(name: String, receiver: AnyRef, msg: AnyRef, startDate: Option[Date])(schedule: QuartzSchedule): Date

    Permalink

    Creates the actual jobs for Quartz, and setups the Trigger, etc.

    Creates the actual jobs for Quartz, and setups the Trigger, etc.

    returns

    A date, which indicates the first time the trigger will fire.

    Attributes
    protected
  38. lazy val scheduler: Scheduler

    Permalink
    Attributes
    protected
  39. def schedulerName: String

    Permalink
  40. var schedules: Map[String, QuartzSchedule]

    Permalink

    Parses job and trigger configurations, preparing them for any code request of a matching job.

    Parses job and trigger configurations, preparing them for any code request of a matching job. In our world, jobs and triggers are essentially 'merged' - our scheduler is built around triggers and jobs are basically 'idiot' programs who fire off messages.

    RECAST KEY AS UPPERCASE TO AVOID RUNTIME LOOKUP ISSUES

  41. def shutdown(waitForJobsToComplete: Boolean = false): Unit

    Permalink

    Shutdown the scheduler manually.

    Shutdown the scheduler manually. The scheduler cannot be re-started.

    waitForJobsToComplete

    wait for jobs to complete? default to false

  42. def standby(): Unit

    Permalink

    Puts the Scheduler in 'standby' mode, temporarily halting firing of triggers.

    Puts the Scheduler in 'standby' mode, temporarily halting firing of triggers. Resumable by running 'start'

  43. def start(): Boolean

    Permalink

    Starts up the scheduler.

    Starts up the scheduler. This is typically used from userspace only to restart a scheduler in standby mode.

    returns

    True if calling this function resulted in the starting of the scheduler; false if the scheduler was already started.

  44. def suspendAll(): Unit

    Permalink

    Suspends (pauses) all jobs in the scheduler

  45. def suspendJob(name: String): Boolean

    Permalink

    Attempts to suspend (pause) the given job

    Attempts to suspend (pause) the given job

    name

    The name of the job, as defined in the schedule

    returns

    Success or Failure in a Boolean

  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. val threadCount: Int

    Permalink
  48. lazy val threadPool: SimpleThreadPool

    Permalink
    Attributes
    protected
  49. val threadPriority: Int

    Permalink
  50. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  51. def unscheduleJob(name: String): Boolean

    Permalink

    Unschedule an existing schedule

    Unschedule an existing schedule

    Cancels the running job and all associated triggers and removes corresponding schedule entry from internal schedules map.

    name

    The name of the job, as defined in the schedule

    returns

    Success or Failure in a Boolean

  52. def updateJobSchedule(name: String, receiver: ActorRef, msg: AnyRef, description: Option[String] = None, cronExpression: String, calendar: Option[String] = None, timezone: TimeZone = defaultTimezone): Date

    Permalink

    Updates job, associated triggers and corresponding schedule at once.

    Updates job, associated triggers and corresponding schedule at once.

    name

    The name of the job, as defined in the schedule

    receiver

    An ActorRef, who will be notified each time the schedule fires

    msg

    A message object, which will be sent to receiver each time the schedule fires

    description

    A string describing the purpose of the job

    cronExpression

    A string with the cron-type expression

    calendar

    An optional calendar to use.

    timezone

    The time zone to use if different from default.

    returns

    A date which indicates the first time the trigger will fire.

  53. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Extension

Inherited from AnyRef

Inherited from Any

Ungrouped