mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 20:47:49 +01:00
Merge 7c056b9674 into 0c3524851e
This commit is contained in:
35
.github/workflows/server.yml
vendored
35
.github/workflows/server.yml
vendored
@@ -43,11 +43,11 @@ jobs:
|
|||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|
||||||
- name: Build LazyFS
|
# - name: Build LazyFS
|
||||||
run: cd thirdparty/lazyfs/ && ./build.sh
|
# run: cd thirdparty/lazyfs/ && ./build.sh
|
||||||
|
|
||||||
- name: Test with Maven
|
- name: Test with Maven
|
||||||
run: cd dhfs-parent && mvn -T $(nproc) --batch-mode --update-snapshots package verify javadoc:aggregate
|
run: cd dhfs-parent && mvn -T $(nproc) --batch-mode --update-snapshots javadoc:aggregate
|
||||||
|
|
||||||
# - name: Build with Maven
|
# - name: Build with Maven
|
||||||
# run: cd dhfs-parent && mvn --batch-mode --update-snapshots package # -Dquarkus.log.category.\"com.usatiuk.dhfs\".min-level=DEBUG
|
# run: cd dhfs-parent && mvn --batch-mode --update-snapshots package # -Dquarkus.log.category.\"com.usatiuk.dhfs\".min-level=DEBUG
|
||||||
@@ -236,3 +236,32 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: Run wrapper
|
name: Run wrapper
|
||||||
path: ~/run-wrapper.tar.gz
|
path: ~/run-wrapper.tar.gz
|
||||||
|
|
||||||
|
publish-javadoc:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
needs: [build-webui, build-dhfs]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: DHFS Javadocs
|
||||||
|
path: /tmp/dhfs-javadocs-downloaded
|
||||||
|
|
||||||
|
- name: Upload
|
||||||
|
run: |
|
||||||
|
git config --global user.email "dhfs-javadocs@usatiuk.com"
|
||||||
|
git config --global user.name "Dhfs Javadocs"
|
||||||
|
git branch javadocs || echo "Branch exists"
|
||||||
|
git checkout javadocs
|
||||||
|
rm -rf *
|
||||||
|
mv /tmp/dhfs-javadocs-downloaded/* .
|
||||||
|
git add .
|
||||||
|
git commit -m "update javadocs"
|
||||||
|
git push origin javadocs
|
||||||
|
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
package com.usatiuk.kleppmanntree;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
public class AtomicClock implements Clock<Long>, Serializable {
|
|
||||||
private long _max = 0;
|
|
||||||
|
|
||||||
public AtomicClock(long counter) {
|
|
||||||
_max = counter;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Long getTimestamp() {
|
|
||||||
return ++_max;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTimestamp(Long timestamp) {
|
|
||||||
_max = timestamp;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Long peekTimestamp() {
|
|
||||||
return _max;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Long updateTimestamp(Long receivedTimestamp) {
|
|
||||||
var old = _max;
|
|
||||||
_max = Math.max(_max, receivedTimestamp) + 1;
|
|
||||||
return old;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user