fixed hisotry target
This commit is contained in:
parent
894877a11e
commit
b0c7bc1240
|
@ -1,19 +1,24 @@
|
|||
package com.loafle.overflow.module.history.service;
|
||||
|
||||
import com.loafle.overflow.module.core.annotation.WebappAPI;
|
||||
import com.loafle.overflow.module.core.model.PageParams;
|
||||
import com.loafle.overflow.module.domain.model.Domain;
|
||||
import com.loafle.overflow.module.history.model.History;
|
||||
|
||||
import com.loafle.overflow.module.meta.model.MetaHistoryType;
|
||||
import com.loafle.overflow.module.probe.model.Probe;
|
||||
import org.springframework.data.domain.Page;
|
||||
|
||||
public interface HistoryService {
|
||||
// History regist(History history);
|
||||
// ??
|
||||
History regist(History history);
|
||||
|
||||
// Page<History> readAllByProbeAndType(Probe probe, MetaHistoryType type, PageParams pageParams);
|
||||
|
||||
// Page<History> readAllByProbe(Probe probe, PageParams pageParams);
|
||||
|
||||
// Page<History> readAllByDomain(Domain domain, PageParams pageParams);
|
||||
|
||||
// Page<History> readAllByDomainAndType(Domain domain, MetaHistoryType type, PageParams pageParams);
|
||||
@WebappAPI
|
||||
Page<History> readAllByProbeAndType(Probe probe, MetaHistoryType type, PageParams pageParams);
|
||||
@WebappAPI
|
||||
Page<History> readAllByProbe(Probe probe, PageParams pageParams);
|
||||
@WebappAPI
|
||||
Page<History> readAllByDomain(Domain domain, PageParams pageParams);
|
||||
@WebappAPI
|
||||
Page<History> readAllByDomainAndType(Domain domain, MetaHistoryType type, PageParams pageParams);
|
||||
}
|
||||
|
|
|
@ -1,10 +1,18 @@
|
|||
package com.loafle.overflow.module.target.service;
|
||||
|
||||
import com.loafle.overflow.module.core.annotation.WebappAPI;
|
||||
import com.loafle.overflow.module.core.exception.OverflowException;
|
||||
import com.loafle.overflow.module.discovery.model.Host;
|
||||
import com.loafle.overflow.module.probe.model.Probe;
|
||||
import com.loafle.overflow.module.target.model.Target;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by snoop on 17. 6. 28.
|
||||
*/
|
||||
public interface TargetDiscoveryService {
|
||||
|
||||
@WebappAPI
|
||||
boolean saveAllTarget(List<Host> hosts, Probe probe) throws OverflowException;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user