From 23f0b926b77d3d2152d2c554e120ab42479ac358 Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 20 Apr 2018 00:03:44 +0900 Subject: [PATCH] ing --- .../module/discovery/service/DiscoveryService.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/loafle/overflow/central/module/discovery/service/DiscoveryService.java b/src/main/java/com/loafle/overflow/central/module/discovery/service/DiscoveryService.java index 48b8d23..794d931 100644 --- a/src/main/java/com/loafle/overflow/central/module/discovery/service/DiscoveryService.java +++ b/src/main/java/com/loafle/overflow/central/module/discovery/service/DiscoveryService.java @@ -16,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.io.IOException; +import java.util.Date; /** * Created by snoop on 17. 9. 28. @@ -86,7 +87,16 @@ public class DiscoveryService { messagePublisher.publishToProbe(probeID, "DiscoveryService.DiscoverService", requesterSessionID, port, discoveryService); } + + @ProbeAPI + public void discoveryStart(String requesterSessionID, Date startDate) { + messagePublisher.publishToMemberSession(requesterSessionID, "DiscoveryService.discoveryStart", startDate); + } + @ProbeAPI + public void discoveryStop(String requesterSessionID, Date stopDate) { + messagePublisher.publishToMemberSession(requesterSessionID, "DiscoveryService.discoveryStop", stopDate); + } @ProbeAPI public void discoveredZone(String requesterSessionID, Zone zone) {