de.kaufhof.hajobs

JobManager

Related Docs: object JobManager | package hajobs

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: Any): Boolean

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

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

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

  5. final def asInstanceOf[T0]: T0

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

  7. def clone(): AnyRef

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

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

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

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

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

  13. def hashCode(): Int

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

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

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

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

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

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

    Definition Classes
    AnyRef
  20. 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.

  21. def scheduleJob(jobToSchedule: Job): Unit

    Attributes
    protected
  22. def scheduleJobs: Unit

    Attributes
    protected
  23. def shutdown(): Unit

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

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. 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

  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped