de.kaufhof.hajobs

JobManager

class JobManager extends AnyRef

A JobManager is responsible for running jobs. It creates the infrastructure, checks locking etc. for job running

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JobManager
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JobManager(jobs: Seq[Job], lockRepo: LockRepository, jobStatusRepo: JobStatusRepository, actorSystem: ActorSystem, sched: Scheduler = JobManager.createScheduler, enableJobScheduling: Boolean = true, schedulesTimeZone: TimeZone = TimeZone.getTimeZone("UTC"))

  2. new JobManager(managedJobs: ⇒ Jobs, lockRepo: LockRepository, jobStatusRepo: JobStatusRepository, actorSystem: ActorSystem, scheduler: Scheduler, enableJobScheduling: Boolean, schedulesTimeZone: TimeZone)

    managedJobs

    all the jobs the manager knows and may manage. Jobs are defined lazy, so that the jobs map can contain jobs that themselves need the JobManager (allow cyclic dependencies)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def allJobStatus(jobType: JobType, limit: Int = 20): Future[List[JobStatus]]

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def cancelJob(jobType: JobType): Unit

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  14. def getJob(jobType: JobType): Job

  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. def init(): Unit

    Attributes
    protected
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def jobStatus(jobType: JobType, jobId: UUID): Future[Option[JobStatus]]

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def retriggerJob(jobType: JobType, triggerId: UUID): Future[JobStartStatus]

    Restarts a job for specified trigger id.

    Restarts a job for specified trigger id. Part of (re-)starting a job is locking for that job and managing the lifecycle of the KeepLockActor. So the this method does the following: - Acquire and release the lock for the job - Trigger in case of success the job - Starting and stopping the KeepJobLockActor

    jobType

    JobType of the job to start

    triggerId

    Trigger Id to restart

    returns

    StartStatus, f.e. Started if job could be started or LockedStatus if job is already running.

  23. def scheduleJob(jobToSchedule: Job): Unit

    Attributes
    protected
  24. def scheduleJobs: Unit

    Attributes
    protected
  25. def shutdown(): Unit

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

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. def triggerJob(jobType: JobType): Future[JobStartStatus]

    Start a job

    Start a job

    jobType

    JobType of the job to start

    returns

    StartStatus, f.e. Started if job could be started or LockedStatus if job is already running

  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped