Giter Club home page Giter Club logo

registry-pulsar-plugin's Introduction

Registry Pulsar Plugin

Pulsar notification plugin for the Linked Data Registry.

Installation

To build the project, run mvn clean package. This will produce a set of JAR files in the target directory.

To install the plugin without dependencies, add the registry-pulsar-plugin-{version}.jar JAR to your LD registry deployment. In Tomcat, you can do this by adding the JAR and any missing dependencies to the WEB-INF/lib directory of the registry webapp. The full set of dependencies can be found in the target/lib directory after packaging.

To install the plugin with dependencies, add the registry-pulsar-plugin-{version}-jar-with-dependencies.jar JAR to the WEB-INF/lib directory of the registry webapp.

Alternatively, you can create a new web app which extends the registry with the plugin functionality. You should build the new WAR using a Maven project which has the registry-core WAR, classes and registry-pulsar-plugin artifacts as dependencies. See here for an example of such a project.

Example

<dependency>
    <groupId>com.github.ukgovld</groupId>
    <artifactId>registry-core</artifactId>
    <version>2.3.15</version>
    <type>war</type>
</dependency>
<dependency>
    <groupId>com.github.ukgovld</groupId>
    <artifactId>registry-core</artifactId>
    <version>2.3.15</version>
    <classifier>classes</classifier>
</dependency>
<dependency>
    <groupId>com.github.ukgovld</groupId>
    <artifactId>registry-pulsar-plugin</artifactId>
    <version>1.0.0</version>
</dependency>

Configuration

The Pulsar plugin is configured by the registry's app.conf configuration file. The PulsarNotificationAgent class implements the NotificationAgent interface, and can be supplied to the agent property on the standard RegistryMonitor instance defined in the configuration file, in the same way as the registry's built-in notification agents.

See here for documentation on how to configure the standard monitoring and notification components.

Pulsar Configuration

You can configure the Pulsar connection by defining a ClientConfigurationData instance in your app.conf. This must specify the serviceUrl at least, but all of the properties listed in the Javadoc are supported.

To authenticate the registry client with your Pulsar server, use the authPluginClassName and authParams properties. The values of these properties will depend on your choice of authentication system. Use these Java examples as a guide.

Example

pulsarConfig = org.apache.pulsar.client.impl.conf.ClientConfigurationData
pulsarConfig.serviceUrl = pulsar://localhost:6650

pulsar = com.epimorphics.registry.notification.PulsarNotificationAgent
pulsar.config = $pulsarConfig

monitorConfig = com.epimorphics.registry.notification.MonitorRegister
monitorConfig.defaultTopic = ldregistry

monitor = com.epimorphics.registry.notification.RegistryMonitor
monitor.agent = $pulsar
monitor.config = $monitorConfig

registry-pulsar-plugin's People

Contributors

simonoakesepimorphics avatar

Watchers

 avatar  avatar  avatar

registry-pulsar-plugin's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.