Class/Object

de.kaufhof.hajobs

JobStatusRepository

Related Docs: object JobStatusRepository | package hajobs

Permalink

class JobStatusRepository extends StatusWriter

Repository to manage job status in the database. Write and Read Methods can be called with Consitency Level LOCAL_QUORUM to get consistent Job data from Cassandra. This is necessary to prevent the JobSupervisor from setting Finished Jobs to Dead Jobs

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

Instance Constructors

  1. new JobStatusRepository(session: Session, ttl: FiniteDuration = 14.days, jobTypes: JobTypes)

    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 clear()(implicit ec: ExecutionContext): Future[Unit]

    Permalink
  6. def clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def get(jobType: JobType, jobId: UUID, withQuorum: Boolean = false)(implicit ec: ExecutionContext): Future[Option[JobStatus]]

    Permalink
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getJobHistory(jobType: JobType, jobId: UUID, withQuorum: Boolean = false)(implicit ec: ExecutionContext): Future[List[JobStatus]]

    Permalink

    Returns the history of saved JobStatus for a single job (each save/update for a job is a separate entry).

  13. def getLatestMetadata(readwithQuorum: Boolean = false)(implicit ec: ExecutionContext): Future[List[JobStatus]]

    Permalink

    Finds the latest job status entries for all jobs.

    Finds the latest job status entries for all jobs. Every JobState is loaded with a single select statement It is recommened to use partition keys if possible and avoid IN statement in WHERE clauses, therefore we prefer to execute more than one select statement

  14. def getMetadata(readwithQuorum: Boolean = false, limitByJobType: (JobType) ⇒ Int = ...)(implicit ec: ExecutionContext): Future[Map[JobType, List[JobStatus]]]

    Permalink

    Finds all job status entries for all jobs.

    Finds all job status entries for all jobs. Every JobState is loaded with a single select statement It is recommened to use partition keys if possible and avoid IN statement in WHERE clauses, therefore we prefer to execute more than one select statement

  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def list(jobType: JobType, limit: Int = 20, withQuorum: Boolean = false)(implicit ec: ExecutionContext): Future[List[JobStatus]]

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  21. def save(jobStatus: JobStatus)(implicit ec: ExecutionContext): Future[JobStatus]

    Permalink

    Saves a JobStatus (to the database or in memory for tests) and returns the saved object.

    Saves a JobStatus (to the database or in memory for tests) and returns the saved object.

    Definition Classes
    JobStatusRepositoryStatusWriter
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. def updateJobState(jobStatus: JobStatus, newState: JobState)(implicit ec: ExecutionContext): Future[JobStatus]

    Permalink
  25. final def wait(): Unit

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

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

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

Inherited from StatusWriter

Inherited from AnyRef

Inherited from Any

Ungrouped