Skip to content

Commit

Permalink
Code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
“v_kkhuang” committed Oct 29, 2024
1 parent 97b494a commit 3440db9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,14 @@ public void jobHistoryUnfinishedScan() {
logger.info("[INFO] Loaded 0 alerts jobtime alert-rule from alert properties file.");
} else {
logger.info(
"[INFO] Loaded {} alerts jobtime alert-rules from alert properties file.",
jobTimeAlerts.size());
"[INFO] Loaded {} alerts jobtime alert-rules from alert properties file.",
jobTimeAlerts.size());
shouldStart = true;
JobMonitorUtils.addIntervalToImsAlerts(jobTimeAlerts, realIntervals);
JobTimeExceedRule jobTimeExceedRule =
new JobTimeExceedRule(
jobTimeAlerts.keySet(), new JobTimeExceedAlertSender(jobTimeAlerts));
scanner.addScanRule(jobTimeExceedRule);
new JobTimeExceedRule(
jobTimeAlerts.keySet(), new JobTimeExceedAlertSender(jobTimeAlerts));
scanner.addScanRule(jobTimeExceedRule);
}
StarrocksTimeExceedRule starrocksTimeExceedRule =
new StarrocksTimeExceedRule(new StarrocksTimeExceedAlterSender());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,23 @@

package org.apache.linkis.monitor.client

import org.apache.linkis.datasource.client.response.{GetConnectParamsByDataSourceNameResult, GetInfoByDataSourceNameResult, GetInfoPublishedByDataSourceNameResult}
import org.apache.linkis.datasource.client.response.{
GetConnectParamsByDataSourceNameResult,
GetInfoByDataSourceNameResult,
GetInfoPublishedByDataSourceNameResult
}
import org.apache.linkis.httpclient.authentication.AuthenticationStrategy
import org.apache.linkis.httpclient.dws.authentication.StaticAuthenticationStrategy
import org.apache.linkis.httpclient.dws.config.{DWSClientConfig, DWSClientConfigBuilder}
import org.apache.linkis.httpclient.response.Result
import org.apache.linkis.monitor.request.{DataSourceParamsAction, EmsListAction, EntranceTaskAction, KeyvalueAction, KillJobAction, MonitorAction}
import org.apache.linkis.monitor.request.{
DataSourceParamsAction,
EmsListAction,
EntranceTaskAction,
KeyvalueAction,
KillJobAction,
MonitorAction
}
import org.apache.linkis.monitor.response.{EntranceTaskResult, KeyvalueResult, KillJobResultAction}
import org.apache.linkis.ujes.client.response.EmsListResult

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,11 @@ import org.apache.linkis.udf.entity.{PythonModuleInfo, PythonModuleInfoVO}
import org.apache.linkis.udf.service.{PythonModuleInfoService, UDFService, UDFTreeService}

import org.apache.commons.beanutils.BeanUtils
import org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo.Bean
import org.apache.htrace.fasterxml.jackson.databind.util.BeanUtil

import java.{lang, util}

import scala.collection.JavaConverters.asScalaBufferConverter
import scala.concurrent.duration.Duration
import scala.tools.nsc.interactive.Logger

class UdfReceiver extends Receiver with Logging {

Expand Down

0 comments on commit 3440db9

Please sign in to comment.