Skip to content
Snippets Groups Projects
Commit c8ef6b92 authored by Swapnil Bawaskar's avatar Swapnil Bawaskar
Browse files

Since GemFire is now incubating as Apache Geode renamed the GemFire driver.

parent 300bdebd
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ DATABASES = { ...@@ -54,7 +54,7 @@ DATABASES = {
"couchbase" : "com.yahoo.ycsb.db.CouchbaseClient", "couchbase" : "com.yahoo.ycsb.db.CouchbaseClient",
"dynamodb" : "com.yahoo.ycsb.db.DynamoDBClient", "dynamodb" : "com.yahoo.ycsb.db.DynamoDBClient",
"elasticsearch": "com.yahoo.ycsb.db.ElasticSearchClient", "elasticsearch": "com.yahoo.ycsb.db.ElasticSearchClient",
"gemfire" : "com.yahoo.ycsb.db.GemFireClient", "geode" : "com.yahoo.ycsb.db.GeodeClient",
"hbase" : "com.yahoo.ycsb.db.HBaseClient", "hbase" : "com.yahoo.ycsb.db.HBaseClient",
"hbase-10" : "com.yahoo.ycsb.db.HBaseClient10", "hbase-10" : "com.yahoo.ycsb.db.HBaseClient10",
"hypertable" : "com.yahoo.ycsb.db.HypertableClient", "hypertable" : "com.yahoo.ycsb.db.HypertableClient",
......
...@@ -71,7 +71,7 @@ LICENSE file. ...@@ -71,7 +71,7 @@ LICENSE file.
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.yahoo.ycsb</groupId> <groupId>com.yahoo.ycsb</groupId>
<artifactId>gemfire-binding</artifactId> <artifactId>geode-binding</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
......
<?xml version="1.0"?>
<!--
Copyright (c) 2012 YCSB contributors. All rights reserved.
Licensed 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. See accompanying
LICENSE file.
-->
<!DOCTYPE cache PUBLIC
"-//GemStone Systems, Inc.//GemFire Declarative Caching 6.5//EN"
"http://www.gemstone.com/dtd/cache6_5.dtd">
<cache>
<region name="usertable" refid="PARTITION"/>
</cache>
...@@ -25,15 +25,15 @@ LICENSE file. ...@@ -25,15 +25,15 @@ LICENSE file.
<relativePath>../binding-parent</relativePath> <relativePath>../binding-parent</relativePath>
</parent> </parent>
<artifactId>gemfire-binding</artifactId> <artifactId>geode-binding</artifactId>
<name>Gemfire DB Binding</name> <name>Geode DB Binding</name>
<packaging>jar</packaging> <packaging>jar</packaging>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.gemstone.gemfire</groupId> <groupId>org.apache.geode</groupId>
<artifactId>gemfire</artifactId> <artifactId>gemfire-core</artifactId>
<version>${gemfire.version}</version> <version>${geode.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.yahoo.ycsb</groupId> <groupId>com.yahoo.ycsb</groupId>
...@@ -45,8 +45,8 @@ LICENSE file. ...@@ -45,8 +45,8 @@ LICENSE file.
<repositories> <repositories>
<repository> <repository>
<id>gemstone</id> <id>apache.snapshots</id>
<url>http://dist.gemstone.com.s3.amazonaws.com/maven/release</url> <url>https://repository.apache.org/content/repositories/snapshots</url>
</repository> </repository>
</repositories> </repositories>
</project> </project>
...@@ -42,17 +42,17 @@ import com.yahoo.ycsb.DBException; ...@@ -42,17 +42,17 @@ import com.yahoo.ycsb.DBException;
import com.yahoo.ycsb.StringByteIterator; import com.yahoo.ycsb.StringByteIterator;
/** /**
* VMware vFabric GemFire client for the YCSB benchmark.<br /> * Apache Geode (incubating) client for the YCSB benchmark.<br />
* <p>By default acts as a GemFire client and tries to connect * <p>By default acts as a Geode client and tries to connect
* to GemFire cache server running on localhost with default * to Geode cache server running on localhost with default
* cache server port. Hostname and port of a GemFire cacheServer * cache server port. Hostname and port of a Geode cacheServer
* can be provided using <code>gemfire.serverport=port</code> and <code> * can be provided using <code>geode.serverport=port</code> and <code>
* gemfire.serverhost=host</code> properties on YCSB command line. * geode.serverhost=host</code> properties on YCSB command line.
* A locator may also be used for discovering a cacheServer * A locator may also be used for discovering a cacheServer
* by using the property <code>gemfire.locator=host[port]</code></p> * by using the property <code>geode.locator=host[port]</code></p>
* *
* <p>To run this client in a peer-to-peer topology with other GemFire * <p>To run this client in a peer-to-peer topology with other Geode
* nodes, use the property <code>gemfire.topology=p2p</code>. Running * nodes, use the property <code>geode.topology=p2p</code>. Running
* in p2p mode will enable embedded caching in this client.</p> * in p2p mode will enable embedded caching in this client.</p>
* *
* <p>YCSB by default does its operations against "usertable". When running * <p>YCSB by default does its operations against "usertable". When running
...@@ -64,7 +64,7 @@ import com.yahoo.ycsb.StringByteIterator; ...@@ -64,7 +64,7 @@ import com.yahoo.ycsb.StringByteIterator;
* @author Swapnil Bawaskar (sbawaska at vmware) * @author Swapnil Bawaskar (sbawaska at vmware)
* *
*/ */
public class GemFireClient extends DB { public class GeodeClient extends DB {
/** Return code when operation succeeded */ /** Return code when operation succeeded */
private static final int SUCCESS = 0; private static final int SUCCESS = 0;
...@@ -72,21 +72,21 @@ public class GemFireClient extends DB { ...@@ -72,21 +72,21 @@ public class GemFireClient extends DB {
/** Return code when operation did not succeed */ /** Return code when operation did not succeed */
private static final int ERROR = -1; private static final int ERROR = -1;
/** property name of the port where GemFire server is listening for connections */ /** property name of the port where Geode server is listening for connections */
private static final String SERVERPORT_PROPERTY_NAME = "gemfire.serverport"; private static final String SERVERPORT_PROPERTY_NAME = "geode.serverport";
/** property name of the host where GemFire server is running */ /** property name of the host where Geode server is running */
private static final String SERVERHOST_PROPERTY_NAME = "gemfire.serverhost"; private static final String SERVERHOST_PROPERTY_NAME = "geode.serverhost";
/** default value of {@link #SERVERHOST_PROPERTY_NAME} */ /** default value of {@link #SERVERHOST_PROPERTY_NAME} */
private static final String SERVERHOST_PROPERTY_DEFAULT = "localhost"; private static final String SERVERHOST_PROPERTY_DEFAULT = "localhost";
/** property name to specify a GemFire locator. This property can be used in both /** property name to specify a Geode locator. This property can be used in both
* client server and p2p topology */ * client server and p2p topology */
private static final String LOCATOR_PROPERTY_NAME = "gemfire.locator"; private static final String LOCATOR_PROPERTY_NAME = "geode.locator";
/** property name to specify GemFire topology */ /** property name to specify Geode topology */
private static final String TOPOLOGY_PROPERTY_NAME = "gemfire.topology"; private static final String TOPOLOGY_PROPERTY_NAME = "geode.topology";
/** value of {@value #TOPOLOGY_PROPERTY_NAME} when peer to peer topology should be used. /** value of {@value #TOPOLOGY_PROPERTY_NAME} when peer to peer topology should be used.
* (client-server topology is default) */ * (client-server topology is default) */
...@@ -96,16 +96,16 @@ public class GemFireClient extends DB { ...@@ -96,16 +96,16 @@ public class GemFireClient extends DB {
/** /**
* true if ycsb client runs as a client to a * true if ycsb client runs as a client to a
* GemFire cache server * Geode cache server
*/ */
private boolean isClient; private boolean isClient;
@Override @Override
public void init() throws DBException { public void init() throws DBException {
Properties props = getProperties(); Properties props = getProperties();
// hostName where GemFire cacheServer is running // hostName where Geode cacheServer is running
String serverHost = null; String serverHost = null;
// port of GemFire cacheServer // port of Geode cacheServer
int serverPort = 0; int serverPort = 0;
String locatorStr = null; String locatorStr = null;
...@@ -165,7 +165,7 @@ public class GemFireClient extends DB { ...@@ -165,7 +165,7 @@ public class GemFireClient extends DB {
@Override @Override
public int scan(String table, String startkey, int recordcount, public int scan(String table, String startkey, int recordcount,
Set<String> fields, Vector<HashMap<String, ByteIterator>> result) { Set<String> fields, Vector<HashMap<String, ByteIterator>> result) {
// GemFire does not support scan // Geode does not support scan
return ERROR; return ERROR;
} }
......
...@@ -73,7 +73,7 @@ LICENSE file. ...@@ -73,7 +73,7 @@ LICENSE file.
<accumulo.version>1.6.0</accumulo.version> <accumulo.version>1.6.0</accumulo.version>
<cassandra.version>1.2.9</cassandra.version> <cassandra.version>1.2.9</cassandra.version>
<cassandra.cql.version>1.0.3</cassandra.cql.version> <cassandra.cql.version>1.0.3</cassandra.cql.version>
<gemfire.version>8.1.0</gemfire.version> <geode.version>1.0.0-incubating-SNAPSHOT</geode.version>
<infinispan.version>7.2.2.Final</infinispan.version> <infinispan.version>7.2.2.Final</infinispan.version>
<openjpa.jdbc.version>2.1.1</openjpa.jdbc.version> <openjpa.jdbc.version>2.1.1</openjpa.jdbc.version>
<!--<mapkeeper.version>1.0</mapkeeper.version>--> <!--<mapkeeper.version>1.0</mapkeeper.version>-->
...@@ -102,7 +102,7 @@ LICENSE file. ...@@ -102,7 +102,7 @@ LICENSE file.
<module>distribution</module> <module>distribution</module>
<module>dynamodb</module> <module>dynamodb</module>
<module>elasticsearch</module> <module>elasticsearch</module>
<module>gemfire</module> <module>geode</module>
<module>hbase</module> <module>hbase</module>
<module>hypertable</module> <module>hypertable</module>
<module>infinispan</module> <module>infinispan</module>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment