Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename/Refactor Jabushka to Javabushka #14

Merged
merged 1 commit into from
Sep 26, 2023
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
4 changes: 2 additions & 2 deletions java/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "jabushka"
name = "javababushka"
version = "0.0.0"
edition = "2021"
license = "BSD-3-Clause"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "jabushka"
name = "javababushka"
crate-type = ["cdylib"]

[dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ java {

application {
// Define the main class for the application.
mainClass = 'javabushka.client.BenchmarkingApp'
mainClass = 'javababushka.benchmarks.BenchmarkingApp'
}

tasks.withType(Test) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package javabushka.client;
package javababushka.benchmarks;

import java.util.concurrent.Future;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package javabushka.client;
package javababushka.benchmarks;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import javabushka.client.jedis.JedisClient;
import javabushka.client.jedis.JedisPseudoAsyncClient;
import javabushka.client.lettuce.LettuceAsyncClient;
import javabushka.client.lettuce.LettuceClient;
import javabushka.client.utils.Benchmarking;
import javababushka.benchmarks.jedis.JedisClient;
import javababushka.benchmarks.lettuce.LettuceAsyncClient;
import javababushka.benchmarks.lettuce.LettuceClient;
import javababushka.benchmarks.utils.Benchmarking;
import javababushka.benchmarks.jedis.JedisPseudoAsyncClient;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package javabushka.client;
package javababushka.benchmarks;

import javabushka.client.utils.ConnectionSettings;
import javababushka.benchmarks.utils.ConnectionSettings;

public interface Client {
void connectToRedis();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package javabushka.client;
package javababushka.benchmarks;

public interface SyncClient extends Client {
void set(String key, String value);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package javabushka.client.jedis;
package javababushka.benchmarks.jedis;

import javabushka.client.SyncClient;
import javabushka.client.utils.ConnectionSettings;
import javababushka.benchmarks.SyncClient;
import javababushka.benchmarks.utils.ConnectionSettings;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package javabushka.client.jedis;
package javababushka.benchmarks.jedis;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import javabushka.client.AsyncClient;
import javababushka.benchmarks.AsyncClient;

// Jedis doesn't provide async API
// https://github.com/redis/jedis/issues/241
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package javabushka.client.lettuce;
package javababushka.benchmarks.lettuce;

import io.lettuce.core.RedisClient;
import io.lettuce.core.RedisFuture;
import io.lettuce.core.api.StatefulRedisConnection;
import io.lettuce.core.api.async.RedisAsyncCommands;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import javabushka.client.AsyncClient;
import javabushka.client.utils.ConnectionSettings;
import javababushka.benchmarks.AsyncClient;
import javababushka.benchmarks.utils.ConnectionSettings;

public class LettuceAsyncClient implements AsyncClient {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package javabushka.client.lettuce;
package javababushka.benchmarks.lettuce;

import io.lettuce.core.RedisClient;
import io.lettuce.core.api.StatefulRedisConnection;
import io.lettuce.core.api.sync.RedisStringCommands;
import javabushka.client.SyncClient;
import javabushka.client.utils.ConnectionSettings;
import javababushka.benchmarks.SyncClient;
import javababushka.benchmarks.utils.ConnectionSettings;

public class LettuceClient implements SyncClient {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package javabushka.client.utils;
package javababushka.benchmarks.utils;

import java.io.FileWriter;
import java.io.IOException;
Expand All @@ -8,10 +8,10 @@
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;
import javabushka.client.AsyncClient;
import javabushka.client.BenchmarkingApp;
import javabushka.client.Client;
import javabushka.client.SyncClient;
import javababushka.benchmarks.AsyncClient;
import javababushka.benchmarks.BenchmarkingApp;
import javababushka.benchmarks.Client;
import javababushka.benchmarks.SyncClient;
import org.apache.commons.lang3.RandomStringUtils;

public class Benchmarking {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package javabushka.client.utils;
package javababushka.benchmarks.utils;

public enum ChosenAction {
GET_NON_EXISTING,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package javabushka.client.utils;
package javababushka.benchmarks.utils;

public class ConnectionSettings {
public String host;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package javabushka.client.utils;
package javababushka.benchmarks.utils;

// Raw timing results in nanoseconds
public class LatencyResults {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package javabushka.client.jedis;
package javababushka.benchmarks.jedis;

import static org.junit.jupiter.api.Assertions.assertTrue;

import java.util.HashMap;
import java.util.Map;
import javabushka.client.utils.Benchmarking;
import javabushka.client.utils.ChosenAction;
import javababushka.benchmarks.utils.Benchmarking;
import javababushka.benchmarks.utils.ChosenAction;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package javabushka.client.lettuce;
package javababushka.benchmarks.lettuce;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package javabushka.client.lettuce;
package javababushka.benchmarks.lettuce;

import java.util.HashMap;
import javabushka.client.utils.Benchmarking;
import javabushka.client.utils.ChosenAction;
import javababushka.benchmarks.utils.Benchmarking;
import javababushka.benchmarks.utils.ChosenAction;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions java/jabushka/settings.gradle

This file was deleted.

5 changes: 5 additions & 0 deletions java/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rootProject.name = 'javababushka'

include 'client'
include 'integTest'
include 'benchmarks'
Loading