[#32] Provide a pool of clients to grpc
Signed-off-by: Ori Bruk <o.bruk@yadro.com>
This commit is contained in:
parent
3c3ed76727
commit
e9e9480701
56 changed files with 1712 additions and 59 deletions
|
@ -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>
|
||||
|
|
|
@ -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 ";
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
package info.frostfs.sdk.exceptions;
|
||||
|
||||
public class SessionExpiredFrostFSException extends FrostFSException {
|
||||
|
||||
public SessionExpiredFrostFSException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package info.frostfs.sdk.exceptions;
|
||||
|
||||
public class SessionNotFoundFrostFSException extends FrostFSException {
|
||||
|
||||
public SessionNotFoundFrostFSException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
package info.frostfs.sdk.exceptions;
|
||||
|
||||
public class TimeoutFrostFSException extends RuntimeException {
|
||||
public class TimeoutFrostFSException extends FrostFSException {
|
||||
public TimeoutFrostFSException() {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue