Junjie
8 天以前 1b93474a67aa2323d20630b1bb026713b2bad009
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.zy.ai.service;
 
import com.zy.ai.domain.autotune.AutoTuneControlModeSnapshot;
 
public interface AutoTuneControlModeService {
 
    AutoTuneControlModeSnapshot currentMode();
 
    default boolean isAnalysisOnly() {
        AutoTuneControlModeSnapshot snapshot = currentMode();
        return snapshot == null || Boolean.TRUE.equals(snapshot.getAnalysisOnly());
    }
}