Skip to content

Commit

Permalink
Refactor/Rename jabushka to javabushka
Browse files Browse the repository at this point in the history
Signed-off-by: acarbonetto <[email protected]>
  • Loading branch information
acarbonetto committed Sep 25, 2023
1 parent 0d04238 commit fea0799
Show file tree
Hide file tree
Showing 25 changed files with 32 additions and 32 deletions.
3 changes: 0 additions & 3 deletions java/.cargo/config.toml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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.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.jedis.JedisClient;
import javabushka.client.lettuce.LettuceAsyncClient;
import javabushka.client.utils.Benchmarking;
import javabushka.client.utils.ChosenAction;
import javababushka.benchmarks.jedis.JedisClient;
import javababushka.benchmarks.lettuce.LettuceAsyncClient;
import javababushka.benchmarks.utils.Benchmarking;
import javababushka.benchmarks.utils.ChosenAction;
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,7 +1,7 @@
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package javabushka.client.jedis;
package javababushka.benchmarks.jedis;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
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 io.lettuce.core.RedisClient;
import io.lettuce.core.RedisFuture;
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 io.lettuce.core.RedisClient;
import io.lettuce.core.api.StatefulRedisConnection;
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 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;

// 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.ChosenAction;
import javababushka.benchmarks.utils.Benchmarking;
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.
File renamed without changes.
5 changes: 0 additions & 5 deletions java/jabushka/settings.gradle

This file was deleted.

3 changes: 3 additions & 0 deletions java/rust_client/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[env]
BABUSHKA_NAME = { value = "JavaBabushka", force = true }
BABUSHKA_VERSION = "0.1.0"
10 changes: 5 additions & 5 deletions java/Cargo.toml → java/rust_client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "jabushka"
version = "0.0.0"
name = "JavaBabushka"
version = "0.1.0"
edition = "2021"
license = "BSD-3-Clause"

Expand All @@ -10,10 +10,10 @@ name = "jabushka"
crate-type = ["cdylib"]

[dependencies]
redis = { path = "../submodules/redis-rs/redis", features = ["aio", "tokio-comp", "connection-manager", "tls", "tokio-rustls-comp"] }
babushka = { path = "../babushka-core" }
redis = { path = "../../submodules/redis-rs/redis", features = ["aio", "tokio-comp", "connection-manager", "tls", "tokio-rustls-comp"] }
babushka = { path = "../../babushka-core" }
tokio = { version = "^1", features = ["rt", "macros", "rt-multi-thread", "time"] }
logger_core = {path = "../logger_core"}
logger_core = {path = "../../logger_core"}
tracing-subscriber = "0.3.16"

[profile.release]
Expand Down
File renamed without changes.
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 = 'java-babushka'

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

0 comments on commit fea0799

Please sign in to comment.