From 726a3f475281613adfab34d27cd3886f905f393a Mon Sep 17 00:00:00 2001 From: "Robert J. Moore" <Robert.J.Moore@allanbank.com> Date: Sun, 1 Nov 2015 15:24:31 -0500 Subject: [PATCH] [aerospike] Checkstyle updates for Aerospike. * Added a package-info.java. * Added JavaDoc for the binding's DB implementation. --- aerospike/pom.xml | 24 +++++++++++++++++++ .../com/yahoo/ycsb/db/AerospikeClient.java | 3 +++ .../java/com/yahoo/ycsb/db/package-info.java | 21 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 aerospike/src/main/java/com/yahoo/ycsb/db/package-info.java diff --git a/aerospike/pom.xml b/aerospike/pom.xml index 75321209..c2879a50 100644 --- a/aerospike/pom.xml +++ b/aerospike/pom.xml @@ -42,4 +42,28 @@ LICENSE file. <scope>provided</scope> </dependency> </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <version>2.15</version> + <configuration> + <consoleOutput>true</consoleOutput> + <configLocation>../checkstyle.xml</configLocation> + <failOnViolation>true</failOnViolation> + <failsOnError>true</failsOnError> + </configuration> + <executions> + <execution> + <id>validate</id> + <phase>validate</phase> + <goals> + <goal>checkstyle</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> </project> diff --git a/aerospike/src/main/java/com/yahoo/ycsb/db/AerospikeClient.java b/aerospike/src/main/java/com/yahoo/ycsb/db/AerospikeClient.java index 9d389046..858c69b4 100644 --- a/aerospike/src/main/java/com/yahoo/ycsb/db/AerospikeClient.java +++ b/aerospike/src/main/java/com/yahoo/ycsb/db/AerospikeClient.java @@ -36,6 +36,9 @@ import com.yahoo.ycsb.ByteArrayByteIterator; import com.yahoo.ycsb.ByteIterator; import com.yahoo.ycsb.DBException; +/** + * YCSB binding for <a href="http://www.aerospike.com/">Areospike</a>. + */ public class AerospikeClient extends com.yahoo.ycsb.DB { private static final String DEFAULT_HOST = "localhost"; private static final String DEFAULT_PORT = "3000"; diff --git a/aerospike/src/main/java/com/yahoo/ycsb/db/package-info.java b/aerospike/src/main/java/com/yahoo/ycsb/db/package-info.java new file mode 100644 index 00000000..1436a028 --- /dev/null +++ b/aerospike/src/main/java/com/yahoo/ycsb/db/package-info.java @@ -0,0 +1,21 @@ +/** + * Copyright (c) 2015 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. + */ + +/** + * YCSB binding for <a href="http://www.aerospike.com/">Areospike</a>. + */ +package com.yahoo.ycsb.db; -- GitLab