dropwizard

Helpers for making it easier to use Curator in a Dropwizard application.

Категории

Категории

DropWizard Контейнер Микросервисы
Группа

Группа

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

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

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

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

2.1.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

dropwizard
Helpers for making it easier to use Curator in a Dropwizard application.

Скачать dropwizard

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

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

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
com.bazaarvoice.curator : core jar 2.1.2
com.google.guava : guava jar 28.0-jre
org.apache.curator : curator-framework jar 4.2.0
io.dropwizard : dropwizard-core jar 1.3.17
com.fasterxml.jackson.datatype : jackson-datatype-jdk8 jar 2.10.2

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.13
org.mockito : mockito-core jar 3.2.4

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

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

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