You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sampling-message-server/src/main/java/de/dhbw/ravensburg/verteiltesysteme/server/persistence/DatabaseAccessObjectImpl.java
Copy file name to clipboardExpand all lines: sampling-message-server/src/main/java/de/dhbw/ravensburg/verteiltesysteme/server/persistence/FakePersistence.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@
4
4
5
5
/**
6
6
* Fake persistence class
7
-
* Mocking a partially synchronized persistence key-value storage by being nothing else than a simple java.util.concurrent.ConcurrentHashMap
7
+
* Mocking a partially synchronized persistence key-value storage by being nothing else than a simple {@link ConcurrentHashMap}
8
+
* All the concurrency magic happens here - no need for explicit synchronization or locking.
Copy file name to clipboardExpand all lines: sampling-message-server/src/main/java/de/dhbw/ravensburg/verteiltesysteme/server/persistence/model/DatabaseSamplingMessage.java
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,30 @@
10
10
importjava.time.Duration;
11
11
importjava.time.Instant;
12
12
13
+
14
+
/**
15
+
* Primary persistence layer representation of a SamplingMessage.
16
+
*/
17
+
18
+
/*
19
+
Automatically generate getters and setters for all attributes.
Copy file name to clipboardExpand all lines: sampling-message-server/src/main/java/de/dhbw/ravensburg/verteiltesysteme/server/rpc/RpcService.java
+65-5Lines changed: 65 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -9,16 +9,29 @@
9
9
importio.grpc.stub.StreamObserver;
10
10
importlombok.extern.slf4j.Slf4j;
11
11
12
+
/**
13
+
* This class implements remote procedure calls specified the service.proto file by extending the automatically generated gRPC {@link SamplingMessageGrpc.SamplingMessageImplBase}
14
+
* This implementation is getting deployed to a gRPC server instance to expose the specified remote procedure calls.
log.info(String.format("Received WriteSamplingMessageRequest for messageName: %s with lifetime in sec: %d", request.getMessageName(), request.getLifetimeInSec()));
Copy file name to clipboardExpand all lines: sampling-message-server/src/main/java/de/dhbw/ravensburg/verteiltesysteme/server/service/InputValidator.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,10 @@
12
12
* Provides validation patterns for incoming transit data
Copy file name to clipboardExpand all lines: sampling-message-server/src/main/java/de/dhbw/ravensburg/verteiltesysteme/server/service/SamplingMessageService.java
0 commit comments