This commit is contained in:
crusader 2018-04-23 16:15:27 +09:00
parent 952957d044
commit d7158caecb
2 changed files with 16 additions and 0 deletions

View File

@ -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 {
}

View File

@ -3,6 +3,7 @@ package com.loafle.overflow.module.discovery.service;
import java.util.Date; import java.util.Date;
import com.loafle.overflow.module.core.annotation.ProbeAPI; 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.DiscoverHost;
import com.loafle.overflow.module.discovery.model.DiscoverPort; import com.loafle.overflow.module.discovery.model.DiscoverPort;
import com.loafle.overflow.module.discovery.model.DiscoverService; 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. * Created by snoop on 17. 9. 28.
*/ */
public interface DiscoveryService { public interface DiscoveryService {
@WebappAPI
void discoverZone(String probeID, DiscoverZone discoverZone); void discoverZone(String probeID, DiscoverZone discoverZone);
@WebappAPI
void discoverHost(String probeID, Zone zone, DiscoverHost discoverHost); void discoverHost(String probeID, Zone zone, DiscoverHost discoverHost);
@WebappAPI
void discoverPort(String probeID, Host host, DiscoverPort discoverPort); void discoverPort(String probeID, Host host, DiscoverPort discoverPort);
@WebappAPI
void discoverService(String probeID, Port port, DiscoverService discoverService); void discoverService(String probeID, Port port, DiscoverService discoverService);
@ProbeAPI @ProbeAPI