diff --git a/pom.xml b/pom.xml index bf41039..3408b89 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ com.loafle.overflow commons-java jar - 1.0.88-SNAPSHOT + 1.0.89-SNAPSHOT com.loafle.overflow.commons-java diff --git a/src/main/java/com/loafle/overflow/core/annotation/Compress.java b/src/main/java/com/loafle/overflow/core/annotation/Compress.java new file mode 100644 index 0000000..29e943e --- /dev/null +++ b/src/main/java/com/loafle/overflow/core/annotation/Compress.java @@ -0,0 +1,12 @@ +package com.loafle.overflow.core.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +//@Compress annotation is the name binding annotation +@Target({ ElementType.METHOD }) +@Retention(RetentionPolicy.RUNTIME) +public @interface Compress { +} diff --git a/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java b/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java index 00b5085..33db9bd 100644 --- a/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java +++ b/src/main/java/com/loafle/overflow/service/central/infra/InfraService.java @@ -2,6 +2,7 @@ package com.loafle.overflow.service.central.infra; import java.util.List; +import com.loafle.overflow.core.annotation.Compress; import com.loafle.overflow.core.annotation.WebappAPI; import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.model.PageParams; @@ -32,6 +33,7 @@ public interface InfraService { com.loafle.overflow.model.infra.InfraService registByService(Long probeID, Service service) throws OverflowException; @WebappAPI + @Compress List registDiscoverd(Long probeID, List hosts, List services) throws OverflowException; @WebappAPI