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 int
DFLT_MAX_ACTIVE_COMPUTE_TASKS_PER_CONNECTION
Default limit of active compute tasks per connection.static int
DFLT_MAX_ACTIVE_TX_PER_CONNECTION
Default 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 int
getMaxActiveComputeTasksPerConnection()
Gets active compute tasks per connection limit.int
getMaxActiveTxPerConnection()
boolean
sendServerExceptionStackTraceToClient()
ThinClientConfiguration
sendServerExceptionStackTraceToClient(boolean sendServerExcStackTraceToClient)
Deprecated.UsesetServerToClientExceptionStackTraceSending(boolean)
instead.ThinClientConfiguration
setMaxActiveComputeTasksPerConnection(int maxActiveComputeTasksPerConn)
Sets active compute tasks per connection limit.ThinClientConfiguration
setMaxActiveTxPerConnection(int maxActiveTxPerConn)
Sets active transactions count per connection limit.ThinClientConfiguration
setServerToClientExceptionStackTraceSending(boolean sendStackTrace)
String
toString()
-
-
-
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:
this
for chaining.
-
getMaxActiveComputeTasksPerConnection
public int getMaxActiveComputeTasksPerConnection()
Gets active compute tasks per connection limit.- Returns:
True
if compute is enabled for thin client.
-
setMaxActiveComputeTasksPerConnection
public ThinClientConfiguration setMaxActiveComputeTasksPerConnection(int maxActiveComputeTasksPerConn)
Sets active compute tasks per connection limit. Value0
means that compute grid functionality is disabled for thin clients.- Parameters:
maxActiveComputeTasksPerConn
- Active compute tasks per connection limit.- Returns:
this
for chaining.
-
sendServerExceptionStackTraceToClient
public boolean sendServerExceptionStackTraceToClient()
- Returns:
- If
true
sends a server exception stack to the client side.
-
sendServerExceptionStackTraceToClient
@Deprecated public ThinClientConfiguration sendServerExceptionStackTraceToClient(boolean sendServerExcStackTraceToClient)
Deprecated.UsesetServerToClientExceptionStackTraceSending(boolean)
instead.- Parameters:
sendServerExcStackTraceToClient
- Iftrue
sends a server exception stack to the client side.- Returns:
this
for chaining.
-
setServerToClientExceptionStackTraceSending
public ThinClientConfiguration setServerToClientExceptionStackTraceSending(boolean sendStackTrace)
- Parameters:
sendStackTrace
- Iftrue
sends a server exception stack to the client side.- Returns:
this
for chaining.
-
-