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

refactor: refactor jdk dir #10

Merged
merged 1 commit into from
Aug 28, 2024
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public class Auditor {
private String auditor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public interface AutoRecovery {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import com.fasterxml.jackson.core.type.TypeReference;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public class AutoRecoveryStatus {
private boolean enabled;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public class BookieInfo {
private long freeSpace;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public class BookieStatus {
private boolean running;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import com.fasterxml.jackson.core.type.TypeReference;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public interface BookkeeperAdmin {
static BookkeeperAdminBuilder builder() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public interface BookkeeperAdminBuilder {
BookkeeperAdmin build();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public class BookkeeperAdminBuilderImpl implements BookkeeperAdminBuilder {
private final Configuration conf;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public class BookkeeperAdminException extends Exception {
private static final int DEFAULT_STATUS_CODE = 500;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public class BookkeeperAdminImpl implements BookkeeperAdmin {
private final BookiesImpl bookies;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;


import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;


import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import lombok.Getter;
import lombok.Setter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public class DiskFile {
private String[] indexFiles;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public class GarbageCollectionStatus {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public class GcSuspendStatus {
private boolean isMajorGcSuspended;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public interface Heartbeat {
void heartbeat() throws BookkeeperAdminException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import java.net.http.HttpResponse;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import com.fasterxml.jackson.core.JsonProcessingException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import java.util.Arrays;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public class ListUnderReplicatedLedgerReqData {
private String includingBookieId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

public class UrlConst {
public static final String HEARTBEAT_URL = "/heartbeat";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package io.github.protocol.bookkeeper.admin.jdk;

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import io.github.embedded.bookkeeper.core.EmbeddedBookkeeperServer;
import org.junit.jupiter.api.AfterAll;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import io.github.embedded.bookkeeper.core.EmbeddedBookkeeperServer;
import org.junit.jupiter.api.AfterAll;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import io.github.embedded.bookkeeper.core.EmbeddedBookkeeperServer;
import org.junit.jupiter.api.AfterAll;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.protocol.bookkeeper;
package io.github.protocol.bookkeeper.admin.jdk;

import io.github.embedded.bookkeeper.core.EmbeddedBookkeeperServer;
import org.junit.jupiter.api.AfterAll;
Expand Down
42 changes: 22 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,21 @@
<jackson.version>2.17.2</jackson.version>
<junit.version>5.11.0</junit.version>
<log4j.version>2.20.0</log4j.version>
<!-- plugin -->
<compiler-plugin.version>3.10.1</compiler-plugin.version>
<checkstyle-plugin.version>3.2.0</checkstyle-plugin.version>
<javadoc-plugin.version>3.4.1</javadoc-plugin.version>
<lombok.version>1.18.34</lombok.version>
<puppycrawl.version>10.18.0</puppycrawl.version>
<release-plugin.version>3.0.0-M6</release-plugin.version>
<scm-provider-gitexe.version>2.1.0</scm-provider-gitexe.version>
<source-plugin.version>3.2.1</source-plugin.version>
<!-- plugin -->
<lombok-maven-plugin.version>1.18.20.0</lombok-maven-plugin.version>
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
<maven-checkstyle-plugin.version>3.4.0</maven-checkstyle-plugin.version>
<maven-gpg-plugin.version>3.2.4</maven-gpg-plugin.version>
<maven-javadoc-plugin.version>3.8.0</maven-javadoc-plugin.version>
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
<maven-scm-provider-gitexe.version>2.1.0</maven-scm-provider-gitexe.version>
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
<maven-surefire-plugin.version>3.3.1</maven-surefire-plugin.version>
<spotbugs-maven-plugin.version>4.7.2.0</spotbugs-maven-plugin.version>
<spotless-maven-plugi.version>2.43.0</spotless-maven-plugi.version>
<surefire-plugin.version>3.0.0-M9</surefire-plugin.version>
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -75,7 +77,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
Expand All @@ -84,7 +86,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle-plugin.version}</version>
<version>${maven-checkstyle-plugin.version}</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
Expand Down Expand Up @@ -121,7 +123,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<version>${maven-surefire-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<useFile>false</useFile>
Expand Down Expand Up @@ -149,7 +151,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${release-plugin.version}</version>
<version>${maven-release-plugin.version}</version>
<configuration>
<localCheckout>true</localCheckout>
<pushChanges>false</pushChanges>
Expand All @@ -160,14 +162,14 @@
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>${scm-provider-gitexe.version}</version>
<version>${maven-scm-provider-gitexe.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc-plugin.version}</version>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<sourcepath>${src.dir}</sourcepath>
<doclint>all,-missing</doclint>
Expand All @@ -184,7 +186,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${source-plugin.version}</version>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
Expand Down Expand Up @@ -225,7 +227,7 @@

<developers>
<developer>
<name>ShootHzj</name>
<name>shootHzj</name>
<email>shoothzj@gmail.com</email>
</developer>
</developers>
Expand Down Expand Up @@ -262,7 +264,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down Expand Up @@ -293,12 +295,12 @@
<plugin>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<version>1.18.20.0</version>
<version>${lombok-maven-plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.24</version>
<version>${lombok.version}</version>
</dependency>
</dependencies>
<executions>
Expand Down
Loading