diff --git a/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/am/service/engine/DefaultEngineCreateService.scala b/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/am/service/engine/DefaultEngineCreateService.scala index 52c225cf8b..8ac1e53a96 100644 --- a/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/am/service/engine/DefaultEngineCreateService.scala +++ b/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/am/service/engine/DefaultEngineCreateService.scala @@ -26,7 +26,7 @@ import org.apache.linkis.governance.common.conf.GovernanceCommonConf.ENGINE_CONN import org.apache.linkis.governance.common.utils.JobUtils import org.apache.linkis.manager.am.conf.{AMConfiguration, EngineConnConfigurationService} import org.apache.linkis.manager.am.exception.AMErrorException -import org.apache.linkis.manager.am.label.EngineReuseLabelChooser +import org.apache.linkis.manager.am.label.{EngineReuseLabelChooser, LabelChecker} import org.apache.linkis.manager.am.selector.{ECAvailableRule, NodeSelector} import org.apache.linkis.manager.am.vo.CanCreateECRes import org.apache.linkis.manager.common.constant.AMConstant @@ -49,7 +49,7 @@ import org.apache.linkis.manager.label.utils.LabelUtils import org.apache.linkis.manager.persistence.NodeMetricManagerPersistence import org.apache.linkis.manager.rm.{AvailableResource, NotEnoughResource} import org.apache.linkis.manager.rm.service.ResourceManager -import org.apache.linkis.manager.service.common.label.{LabelChecker, LabelFilter} +import org.apache.linkis.manager.service.common.label.LabelFilter import org.apache.linkis.rpc.Sender import org.apache.linkis.rpc.message.annotation.Receiver import org.apache.linkis.server.BDPJettyServerHelper diff --git a/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/service/common/label/LabelChecker.scala b/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/service/common/label/LabelChecker.scala deleted file mode 100644 index 779b06963b..0000000000 --- a/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/service/common/label/LabelChecker.scala +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.linkis.manager.service.common.label - -import org.apache.linkis.manager.label.entity.Label - -import java.util - -trait LabelChecker { - - def checkEngineLabel(labelList: util.List[Label[_]]): Boolean - - def checkEMLabel(labelList: util.List[Label[_]]): Boolean - - def checkCorrespondingLabel(labelList: util.List[Label[_]], clazz: Class[_]*): Boolean -}