Skip to content
Browse files

upgraded to 0.20.X

  • Loading branch information...
1 parent 063e2cd commit 5a22345122268938c704be8ba2cced36cafbfd1b @bleskes committed Jan 23, 2013
View
2 README.rst
@@ -19,7 +19,7 @@ Versions
============= =============
ElasticFacets ElasticSearch
============= =============
- master 0.19.9 -> 0.19.11
+ master 0.20.0 -> 0.20.2
0.2 0.19.9 -> 0.19.11
0.1 0.19.8
============= =============
View
22 pom.xml
@@ -4,7 +4,7 @@
<groupId>org.leskes.elasticfacets</groupId>
<artifactId>ElasticFacetsPlugin</artifactId>
<packaging>jar</packaging>
- <version>0.2.1-SNAPSHOT</version>
+ <version>0.2.2-SNAPSHOT</version>
<name>elasticfacets</name>
<url>http://maven.apache.org</url>
<repositories>
@@ -16,37 +16,37 @@
</repositories>
<profiles>
<profile>
- <id>0.19.9</id>
+ <id>0.20.0</id>
<activation>
<property>
<name>env.ES</name>
- <value>0.19.9</value>
+ <value>0.20.0</value>
</property>
</activation>
<dependencies>
<dependency>
<!-- hard requirement for testing -->
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
- <version>[0.19.9]</version>
+ <version>[0.20.0]</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
- <id>0.19.10</id>
+ <id>0.20.1</id>
<activation>
<property>
<name>env.ES</name>
- <value>0.19.10</value>
+ <value>0.20.1</value>
</property>
</activation>
<dependencies>
<dependency>
<!-- hard requirement for testing -->
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
- <version>[0.19.10]</version>
+ <version>[0.20.1]</version>
<scope>provided</scope>
</dependency>
</dependencies>
@@ -70,19 +70,19 @@
</dependencies>
</profile>
<profile>
- <id>0.20.0</id>
+ <id>0.20.2</id>
<activation>
<property>
<name>env.ES</name>
- <value>0.20.0</value>
+ <value>0.20.2</value>
</property>
</activation>
<dependencies>
<dependency>
<!-- hard requirement for testing -->
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
- <version>[0.20.0.RC1]</version>
+ <version>[0.20.2]</version>
<scope>provided</scope>
</dependency>
</dependencies>
@@ -176,7 +176,7 @@
</build>
<properties>
- <elasticsearch.version>0.19.9</elasticsearch.version>
+ <elasticsearch.version>0.20.2</elasticsearch.version>
</properties>
<dependencies>
View
2 src/main/java/org/leskes/elasticfacets/cache/CacheStatsPerFieldRequest.java
@@ -2,7 +2,7 @@
import org.elasticsearch.action.support.nodes.NodesOperationRequest;
-public class CacheStatsPerFieldRequest extends NodesOperationRequest {
+public class CacheStatsPerFieldRequest extends NodesOperationRequest<CacheStatsPerFieldRequest> {
protected CacheStatsPerFieldRequest() {
}
View
20 src/main/java/org/leskes/elasticfacets/cache/CacheStatsPerFieldRequestBuilder.java
@@ -20,27 +20,23 @@
package org.leskes.elasticfacets.cache;
import org.elasticsearch.action.ActionListener;
-import org.elasticsearch.action.admin.cluster.support.BaseClusterRequestBuilder;
+import org.elasticsearch.action.support.nodes.NodesOperationRequestBuilder;
import org.elasticsearch.client.ClusterAdminClient;
+import org.elasticsearch.client.internal.InternalGenericClient;
/**
*
*/
public class CacheStatsPerFieldRequestBuilder extends
- BaseClusterRequestBuilder<CacheStatsPerFieldRequest, CacheStatsPerFieldResponse> {
+ NodesOperationRequestBuilder<CacheStatsPerFieldRequest, CacheStatsPerFieldResponse, CacheStatsPerFieldRequestBuilder> {
- public CacheStatsPerFieldRequestBuilder(ClusterAdminClient clusterClient) {
- super(clusterClient, new CacheStatsPerFieldRequest());
- }
-
- public CacheStatsPerFieldRequestBuilder setNodesIds(String... nodesIds) {
- request.nodesIds(nodesIds);
- return this;
- }
+ protected CacheStatsPerFieldRequestBuilder(ClusterAdminClient client) {
+ super((InternalGenericClient)client, new CacheStatsPerFieldRequest());
+ }
- @Override
+ @Override
protected void doExecute(ActionListener<CacheStatsPerFieldResponse> listener) {
- client.execute(CacheStatsPerFieldAction.INSTANCE, request, listener);
+ ((ClusterAdminClient) client).execute(CacheStatsPerFieldAction.INSTANCE, request, listener);
}
}
View
2 src/main/java/org/leskes/elasticfacets/cache/TransportCacheStatsPerFieldAction.java
@@ -150,7 +150,7 @@ protected boolean accumulateExceptions() {
}
CacheStatsPerFieldStatsRequest(String nodeId, CacheStatsPerFieldRequest request) {
- super(nodeId);
+ super(request, nodeId);
this.request = request;
}

0 comments on commit 5a22345

Please sign in to comment.
Something went wrong with that request. Please try again.