Modify package name
authorFengLiang <feng.liang1@zte.com.cn>
Tue, 21 Feb 2017 07:38:26 +0000 (15:38 +0800)
committerFengLiang <feng.liang1@zte.com.cn>
Tue, 21 Feb 2017 07:38:26 +0000 (15:38 +0800)
Change-Id: I1341290d6e5375967ec12b5cd578c3cab684cd78
Issue-ID:HOLMES-19
Signed-off-by: FengLiang <feng.liang1@zte.com.cn>
12 files changed:
engine-d/pom.xml
engine-d/src/main/java/org/openo/holmes/engine/EngineDActiveApp.java [moved from engine-d/src/main/java/org/openo/holmes/enginemgt/EngineActiveApp.java with 83% similarity]
engine-d/src/main/java/org/openo/holmes/engine/EngineDAppConfig.java [moved from engine-d/src/main/java/org/openo/holmes/enginemgt/EngineAppConfig.java with 94% similarity]
engine-d/src/main/java/org/openo/holmes/engine/db/CorrelationRuleDao.java [moved from engine-d/src/main/java/org/openo/holmes/enginemgt/db/CorrelationRuleDao.java with 91% similarity]
engine-d/src/main/java/org/openo/holmes/engine/db/mapper/CorrelationRuleMapper.java [moved from engine-d/src/main/java/org/openo/holmes/enginemgt/db/mapper/CorrelationRuleMapper.java with 98% similarity]
engine-d/src/main/java/org/openo/holmes/engine/manager/DroolsEngine.java [moved from engine-d/src/main/java/org/openo/holmes/enginemgt/manager/DroolsEngine.java with 98% similarity]
engine-d/src/main/java/org/openo/holmes/engine/request/CompileRuleRequest.java [moved from engine-d/src/main/java/org/openo/holmes/enginemgt/request/CompileRuleRequest.java with 95% similarity]
engine-d/src/main/java/org/openo/holmes/engine/request/DeployRuleRequest.java [moved from engine-d/src/main/java/org/openo/holmes/enginemgt/request/DeployRuleRequest.java with 95% similarity]
engine-d/src/main/java/org/openo/holmes/engine/resources/EngineResources.java [moved from engine-d/src/main/java/org/openo/holmes/enginemgt/resources/EngineResources.java with 88% similarity]
engine-d/src/main/java/org/openo/holmes/engine/response/CorrelationRuleResponse.java [moved from engine-d/src/main/java/org/openo/holmes/enginemgt/response/CorrelationRuleResponse.java with 94% similarity]
engine-d/src/main/java/org/openo/holmes/engine/utils/AlarmUtil.java [moved from engine-d/src/main/java/org/openo/holmes/enginemgt/utils/AlarmUtil.java with 98% similarity]
engine-d/src/main/java/org/openo/holmes/engine/wrapper/RuleMgtWrapper.java [moved from engine-d/src/main/java/org/openo/holmes/enginemgt/wrapper/RuleMgtWrapper.java with 93% similarity]

index d7ff763..bb055bc 100644 (file)
@@ -25,8 +25,8 @@
         <version>1.1.0-SNAPSHOT</version>
     </parent>
 
-    <artifactId>holmes-engine</artifactId>
-    <name>holmes-enginemgt-service</name>
+    <artifactId>holmes-engine-d</artifactId>
+    <name>holmes-engine-d-service</name>
     <packaging>jar</packaging>
 
     <properties>
                                   implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                                 <transformer
                                   implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
-                                    <mainClass>org.openo.holmes.enginemgt.EngineActiveApp
+                                    <mainClass>org.openo.holmes.engine.EngineDActiveApp
                                     </mainClass>
                                 </transformer>
                             </transformers>
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.enginemgt;
+package org.openo.holmes.engine;
 
 import org.openo.dropwizard.ioc.bundle.IOCApplication;
 
