Class

com.pagerduty.eris

ClusterCtx

Related Doc: package eris

Permalink

class ClusterCtx extends AnyRef

Cluster context combines all the Astyanax configuration as well as provides startup() and shutdown() methods.

The following example will help you setup connection to a locally running cassandra instance:

val clusterCtx = new ClusterCtx(
  clusterName = "CassCluster",
  astyanaxConfig = new AstyanaxConfigurationImpl()
    .setDiscoveryType(NodeDiscoveryType.RING_DESCRIBE),
  connectionPoolConfig = new ConnectionPoolConfigurationImpl("CassConnectionPool")
    .setSeeds("localhost:9160")
    .setPort(9160),
  connectionPoolMonitor = new CountingConnectionPoolMonitor()
)
val cluster = clusterCtx.cluster
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ClusterCtx
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ClusterCtx(clusterName: String, astyanaxConfig: AstyanaxConfigurationImpl, connectionPoolConfig: ConnectionPoolConfigurationImpl, connectionPoolMonitor: ConnectionPoolMonitor)

    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. val astyanaxConfig: AstyanaxConfigurationImpl

    Permalink
    Attributes
    protected
  6. lazy val astyanaxCtx: AstyanaxContext[Cluster]

    Permalink

    Combines all the configs to create AstyanaxContext.

    Combines all the configs to create AstyanaxContext. Can be overridden for further customization.

    Attributes
    protected
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. lazy val cluster: Cluster

    Permalink

    Starts the Astyanax cluster and returns the running cluster instance.

  9. val clusterName: String

    Permalink
  10. val connectionPoolConfig: ConnectionPoolConfigurationImpl

    Permalink
    Attributes
    protected
  11. val connectionPoolMonitor: ConnectionPoolMonitor

    Permalink
    Attributes
    protected
  12. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  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 shutdown(): Unit

    Permalink

    Gracefully shuts down all the thread pools.

  22. def start(): Unit

    Permalink

    Starts the connection pool and other thread pools.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  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 AnyRef

Inherited from Any

Ungrouped