Class ConnectionConfig
java.lang.Object
org.gridgain.internal.mcp.connection.ConnectionConfig
Configuration for GridGain client connections.
Immutable value object built from McpServerConfiguration.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionConfig(String host, int port, String username, @Nullable String password, boolean sslEnabled, @Nullable String sslTrustStorePath, @Nullable String sslTrustStorePassword, @Nullable String sslKeyStorePath, @Nullable String sslKeyStorePassword, long heartbeatTimeout, long heartbeatInterval, long connectionTimeout, long backgroundReconnectInterval, long queryTimeout, String validationQuery) Builder-style constructor for testing.Creates connection config from MCP server configuration. -
Method Summary
-
Constructor Details
-
ConnectionConfig
Creates connection config from MCP server configuration.- Parameters:
config- Server configuration
-
ConnectionConfig
public ConnectionConfig(String host, int port, String username, @Nullable @Nullable String password, boolean sslEnabled, @Nullable @Nullable String sslTrustStorePath, @Nullable @Nullable String sslTrustStorePassword, @Nullable @Nullable String sslKeyStorePath, @Nullable @Nullable String sslKeyStorePassword, long heartbeatTimeout, long heartbeatInterval, long connectionTimeout, long backgroundReconnectInterval, long queryTimeout, String validationQuery) Builder-style constructor for testing.
-
-
Method Details
-
getHost
-
getPort
public int getPort() -
getUsername
-
getPassword
-
isSslEnabled
public boolean isSslEnabled() -
getSslTrustStorePath
-
getSslTrustStorePassword
-
getSslKeyStorePath
-
getSslKeyStorePassword
-
getHeartbeatTimeout
public long getHeartbeatTimeout() -
getHeartbeatInterval
public long getHeartbeatInterval() -
getConnectionTimeout
public long getConnectionTimeout() -
getBackgroundReconnectInterval
public long getBackgroundReconnectInterval() -
getOperationTimeout
public long getOperationTimeout() -
getValidationQuery
-
toString
-