From d7158caecb45dd90ec609da9c01d67a1f39aa877 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 23 Apr 2018 16:15:27 +0900 Subject: [PATCH] ing --- .../overflow/module/core/annotation/WebappAPI.java | 11 +++++++++++ .../module/discovery/service/DiscoveryService.java | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 src/main/java/com/loafle/overflow/module/core/annotation/WebappAPI.java diff --git a/src/main/java/com/loafle/overflow/module/core/annotation/WebappAPI.java b/src/main/java/com/loafle/overflow/module/core/annotation/WebappAPI.java new file mode 100644 index 0000000..6ec56bd --- /dev/null +++ b/src/main/java/com/loafle/overflow/module/core/annotation/WebappAPI.java @@ -0,0 +1,11 @@ +package com.loafle.overflow.module.core.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ElementType.METHOD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface WebappAPI { +} \ No newline at end of file diff --git a/src/main/java/com/loafle/overflow/module/discovery/service/DiscoveryService.java b/src/main/java/com/loafle/overflow/module/discovery/service/DiscoveryService.java index 32dd44d..644269d 100644 --- a/src/main/java/com/loafle/overflow/module/discovery/service/DiscoveryService.java +++ b/src/main/java/com/loafle/overflow/module/discovery/service/DiscoveryService.java @@ -3,6 +3,7 @@ package com.loafle.overflow.module.discovery.service; import java.util.Date; import com.loafle.overflow.module.core.annotation.ProbeAPI; +import com.loafle.overflow.module.core.annotation.WebappAPI; import com.loafle.overflow.module.discovery.model.DiscoverHost; import com.loafle.overflow.module.discovery.model.DiscoverPort; import com.loafle.overflow.module.discovery.model.DiscoverService; @@ -16,9 +17,13 @@ import com.loafle.overflow.module.discovery.model.Zone; * Created by snoop on 17. 9. 28. */ public interface DiscoveryService { + @WebappAPI void discoverZone(String probeID, DiscoverZone discoverZone); + @WebappAPI void discoverHost(String probeID, Zone zone, DiscoverHost discoverHost); + @WebappAPI void discoverPort(String probeID, Host host, DiscoverPort discoverPort); + @WebappAPI void discoverService(String probeID, Port port, DiscoverService discoverService); @ProbeAPI