[#32] Provide a pool of clients to grpc
All checks were successful
DCO / DCO (pull_request) Successful in 25s
Verify code phase / Verify code (pull_request) Successful in 1m49s

Signed-off-by: Ori Bruk <o.bruk@yadro.com>
This commit is contained in:
Ori Bruk 2025-01-16 19:15:43 +03:00
parent 3c3ed76727
commit e9e9480701
56 changed files with 1712 additions and 59 deletions

View file

@ -6,7 +6,7 @@
<parent>
<groupId>info.frostfs.sdk</groupId>
<artifactId>frostfs-sdk-java</artifactId>
<version>0.1.0</version>
<version>0.2.0</version>
</parent>
<artifactId>exceptions</artifactId>

View file

@ -40,6 +40,11 @@ public class ErrorConst {
public static final String WRONG_UUID_SIZE_TEMPLATE = "uuid byte array length must be %s";
public static final String POOL_CLIENT_UNHEALTHY = "pool client unhealthy";
public static final String POOL_PEERS_IS_MISSING = "no FrostFS peers configured";
public static final String POOL_NODES_UNHEALTHY = "at least one node must be healthy";
public static final String POOL_CLIENTS_UNHEALTHY = "cannot find alive client";
public static final String POOL_NOT_DIALED = "pool not dialed";
public static final String FIELDS_DELIMITER_COMMA = ", ";
public static final String FIELDS_DELIMITER_OR = " or ";

View file

@ -0,0 +1,15 @@
package info.frostfs.sdk.exceptions;
public class FrostFSException extends RuntimeException {
public FrostFSException() {
}
public FrostFSException(String message) {
super(message);
}
public FrostFSException(Throwable cause) {
super(cause);
}
}

View file

@ -1,6 +1,6 @@
package info.frostfs.sdk.exceptions;
public class ProcessFrostFSException extends RuntimeException {
public class ProcessFrostFSException extends FrostFSException {
public ProcessFrostFSException(String message) {
super(message);
}

View file

@ -0,0 +1,8 @@
package info.frostfs.sdk.exceptions;
public class SessionExpiredFrostFSException extends FrostFSException {
public SessionExpiredFrostFSException(String message) {
super(message);
}
}

View file

@ -0,0 +1,8 @@
package info.frostfs.sdk.exceptions;
public class SessionNotFoundFrostFSException extends FrostFSException {
public SessionNotFoundFrostFSException(String message) {
super(message);
}
}

View file

@ -1,6 +1,6 @@
package info.frostfs.sdk.exceptions;
public class TimeoutFrostFSException extends RuntimeException {
public class TimeoutFrostFSException extends FrostFSException {
public TimeoutFrostFSException() {
}
}

View file

@ -1,6 +1,6 @@
package info.frostfs.sdk.exceptions;
public class ValidationFrostFSException extends RuntimeException {
public class ValidationFrostFSException extends FrostFSException {
public ValidationFrostFSException(String message) {
super(message);
}