Packages

final class EventTestKit extends RedisStore

EventTestKit supports starting Alarm server using embedded redis internally (sentinel + master) and registering it with location service

Example:

private val testKit = EventTestKit()

// starting event server (start sentinel on port 6379 and master on port 6378)
// it will also register EventService with location service
testKit.startEventService(sentinelPort = 6379, serverPort = 6378)

// stopping event server
testKit.shutdownEventService()
Linear Supertypes
RedisStore, EmbeddedRedis, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventTestKit
  2. RedisStore
  3. EmbeddedRedis
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. lazy val connection: TcpConnection
    Attributes
    protected
    Definition Classes
    EventTestKit → RedisStore
  7. implicit lazy val ec: ExecutionContext
    Definition Classes
    RedisStore
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. lazy val masterId: String
    Attributes
    protected
    Definition Classes
    EventTestKit → RedisStore
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. def shutdown(): Unit
    Definition Classes
    RedisStore
  18. def shutdownEventService(): Unit

    Shutdown Event service

    Shutdown Event service

    When the test has completed, make sure you shutdown event service. This will terminate actor system and stop redis sentinel and redis server.

  19. def start(sentinelPort: Optional[Int], serverPort: Optional[Int]): Unit
    Definition Classes
    RedisStore
  20. def start(sentinelPort: Int = getFreePort, serverPort: Int = getFreePort, keyspaceEvent: Boolean = false): RegistrationResult
    Definition Classes
    RedisStore
  21. def startEventService(sentinelPort: Optional[Int], serverPort: Optional[Int]): Unit

    Java API to Start Event service

    Java API to Start Event service

    It will start redis sentinel and redis server on provided ports and then register's event service with location service

  22. def startEventService(sentinelPort: Int = getSentinelPort, serverPort: Int = getMasterPort): RegistrationResult

    Scala API to Start Event service

    Scala API to Start Event service

    It will start redis sentinel and redis server on provided ports and then register's event service with location service

  23. def startSentinel(sentinelPort: Int = getFreePort, serverPort: Int = getFreePort, masterId: String, keyspaceEvent: Boolean): (RedisSentinel, RedisServer)
    Definition Classes
    EmbeddedRedis
  24. def stopRedis(): Unit
    Definition Classes
    RedisStore
  25. def stopSentinel(redisSentinel: RedisSentinel, redisServer: RedisServer): Unit
    Definition Classes
    EmbeddedRedis
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. implicit val system: ActorSystem[_]
    Definition Classes
    EventTestKit → RedisStore
  28. implicit lazy val timeout: Timeout
    Definition Classes
    EventTestKit → RedisStore
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. implicit lazy val untypedSystem: ActorSystem
    Definition Classes
    RedisStore
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from RedisStore

Inherited from EmbeddedRedis

Inherited from AnyRef

Inherited from Any

Ungrouped