Class ConnectionConfig

java.lang.Object
org.gridgain.internal.mcp.connection.ConnectionConfig

public class ConnectionConfig extends Object
Configuration for GridGain client connections. Immutable value object built from McpServerConfiguration.
  • Constructor Details

    • ConnectionConfig

      public ConnectionConfig(McpServerConfiguration config)
      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

      public String getHost()
    • getPort

      public int getPort()
    • getUsername

      public String getUsername()
    • getPassword

      @Nullable public @Nullable String getPassword()
    • isSslEnabled

      public boolean isSslEnabled()
    • getSslTrustStorePath

      @Nullable public @Nullable String getSslTrustStorePath()
    • getSslTrustStorePassword

      @Nullable public @Nullable String getSslTrustStorePassword()
    • getSslKeyStorePath

      @Nullable public @Nullable String getSslKeyStorePath()
    • getSslKeyStorePassword

      @Nullable public @Nullable String getSslKeyStorePassword()
    • getHeartbeatTimeout

      public long getHeartbeatTimeout()
    • getHeartbeatInterval

      public long getHeartbeatInterval()
    • getConnectionTimeout

      public long getConnectionTimeout()
    • getBackgroundReconnectInterval

      public long getBackgroundReconnectInterval()
    • getOperationTimeout

      public long getOperationTimeout()
    • getValidationQuery

      public String getValidationQuery()
    • toString

      public String toString()
      Overrides:
      toString in class Object