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) {