Package com.microsoft.azure.kusto.data
Class ClientFactory
- java.lang.Object
-
- com.microsoft.azure.kusto.data.ClientFactory
-
public class ClientFactory extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClientcreateClient(ConnectionStringBuilder csb)Creates a new Client instance with the given connection string.static ClientcreateClient(ConnectionStringBuilder csb, HttpClientProperties properties)Creates a new Client instance with the given connection string.static StreamingClientcreateStreamingClient(ConnectionStringBuilder csb)Creates a new StreamingClient instance with the given connection string.static StreamingClientcreateStreamingClient(ConnectionStringBuilder csb, HttpClientProperties properties)Creates a new StreamingClient instance with the given connection string.
-
-
-
Method Detail
-
createClient
public static Client createClient(ConnectionStringBuilder csb) throws URISyntaxException
Creates a new Client instance with the given connection string. The underlying HTTP client is created with default settings.- Parameters:
csb- the connection string builder- Returns:
- a fully constructed Client instance
- Throws:
URISyntaxException- if the cluster URL is invalid
-
createClient
public static Client createClient(ConnectionStringBuilder csb, HttpClientProperties properties) throws URISyntaxException
Creates a new Client instance with the given connection string. The underlying HTTP client is customized with the given properties.- Parameters:
csb- the connection string builderproperties- HTTP client properties- Returns:
- a fully constructed Client instance
- Throws:
URISyntaxException- if the cluster URL is invalid
-
createStreamingClient
public static StreamingClient createStreamingClient(ConnectionStringBuilder csb) throws URISyntaxException
Creates a new StreamingClient instance with the given connection string. The underlying HTTP client is created with default settings.- Parameters:
csb- the connection string builder- Returns:
- a fully constructed StreamingClient instance
- Throws:
URISyntaxException- if the cluster URL is invalid
-
createStreamingClient
public static StreamingClient createStreamingClient(ConnectionStringBuilder csb, HttpClientProperties properties) throws URISyntaxException
Creates a new StreamingClient instance with the given connection string. The underlying HTTP client is customized with the given properties.- Parameters:
csb- the connection string builderproperties- HTTP client properties- Returns:
- a fully constructed StreamingClient instance
- Throws:
URISyntaxException- if the cluster URL is invalid
-
-