curator-extensions

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

GroupId

GroupId

com.bazaarvoice.curator
ArtifactId

ArtifactId

curator-extensions
Last Version

Last Version

2.1.2
Release Date

Release Date

Type

Type

pom
Description

Description

curator-extensions
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Source Code Management

Source Code Management

https://github.com/bazaarvoice/curator-extensions

Download curator-extensions

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • core
  • dropwizard
  • recipes
  • test

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