-public class EngineActiveApp extends IOCApplication<EngineAppConfig> {
+public class EngineDActiveApp extends IOCApplication<EngineDAppConfig> {
 
     public static void main(String[] args) throws Exception {
-        new EngineActiveApp().run(args);
+        new EngineDActiveApp().run(args);
     }
 }
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.enginemgt;
+package org.openo.holmes.engine;
 
 import com.fasterxml.jackson.annotation.JsonProperty;
 import io.dropwizard.Configuration;
 import io.dropwizard.db.DataSourceFactory;
 import javax.validation.Valid;
 import javax.validation.constraints.NotNull;
-import lombok.Getter;
 import org.hibernate.validator.constraints.NotEmpty;
 import org.openo.holmes.common.config.MQConfig;
 
-public class EngineAppConfig extends Configuration {
+public class EngineDAppConfig extends Configuration {
 
     @NotEmpty
     private String defaultName = "Correlation-Rule";
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.enginemgt.db;
+package org.openo.holmes.engine.db;
 
 
 import java.util.List;
 import org.openo.holmes.common.api.entity.CorrelationRule;
-import org.openo.holmes.enginemgt.db.mapper.CorrelationRuleMapper;
+import org.openo.holmes.engine.db.mapper.CorrelationRuleMapper;
 import org.skife.jdbi.v2.sqlobject.Bind;
 import org.skife.jdbi.v2.sqlobject.SqlQuery;
 import org.skife.jdbi.v2.sqlobject.customizers.RegisterMapper;
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.enginemgt.db.mapper;
+package org.openo.holmes.engine.db.mapper;
 
 import java.sql.ResultSet;
 import java.sql.SQLException;
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.enginemgt.manager;
+package org.openo.holmes.engine.manager;
 
 
 import java.io.StringReader;
@@ -21,7 +21,6 @@ import java.util.List;
 import java.util.Locale;
 import javax.annotation.PostConstruct;
 import javax.inject.Inject;
-import javax.inject.Singleton;
 import javax.jms.Connection;
 import javax.jms.ConnectionFactory;
 import javax.jms.Destination;
@@ -55,8 +54,8 @@ import org.openo.holmes.common.exception.EngineException;
 import org.openo.holmes.common.exception.RuleIllegalityException;
 import org.openo.holmes.common.utils.ExceptionUtil;
 import org.openo.holmes.common.utils.I18nProxy;
-import org.openo.holmes.enginemgt.request.DeployRuleRequest;
-import org.openo.holmes.enginemgt.wrapper.RuleMgtWrapper;
+import org.openo.holmes.engine.request.DeployRuleRequest;
+import org.openo.holmes.engine.wrapper.RuleMgtWrapper;
 
 @Slf4j
 @Service
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.enginemgt.request;
+package org.openo.holmes.engine.request;
 
 import com.fasterxml.jackson.annotation.JsonProperty;
 import javax.validation.constraints.NotNull;
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.enginemgt.request;
+package org.openo.holmes.engine.request;
 
 import com.fasterxml.jackson.annotation.JsonProperty;
 import javax.validation.constraints.NotNull;
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.enginemgt.resources;
+package org.openo.holmes.engine.resources;
 
 
 import com.codahale.metrics.annotation.Timed;
@@ -33,15 +33,12 @@ import javax.ws.rs.core.MediaType;
 import lombok.extern.slf4j.Slf4j;
 import org.jvnet.hk2.annotations.Service;
 import org.openo.holmes.common.exception.CorrelationException;
-import org.openo.holmes.common.exception.EngineException;
-import org.openo.holmes.common.exception.RuleIllegalityException;
 import org.openo.holmes.common.utils.ExceptionUtil;
-import org.openo.holmes.common.utils.I18nProxy;
 import org.openo.holmes.common.utils.LanguageUtil;
-import org.openo.holmes.enginemgt.manager.DroolsEngine;
-import org.openo.holmes.enginemgt.request.CompileRuleRequest;
-import org.openo.holmes.enginemgt.request.DeployRuleRequest;
-import org.openo.holmes.enginemgt.response.CorrelationRuleResponse;
+import org.openo.holmes.engine.manager.DroolsEngine;
+import org.openo.holmes.engine.request.CompileRuleRequest;
+import org.openo.holmes.engine.request.DeployRuleRequest;
+import org.openo.holmes.engine.response.CorrelationRuleResponse;
 
 @Service
 @Path("/rule")
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.enginemgt.response;
+package org.openo.holmes.engine.response;
 
 import com.fasterxml.jackson.annotation.JsonProperty;
 import lombok.Getter;
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.enginemgt.utils;
+package org.openo.holmes.engine.utils;
 
 import java.util.HashMap;
 import java.util.Map;
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.enginemgt.wrapper;
+package org.openo.holmes.engine.wrapper;
 
 import java.util.List;
 import javax.inject.Inject;
@@ -24,7 +24,7 @@ import org.openo.holmes.common.api.entity.CorrelationRule;
 import org.openo.holmes.common.exception.DbException;
 import org.openo.holmes.common.utils.DbDaoUtil;
 import org.openo.holmes.common.utils.I18nProxy;
-import org.openo.holmes.enginemgt.db.CorrelationRuleDao;
+import org.openo.holmes.engine.db.CorrelationRuleDao;
 
 
 @Service