Packages

c

org.thp.thehive.migration.th3

DBConfiguration

class DBConfiguration extends AnyRef

This class is a wrapper of ElasticSearch client from Elastic4s It builds the client using configuration (ElasticSearch addresses, cluster and index name) It add timed annotation in order to measure storage metrics

Annotations
@Singleton()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DBConfiguration
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DBConfiguration(config: Configuration, lifecycle: ApplicationLifecycle, version: Int, ec: ExecutionContext, actorSystem: ActorSystem)
    Annotations
    @Inject()

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. implicit val actorSystem: ActorSystem
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val client: ElasticClient

    Underlying ElasticSearch client

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. lazy val credentialsProviderMaybe: Option[CredentialsProvider]
  9. implicit val ec: ExecutionContext
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def execute[T, U](t: T)(implicit handler: Handler[T, U], manifest: Manifest[U]): Future[U]
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def httpClientConfig: HttpClientConfigCallback
  17. val indexName: String

    Name of the index, suffixed by the current version

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def previousVersion: DBConfiguration

    return a new instance of DBConfiguration that points to the previous version of the index schema

  23. def requestConfigCallback: RequestConfigCallback
  24. def sink[T](implicit builder: RequestBuilder[T]): Sink[T, Future[Unit]]

    Create a Sink (akka stream) that create entity in ElasticSearch

  25. def source(searchRequest: SearchRequest): Source[SearchHit, NotUsed]

    Creates a Source (akka stream) from the result of the search

  26. lazy val sslContextMaybe: Option[SSLContext]
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. val version: Int
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped