Skip to content

eclipse-uprotocol/up-java

Eclipse uProtocol Java Library

Overview

This is the uProtocol v1.6.0-alpha.5 Language Library for the Java programming language. The library is organized into packages that are described in SDK Packages below and organized by the layers of the protocol.

Each package folder contains a README.adoc file that describes the purpose of the package and how to use it.

Getting Started

Adding the Library

The library is available from [Maven Central](https://search.maven.org/artifact/org.eclipse.uprotocol/up-java) and can be added as a dependency to your Maven or Gradle project.

The following dependency needs to be added to your Maven POM file, setting `${uprotocol.version}` to the desired version of the library:
<dependency>
    <groupId>org.eclipse.uprotocol</groupId>
    <artifactId>up-java</artifactId>
    <version>${uprotocol.version}</version>
</dependency>

Using The Library

Table 1. SDK Packages
Package Purpose Reference

client

Top level client-facing interfaces to communication with USubscription, UDiscovery, and UTwin services.

Application Layer (uP-L3)

communication

Common implementation of communication messaging patterns (publisher, subscriber, RpcClient, RpcServer, etc..) that are built on top of the L1 transport interface (see below).

Communication Layer (uP-L2)

transport

Interface and data model for how to send() and receive() messages in a common way across various transport technologies (ex. zenoh, mqtt, http, etc…​). the interface is implemented by transports (ex. up-transport-android-java), and the interface is then used to build the uProtocol layer 2 communication layer implementation.

Transport Layer (uP-L1)

uuri

uProtocol addressing scheme (UUri) builders, validators, and serializers.

Basics

uuid

uProtocol unique identifier builders, validators, and serializers.

Basics

Building from Source

The library is built using the [Apache Maven](https://apache.org/maven) build system and is published to [Maven Central](https://search.maven.org/artifact/org.eclipse.uprotocol/up-java).
  1. Clone the repository:

    git clone --recurse-submodules https://github.com/eclipse-uprotocol/up-java.git
  2. Navigate to the project directory:

    cd up-java
  3. Build the project using Maven:

    mvn clean install

About

uProtocol Language Specific Library for Java

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 11