Skip to content

eclipse-uprotocol/up-java

Eclipse uProtocol Java Library

Overview

This is the uProtocol v1.6.0-alpha.4 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 contains a README.adoc file that describes the purpose of the package and how to use it.

The module contains the factory methods, serializers, and validators for all data types defined in the specifications, and any data models that either haven’t or couldn’t be defined in up-core-api yet.

Getting Started

Importing the Library

To pull the Library from maven central, setting ${uprotocol.version} to the latest version of this library in your pom.xml file:

<!-- uProtocol Core -->
<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

  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

Languages