test

Testing helpers for writing unit tests that use Apache ZooKeeper and Netflix's Curator.

Группа

Группа

com.bazaarvoice.curator
Идентификатор

Идентификатор

test
Последняя версия

Последняя версия

2.1.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

test
Testing helpers for writing unit tests that use Apache ZooKeeper and Netflix's Curator.

Скачать test

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.bazaarvoice.curator/test/ -->
<dependency>
    <groupId>com.bazaarvoice.curator</groupId>
    <artifactId>test</artifactId>
    <version>2.1.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.bazaarvoice.curator/test/
implementation 'com.bazaarvoice.curator:test:2.1.2'
// https://jarcasting.com/artifacts/com.bazaarvoice.curator/test/
implementation ("com.bazaarvoice.curator:test:2.1.2")
'com.bazaarvoice.curator:test:jar:2.1.2'
<dependency org="com.bazaarvoice.curator" name="test" rev="2.1.2">
  <artifact name="test" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.bazaarvoice.curator', module='test', version='2.1.2')
)
libraryDependencies += "com.bazaarvoice.curator" % "test" % "2.1.2"
[com.bazaarvoice.curator/test "2.1.2"]

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
org.apache.curator : curator-framework jar 4.2.0
org.apache.curator : curator-test jar 2.12.0
com.google.guava : guava jar 28.0-jre
junit : junit jar 4.13

Модули Проекта

Данный проект не имеет модулей.

curator-extensions

Helpers that extend the functionality of curator.

New Recipes

<dependency>
    <groupId>com.bazaarvoice.curator</groupId>
    <artifactId>recipes</artifactId>
</dependency>

PersistentEphemeralNode

Ensures that as long as you have a connection to ZooKeeper that your ephemeral node stays around.

This recipe prevents node loss from:

  • connection and session interruptions
  • accidental deletion

NodeDiscovery

Works on top of PathChildrenCache to automatically parse the data portion of the node and notify listeners. See NodeDiscovery.NodeDataParser and NodeDiscovery.NodeListener for more info.

Easy Dropwizard Integration

<dependency>
    <groupId>com.bazaarvoice.curator</groupId>
    <artifactId>dropwizard</artifactId>
</dependency>
public class SampleConfiguration extends Configuration {
    @Valid
    @NotNull
    @JsonProperty("zooKeeper")
    private ZooKeeperConfiguration _zooKeeperConfiguration = new ZooKeeperConfiguration();

    public ZooKeeperConfiguration getZooKeeperConfiguration() {
        return _zooKeeperConfiguration;
    }
}

public class SampleService extends Service<SampleConfiguration> {
    public static void main(String[] args) throws Exception {
        new SampleService().run(args);
    }

    @Override
    public void initialize(... bootstrap) {
       // ...
    }

    @Override
    public void run(SampleConfiguration cfg, Environment env) {
        CuratorFramework curator = cfg.getZooKeeperConfiguration().newManagedCurator(env.lifecycle());

        environment..healthChecks().register("curator", new CuratorHealthCheck(curator));
    }
}
com.bazaarvoice.curator

Bazaarvoice

Версии библиотеки

Версия
2.1.2
2.1.1
2.1.0
2.0.1
2.0.0
1.5.2
1.5.1
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.2
1.3.1
1.2.1
1.2.0
1.1.1
1.1.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0