Package org.apache.ignite.configuration
Class ThinClientConfiguration
- java.lang.Object
-
- org.apache.ignite.configuration.ThinClientConfiguration
-
public class ThinClientConfiguration extends Object
Server-side thin-client configuration. This configuration related only to lightweight (thin) Ignite clients and not related to ODBC and JDBC clients.
-
-
Field Summary
Fields Modifier and Type Field Description static intDFLT_MAX_ACTIVE_COMPUTE_TASKS_PER_CONNECTIONDefault limit of active compute tasks per connection.static intDFLT_MAX_ACTIVE_TX_PER_CONNECTIONDefault limit of active transactions count per connection.
-
Constructor Summary
Constructors Constructor Description ThinClientConfiguration()Creates thin-client configuration with all default values.ThinClientConfiguration(ThinClientConfiguration cfg)Creates thin-client configuration by copying all properties from given configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetMaxActiveComputeTasksPerConnection()Gets active compute tasks per connection limit.intgetMaxActiveTxPerConnection()booleansendServerExceptionStackTraceToClient()ThinClientConfigurationsendServerExceptionStackTraceToClient(boolean sendServerExcStackTraceToClient)Deprecated.UsesetServerToClientExceptionStackTraceSending(boolean)instead.ThinClientConfigurationsetMaxActiveComputeTasksPerConnection(int maxActiveComputeTasksPerConn)Sets active compute tasks per connection limit.ThinClientConfigurationsetMaxActiveTxPerConnection(int maxActiveTxPerConn)Sets active transactions count per connection limit.ThinClientConfigurationsetServerToClientExceptionStackTraceSending(boolean sendStackTrace)StringtoString()
-
-
-
Field Detail
-
DFLT_MAX_ACTIVE_TX_PER_CONNECTION
public static final int DFLT_MAX_ACTIVE_TX_PER_CONNECTION
Default limit of active transactions count per connection.- See Also:
- Constant Field Values
-
DFLT_MAX_ACTIVE_COMPUTE_TASKS_PER_CONNECTION
public static final int DFLT_MAX_ACTIVE_COMPUTE_TASKS_PER_CONNECTION
Default limit of active compute tasks per connection.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ThinClientConfiguration
public ThinClientConfiguration()
Creates thin-client configuration with all default values.
-
ThinClientConfiguration
public ThinClientConfiguration(ThinClientConfiguration cfg)
Creates thin-client configuration by copying all properties from given configuration.- Parameters:
cfg- Configuration to copy.
-
-
Method Detail
-
getMaxActiveTxPerConnection
public int getMaxActiveTxPerConnection()
- Returns:
- Active transactions count per connection limit.
-
setMaxActiveTxPerConnection
public ThinClientConfiguration setMaxActiveTxPerConnection(int maxActiveTxPerConn)
Sets active transactions count per connection limit.- Parameters:
maxActiveTxPerConn- Active transactions count per connection limit.- Returns:
thisfor chaining.
-
getMaxActiveComputeTasksPerConnection
public int getMaxActiveComputeTasksPerConnection()
Gets active compute tasks per connection limit.- Returns:
Trueif compute is enabled for thin client.
-
setMaxActiveComputeTasksPerConnection
public ThinClientConfiguration setMaxActiveComputeTasksPerConnection(int maxActiveComputeTasksPerConn)
Sets active compute tasks per connection limit. Value0means that compute grid functionality is disabled for thin clients.- Parameters:
maxActiveComputeTasksPerConn- Active compute tasks per connection limit.- Returns:
thisfor chaining.
-
sendServerExceptionStackTraceToClient
public boolean sendServerExceptionStackTraceToClient()
- Returns:
- If
truesends a server exception stack to the client side.
-
sendServerExceptionStackTraceToClient
@Deprecated public ThinClientConfiguration sendServerExceptionStackTraceToClient(boolean sendServerExcStackTraceToClient)
Deprecated.UsesetServerToClientExceptionStackTraceSending(boolean)instead.- Parameters:
sendServerExcStackTraceToClient- Iftruesends a server exception stack to the client side.- Returns:
thisfor chaining.
-
setServerToClientExceptionStackTraceSending
public ThinClientConfiguration setServerToClientExceptionStackTraceSending(boolean sendStackTrace)
- Parameters:
sendStackTrace- Iftruesends a server exception stack to the client side.- Returns:
thisfor chaining.
-
-