diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-08-28 10:27:36 +0200 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-08-28 11:02:18 +0200 |
commit | d31538c3d0694c3d2cb5d65c6670b84b2e6fb0f4 (patch) | |
tree | 1d8f77bf3f748c6a39e42dee7964cffb173707a2 /src/main/java/at/gv/egiz/moazs/repository | |
parent | 0a2e84daf88b908f1580168c3d6fdc28ba904a33 (diff) | |
download | moa-zs-d31538c3d0694c3d2cb5d65c6670b84b2e6fb0f4.tar.gz moa-zs-d31538c3d0694c3d2cb5d65c6670b84b2e6fb0f4.tar.bz2 moa-zs-d31538c3d0694c3d2cb5d65c6670b84b2e6fb0f4.zip |
Ensure that Each Step of Each Backend Process is Logged
Diffstat (limited to 'src/main/java/at/gv/egiz/moazs/repository')
-rw-r--r-- | src/main/java/at/gv/egiz/moazs/repository/InMemoryDeliveryRepository.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/repository/InMemoryDeliveryRepository.java b/src/main/java/at/gv/egiz/moazs/repository/InMemoryDeliveryRepository.java index b8a6d78..23c534c 100644 --- a/src/main/java/at/gv/egiz/moazs/repository/InMemoryDeliveryRepository.java +++ b/src/main/java/at/gv/egiz/moazs/repository/InMemoryDeliveryRepository.java @@ -32,41 +32,42 @@ public class InMemoryDeliveryRepository implements DeliveryRepository { this.binaryResponseRepository = builder.build(); } + //TODO: Handle all "key exists" cases! @Override public void store(DeliveryRequestType request) { var key = request.getMetaData().getAppDeliveryID(); - log.trace("Store DeliveryRequest by key={}", key); + log.info("Store DeliveryRequest by key={}.", key); requestRepository.put(key, request); } @Override public Optional<DeliveryRequestType> retrieveDeliveryRequest(String appDeliveryID) { - log.trace("Retrieve DeliveryRequest by key={}", appDeliveryID); + log.info("Retrieve DeliveryRequest by key={}.", appDeliveryID); return ofNullable(requestRepository.getIfPresent(appDeliveryID)); } @Override public void store(MsgResponse response) { String key = response.getResponseID(); - log.trace("Store MsgResponse by key={}", key); + log.info("Store MsgResponse by key={}.", key); responseRepository.put(key, response); } @Override public Optional<MsgResponse> retrieveResponse(String responseID) { - log.trace("Retrieve MsgResponse by key={}", responseID); + log.info("Retrieve MsgResponse by key={}.", responseID); return ofNullable(responseRepository.getIfPresent(responseID)); } @Override public void store(String responseID, byte[] data) { - log.trace("Store Binary MsgResponse by key={}", responseID); + log.info("Store Binary MsgResponse by key={}.", responseID); binaryResponseRepository.put(responseID, data); } @Override public Optional<byte[]> retrieveBinaryResponse(String responseID) { - log.trace("Retrieve Binary MsgResponse by key={}", responseID); + log.info("Retrieve Binary MsgResponse by key={}.", responseID); return ofNullable(binaryResponseRepository.getIfPresent(responseID)); } |