recipes

Additional recipes built on top of Netflix's Curator.

GroupId

GroupId

com.bazaarvoice.curator
ArtifactId

ArtifactId

recipes
Last Version

Last Version

2.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

recipes
Additional recipes built on top of Netflix's Curator.

Download recipes

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.curator : curator-recipes jar 4.2.0
org.apache.zookeeper : zookeeper jar 3.5.6
com.google.guava : guava jar 28.0-jre

test (3)

Group / Artifact Type Version
com.bazaarvoice.curator : test jar 2.1.2
junit : junit jar 4.13
org.slf4j : slf4j-simple jar 1.7.26

Project Modules

There are no modules declared in this project.

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

Versions

Version
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