services

PostgresPlugin

class PostgresPlugin extends Plugin

Postgres connection and simple geoindex methods.

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

Instance Constructors

  1. new PostgresPlugin(application: Application)

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 addDatapoint(start: Date, end: Option[Date], geoType: String, data: String, geojson: JsValue, stream_id: String): Option[String]

  7. def addDatapoints(datapoints: List[(String, Option[String], String, JsValue, JsValue)], stream_id: String): Option[String]

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. var conn: Connection

  11. def connect(): Unit

  12. def counts(): (Int, Int, Int)

  13. def createSensor(name: String, geoType: String, geojson: JsValue, metadata: String): Option[String]

  14. def createStream(name: String, geotype: String, geojson: JsValue, metadata: String, sensor_id: String): Option[String]

  15. def deleteDatapoint(gid: Integer): Boolean

  16. def deleteSensor(id: Integer): Boolean

  17. def deleteStream(id: Integer): Boolean

  18. def dropAll(): Boolean

  19. lazy val enabled: Boolean

    Definition Classes
    PostgresPlugin → Plugin
  20. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  22. def filterProperties(obj: JsObject, attributes: List[String]): JsObject

  23. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  25. def getDashboardSensorURLs(ids: List[String]): List[(String, String)]

    Retrieve links for sensor pages on da

    Retrieve links for sensor pages on da

    ids

    sensor ids

    returns

    a list of tuples, first element is sensor name, second is sensor url on dashboard

  26. def getDatapoint(id: String): Option[String]

  27. def getSensor(id: String): Option[String]

  28. def getSensorStats(id: String): Option[String]

  29. def getSensorStreams(id: String): Option[String]

  30. def getStream(id: String): Option[String]

  31. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  32. def isEnabled(): Boolean

  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. def listSensors(): Unit

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

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

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

    Definition Classes
    AnyRef
  38. def onStart(): Unit

    Definition Classes
    PostgresPlugin → Plugin
  39. def onStop(): Unit

    Definition Classes
    PostgresPlugin → Plugin
  40. def patchStreamMetadata(id: String, data: String): Option[String]

    Operates like the HTTP PATCH method, but uses HTTP PUT.

    Operates like the HTTP PATCH method, but uses HTTP PUT. PUT typically replaces everything in the field getting updated PATCH typically only modifies the changes you pass in This will not delete any values in metadata, even if a single tree of a nested object is passed, all siblings will remain.

    id

    stream id [String]

    data

    to be updated [JsValue]

    returns

    returns the entire stream response with updated values from getStream(id)

  41. def searchDatapoints(since: Option[String], until: Option[String], geocode: Option[String], stream_id: Option[String], sensor_id: Option[String], source: List[String], attributes: List[String], sortByStation: Boolean): Iterator[JsObject]

  42. def searchDatapointsGeoJson(since: Option[String], until: Option[String], geojson: Option[String], stream_id: Option[String], sensor_id: Option[String], source: List[String], attributes: List[String], sortByStation: Boolean): Iterator[JsObject]

  43. def searchSensors(geocode: Option[String], sensor_name: Option[String]): Option[String]

  44. def searchSensorsGeoJson(geojson: Option[String], sensor_name: Option[String]): Option[String]

  45. def searchStreams(geocode: Option[String], stream_name: Option[String]): Option[String]

  46. def searchStreamsGeoJson(geojson: Option[String], stream_name: Option[String]): Option[String]

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

    Definition Classes
    AnyRef
  48. def test(): Unit

  49. def toString(): String

    Definition Classes
    AnyRef → Any
  50. def updateDatabase(): Unit

  51. def updateEmptyStats(): Unit

  52. def updateSensorGeometry(id: String, geom: String): Option[String]

  53. def updateSensorMetadata(id: String, data: String): Option[String]

  54. def updateSensorStats(sensor_id: Option[String]): Unit

  55. def updateStreamStats(stream_id: Option[String]): Unit

  56. def verifyConnection(retry: Boolean = true): Boolean

    Return true if psql connection is valid, or if reconnection succeeds.

    Return true if psql connection is valid, or if reconnection succeeds. Otherwise return false.

  57. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Plugin

Inherited from AnyRef

Inherited from Any

Ungrouped