Class ClientExceptionsUtils
- java.lang.Object
-
- org.apache.ignite.spi.communication.tcp.ClientExceptionsUtils
-
public class ClientExceptionsUtils extends Object
Utils to analyze client-related exceptions.
-
-
Constructor Summary
Constructors Constructor Description ClientExceptionsUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisAttemptToEstablishDirectConnectionWhenOnlyInverseIsAllowed(Throwable t)Returnstrueif the exception that is provided is thrown because an attempt to open a direct connection was made while only inverse connections are allowed.static booleanisClientNodeTopologyException(Throwable t, ClusterNode node)Returnstrueif the exception relates to cluster topology change that prevents a connection, AND the given node is client.
-
-
-
Method Detail
-
isClientNodeTopologyException
public static boolean isClientNodeTopologyException(Throwable t, ClusterNode node)
Returnstrueif the exception relates to cluster topology change that prevents a connection, AND the given node is client.- Parameters:
t- The exception we analyze.node- Node to which we tried to send a message, but the send produced the given exception.- Returns:
trueif the exception relates to cluster topology change that prevents a connection, AND the given node is client.
-
isAttemptToEstablishDirectConnectionWhenOnlyInverseIsAllowed
public static boolean isAttemptToEstablishDirectConnectionWhenOnlyInverseIsAllowed(Throwable t)
Returnstrueif the exception that is provided is thrown because an attempt to open a direct connection was made while only inverse connections are allowed.- Parameters:
t- Exception to inspect.- Returns:
trueif the exception that is provided is thrown because an attempt to open a direct connection was made while only inverse connections are allowed.
-
-