<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;
* 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;
* 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;
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;
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
* 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;
* 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;
* 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;
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")
* 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;
* 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;
* 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;
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