Object

com.ubirch.avatar.core.device

DeviceHistoryManager

Related Doc: package device

Permalink

object DeviceHistoryManager extends MyJsonProtocol with StrictLogging

author: cvandrei since: 2016-09-30

Linear Supertypes
StrictLogging, Logging, MyJsonProtocol, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DeviceHistoryManager
  2. StrictLogging
  3. Logging
  4. MyJsonProtocol
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. def after(deviceId: UUID, after: DateTime): Future[Seq[DeviceHistory]]

    Permalink

    Search a device's history for all DeviceHistory after a given timestamp.

    Search a device's history for all DeviceHistory after a given timestamp.

    deviceId

    device whose history we query

    after

    search for messages after this timestamp

    returns

    results ordered by "timestamp desc"

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def before(deviceId: UUID, before: DateTime): Future[Seq[DeviceHistory]]

    Permalink

    Search a device's history for all DeviceHistory before a given timestamp.

    Search a device's history for all DeviceHistory before a given timestamp.

    deviceId

    device whose history we query

    before

    search for messages before this timestamp

    returns

    results ordered by "timestamp desc"

  7. def byDate(deviceId: UUID, from: DateTime, to: DateTime): Future[Seq[DeviceHistory]]

    Permalink

    Search a device's history for all DeviceHistory within a certain time interval.

    Search a device's history for all DeviceHistory within a certain time interval.

    deviceId

    device whose history we query

    from

    lower interval boundary (included in interval)

    to

    upper interval boundary (included in interval)

    returns

    results ordered by "timestamp desc"

  8. def byDay(deviceId: UUID, day: DateTime): Future[Seq[DeviceHistory]]

    Permalink

    Search a device's history for all DeviceHistory within a given day.

    Search a device's history for all DeviceHistory within a given day.

    deviceId

    device whose history we query

    day

    search for messages within this day

    returns

    results ordered by "timestamp desc"

  9. def clone(): AnyRef

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def history(messageId: UUID): Future[Option[DeviceHistory]]

    Permalink

    Query one raw data object

    Query one raw data object

    messageId

    unique which identifies one raw data object

    returns

    DeviceDataRaw or None

  16. def history(deviceId: String, from: Int = 0, size: Int = Config.esDefaultPageSize): Future[Seq[DeviceHistory]]

    Permalink

    Query the history of deviceDataHistory for a specified deviceId.

    Query the history of deviceDataHistory for a specified deviceId.

    deviceId

    id of the device for which we would like to get messages

    from

    paging parameter: skip the first x elements

    size

    paging parameter: return up to x elements

    returns

    results ordered by "timestamp desc"; empty if no messages were found

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. implicit def json4sJacksonFormats: Formats

    Permalink
    Definition Classes
    MyJsonProtocol
  19. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    StrictLogging → Logging
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. implicit val serialization: Serialization.type

    Permalink
    Definition Classes
    MyJsonProtocol
  24. def store(data: DeviceHistory): Future[Option[DeviceHistory]]

    Permalink

    Store a DeviceHistory.

    Store a DeviceHistory.

    data

    a device's processed data to store

    returns

    json of what we stored

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

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

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

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

Inherited from StrictLogging

Inherited from Logging

Inherited from MyJsonProtocol

Inherited from AnyRef

Inherited from Any

Ungrouped