Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.seed.persistence.elasticsearch;
package org.seedstack.elasticsearch;

import org.assertj.core.api.Assertions;
import org.elasticsearch.ElasticsearchException;
Expand All @@ -14,7 +14,7 @@
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.json.JSONException;
import org.junit.Test;
import org.seedstack.seed.core.api.SeedException;
import org.seedstack.seed.SeedException;
import org.seedstack.seed.it.AbstractSeedIT;
import org.skyscreamer.jsonassert.JSONAssert;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

[org.seedstack.seed]
persistence.elasticsearch.clients = client1, client2
[org.seedstack.elasticsearch]
clients = client1, client2

[org.seedstack.seed.persistence.elasticsearch.client.client1]
[org.seedstack.elasticsearch.client.client1]
hosts = localhost

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.seed.persistence.elasticsearch.internal;
package org.seedstack.elasticsearch.internal;

import org.seedstack.seed.core.api.SeedException;
import org.seedstack.seed.SeedException;
import org.elasticsearch.client.Client;

import java.lang.reflect.InvocationHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
/**
*
*/
package org.seedstack.seed.persistence.elasticsearch.internal;
package org.seedstack.elasticsearch.internal;

import org.seedstack.seed.core.api.ErrorCode;
import org.seedstack.seed.ErrorCode;

enum ElasticSearchErrorCode implements ErrorCode {
FORBIDDEN_CLIENT_CLOSE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.seed.persistence.elasticsearch.internal;
package org.seedstack.elasticsearch.internal;

import com.google.inject.Key;
import com.google.inject.PrivateModule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.seed.persistence.elasticsearch.internal;
package org.seedstack.elasticsearch.internal;

import io.nuun.kernel.api.Plugin;
import io.nuun.kernel.api.plugin.InitState;
Expand All @@ -20,7 +20,7 @@
import org.elasticsearch.common.transport.InetSocketTransportAddress;
import org.elasticsearch.node.Node;
import org.elasticsearch.node.NodeBuilder;
import org.seedstack.seed.core.api.SeedException;
import org.seedstack.seed.SeedException;
import org.seedstack.seed.core.internal.application.ApplicationPlugin;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -40,7 +40,7 @@
* @author redouane.loulou@ext.mpsa.com
*/
public class ElasticSearchPlugin extends AbstractPlugin {
public static final String ELASTIC_SEARCH_PLUGIN_CONFIGURATION_PREFIX = "org.seedstack.seed.persistence.elasticsearch";
public static final String ELASTIC_SEARCH_PLUGIN_CONFIGURATION_PREFIX = "org.seedstack.elasticsearch";
public static final int DEFAULT_ELASTIC_SEARCH_PORT = 9300;
public static final String ELASTIC_SEARCH_STORAGE_ROOT = "persistence-elasticsearch" + File.separator;
private static final Logger LOGGER = LoggerFactory.getLogger(ElasticSearchPlugin.class);
Expand All @@ -50,7 +50,7 @@ public class ElasticSearchPlugin extends AbstractPlugin {

@Override
public String name() {
return "seed-elasticsearch-plugin";
return "elasticsearch";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
org.seedstack.seed.persistence.elasticsearch.internal.ElasticSearchPlugin
org.seedstack.elasticsearch.internal.ElasticSearchPlugin