From 64da33ff222387e2a3fc67e9c3fd891eacdd2d00 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 2 Mar 2023 00:45:21 +0100 Subject: [PATCH] Plug atomix into the build This adds the basics to plug in atomis into the build using the bare minimum of modifications. JIRA: CONTROLLER-2071 Change-Id: I92fe884f1ac44973c7ac0a9930be88f08b8d6643 Signed-off-by: Robert Varga --- artifacts/pom.xml | 12 +++++ pom.xml | 2 + third-party/atomix/pom.xml | 26 ++++++++++ third-party/atomix/storage/pom.xml | 35 +++++++++++--- .../io/atomix/storage/buffer/FileBytes.java | 4 +- third-party/atomix/utils/pom.xml | 48 ++++++++++++------- 6 files changed, 101 insertions(+), 26 deletions(-) create mode 100644 third-party/atomix/pom.xml diff --git a/artifacts/pom.xml b/artifacts/pom.xml index bac9da0ba5..26b7dd0f68 100644 --- a/artifacts/pom.xml +++ b/artifacts/pom.xml @@ -424,6 +424,18 @@ features xml + + + + ${project.groupId} + atomix-storage + ${project.version} + + + ${project.groupId} + atomix-utils + ${project.version} + diff --git a/pom.xml b/pom.xml index 3c2a2173e0..a008335772 100644 --- a/pom.xml +++ b/pom.xml @@ -37,6 +37,8 @@ opendaylight/config opendaylight/blueprint + + third-party/atomix diff --git a/third-party/atomix/pom.xml b/third-party/atomix/pom.xml new file mode 100644 index 0000000000..11adbd2393 --- /dev/null +++ b/third-party/atomix/pom.xml @@ -0,0 +1,26 @@ + + + 4.0.0 + + + org.opendaylight.odlparent + odlparent-lite + 12.0.3 + + + + org.opendaylight.controller + atomix + 7.0.5-SNAPSHOT + pom + + + true + true + + + + storage + utils + + diff --git a/third-party/atomix/storage/pom.xml b/third-party/atomix/storage/pom.xml index 326c021e96..fa3145c91f 100644 --- a/third-party/atomix/storage/pom.xml +++ b/third-party/atomix/storage/pom.xml @@ -1,5 +1,6 @@ + true + + + + diff --git a/third-party/atomix/storage/src/main/java/io/atomix/storage/buffer/FileBytes.java b/third-party/atomix/storage/src/main/java/io/atomix/storage/buffer/FileBytes.java index 326e8eda86..8784d2407d 100644 --- a/third-party/atomix/storage/src/main/java/io/atomix/storage/buffer/FileBytes.java +++ b/third-party/atomix/storage/src/main/java/io/atomix/storage/buffer/FileBytes.java @@ -162,7 +162,7 @@ public class FileBytes extends AbstractBytes { /** * Maps a portion of the randomAccessFile into memory in {@link FileChannel.MapMode#READ_WRITE} mode and returns - * a {@link UnsafeMappedBytes} instance. + * a {@link MappedBytes} instance. * * @param offset The offset from which to map the randomAccessFile into memory. * @param size The count of the bytes to map into memory. @@ -175,7 +175,7 @@ public class FileBytes extends AbstractBytes { } /** - * Maps a portion of the randomAccessFile into memory and returns a {@link UnsafeMappedBytes} instance. + * Maps a portion of the randomAccessFile into memory and returns a {@link MappedBytes} instance. * * @param offset The offset from which to map the randomAccessFile into memory. * @param size The count of the bytes to map into memory. diff --git a/third-party/atomix/utils/pom.xml b/third-party/atomix/utils/pom.xml index 6867591f2d..2ec2997f30 100644 --- a/third-party/atomix/utils/pom.xml +++ b/third-party/atomix/utils/pom.xml @@ -1,5 +1,6 @@ + true + + + + -- 2.36.6