|
|
|
@ -178,16 +178,6 @@ public class ESDStrategyConfigPane extends BasicBeanPane<StrategyConfig> {
|
|
|
|
|
|
|
|
|
|
if (ESDUtils.checkUpdateTimeSchema(text)) { |
|
|
|
|
if (ESDUtils.isCronExpression(text)) { |
|
|
|
|
// 判断后两次更新时间间隔,如果小于1分钟就显示错误
|
|
|
|
|
CronExpression cron = new CronExpression(text); |
|
|
|
|
Date next1 = cron.getNextValidTimeAfter(new Date()); |
|
|
|
|
Date next2 = cron.getNextValidTimeAfter(next1); |
|
|
|
|
if (next2.getTime() - next1.getTime() < CacheConstants.MILLIS_OF_MINUTE) { |
|
|
|
|
this.schemaTimeCheckTips.setText(InterProviderFactory.getDesignI18nProvider().i18nText("Fine-Design_ESD_Error_Time_Interval_Too_Short")); |
|
|
|
|
this.schemaTimeCheckTips.setVisible(true); |
|
|
|
|
throw new IllegalArgumentException("[ESD]Update schema time interval is to short."); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (checkCornTimeInterval(text)) { |
|
|
|
|
schemaTimes.add(text); |
|
|
|
|
} else { |
|
|
|
@ -221,8 +211,6 @@ public class ESDStrategyConfigPane extends BasicBeanPane<StrategyConfig> {
|
|
|
|
|
} |
|
|
|
|
} catch (CloneNotSupportedException e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
} catch (ParseException e) { |
|
|
|
|
throw new RuntimeException(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|