constructr-akka-testing


License

License

Categories

Categories

Akka Container Microservices Reactive libraries
GroupId

GroupId

com.lightbend.constructr
ArtifactId

ArtifactId

constructr-akka-testing_2.12
Last Version

Last Version

0.4.1
Release Date

Release Date

Type

Type

jar
Description

Description

constructr-akka-testing
constructr-akka-testing
Project URL

Project URL

https://github.com/typesafehub/constructr-zookeeper
Project Organization

Project Organization

com.lightbend.constructr
Source Code Management

Source Code Management

https://github.com/typesafehub/constructr-zookeeper

Download constructr-akka-testing_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/com.lightbend.constructr/constructr-akka-testing_2.12/ -->
<dependency>
    <groupId>com.lightbend.constructr</groupId>
    <artifactId>constructr-akka-testing_2.12</artifactId>
    <version>0.4.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.lightbend.constructr/constructr-akka-testing_2.12/
implementation 'com.lightbend.constructr:constructr-akka-testing_2.12:0.4.1'
// https://jarcasting.com/artifacts/com.lightbend.constructr/constructr-akka-testing_2.12/
implementation ("com.lightbend.constructr:constructr-akka-testing_2.12:0.4.1")
'com.lightbend.constructr:constructr-akka-testing_2.12:jar:0.4.1'
<dependency org="com.lightbend.constructr" name="constructr-akka-testing_2.12" rev="0.4.1">
  <artifact name="constructr-akka-testing_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.lightbend.constructr', module='constructr-akka-testing_2.12', version='0.4.1')
)
libraryDependencies += "com.lightbend.constructr" % "constructr-akka-testing_2.12" % "0.4.1"
[com.lightbend.constructr/constructr-akka-testing_2.12 "0.4.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.4

test (8)

Group / Artifact Type Version
com.lightbend.constructr : constructr-coordination-zookeeper_2.12 jar 0.4.1
de.heikoseeberger : constructr_2.12 jar 0.18.0
com.typesafe.akka : akka-cluster_2.12 jar 2.5.1
com.typesafe.akka : akka-multi-node-testkit_2.12 jar 2.5.1
com.typesafe.akka : akka-testkit_2.12 jar 2.5.1
org.scalatest : scalatest_2.12 jar 3.0.1
com.whisk : docker-testkit-scalatest_2.12 jar 0.9.5
com.whisk : docker-testkit-impl-docker-java_2.12 jar 0.9.5

Project Modules

There are no modules declared in this project.

ConstructR-ZooKeeper

Build Status

This library enables to use ZooKeeper as cluster coordinator in a ConstructR based node.

ConstructR aims at cluster bootstrapping (construction) by using a coordination service and provides etcd as the default one. By means of this library, you will be able to use ZooKeeper as coordination service instead.

Installation

SBT

You will need to add the following dependency in your build.sbt in addition to the core ConstructR ones:

libraryDependencies += "com.lightbend.constructr" %% "constructr-coordination-zookeeper" % "0.4.0"
Gradle

Add following to build.gradle.

Scala 2.11
compile 'com.lightbend.constructr:constructr-coordination-zookeeper_2.11:0.4.0'
Scala 2.12
compile 'com.lightbend.constructr:constructr-coordination-zookeeper_2.12:0.4.0'

Configuration

Check this section in ConstructR for general information about configuration.

Check reference.conf for ZooKeeper related configuration.

Configuring ZK cluster nodes

The default configuration tries to establish a connection to ZooKeeper on localhost:2181.

Override the constructr.coordination.nodes configuration to specify another ZooKeeper node:

constructr.coordination.nodes = ["10.10.10.10:2181"]

The format per node ip:port.

You are also able to connect to a multi-node cluster by specifying multiple nodes, separated by a comma:

constructr.coordination.nodes = ["10.10.10.10:2181", "10.10.10.11:2181", "10.10.10.12:2181"]

Additionally, comma separated connection string format is supported

constructr.coordination.nodes = "10.10.10.10:2181,10.10.10.11:2181,10.10.10.12:2181"

Testing

Run tests:

$ sbt test
com.lightbend.constructr

Lightbend (Typesafe archive)

Archive of projects previously hosted under Typesafe; See the Lightbend organization for active projects

Versions

Version
0.4.1
0.4.0
0.3.5
0.3.3
0.3.2