Package io.pravega.client
Class ClientConfig
- java.lang.Object
- 
- io.pravega.client.ClientConfig
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 @Beta public class ClientConfig extends java.lang.Object implements java.io.SerializableThis class contains configuration that is passed on to Pravega client. Please note that this is an experimental object and the contents and their interpretation may change in future.- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classClientConfig.ClientConfigBuilderThis class overrides the lombok builder.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClientConfig.ClientConfigBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.net.URIgetControllerURI()controllerURI The controller rpc URI.io.pravega.shared.security.auth.CredentialsgetCredentials()Credentials to be passed on to the Pravega controller for authentication and authorization.intgetMaxConnectionsPerSegmentStore()Maximum number of connections per Segment store to be used by connection pooling.io.pravega.shared.metrics.MetricListenergetMetricListener()An optional listener which can be used to get performance metrics from the client.java.lang.StringgetTrustStore()Path to an optional truststore.inthashCode()booleanisEnableTls()Returns whether TLS is enabled for client-to-server (Controller and Segment Store) communications.booleanisEnableTlsToController()booleanisEnableTlsToSegmentStore()booleanisValidateHostName()If the flagisEnableTls()is set, this flag decides whether to enable host name validation or not.ClientConfig.ClientConfigBuildertoBuilder()java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
isEnableTlspublic boolean isEnableTls() Returns whether TLS is enabled for client-to-server (Controller and Segment Store) communications.- Returns:
- trueif TLS is enabled, otherwise returns- false
 
 - 
isEnableTlsToControllerpublic boolean isEnableTlsToController() 
 - 
isEnableTlsToSegmentStorepublic boolean isEnableTlsToSegmentStore() 
 - 
builderpublic static ClientConfig.ClientConfigBuilder builder() 
 - 
toBuilderpublic ClientConfig.ClientConfigBuilder toBuilder() 
 - 
getControllerURIpublic java.net.URI getControllerURI() controllerURI The controller rpc URI. This can be of 2 types 1. tcp://ip1:port1,ip2:port2,... This is used if the controller endpoints are static and can be directly accessed. 2. pravega://ip1:port1,ip2:port2,... This is used to autodiscovery the controller endpoints from an initial controller list.- Returns:
- The controller RPC URI.
 
 - 
getCredentialspublic io.pravega.shared.security.auth.Credentials getCredentials() Credentials to be passed on to the Pravega controller for authentication and authorization.- Returns:
- Pravega controller credentials for authentication and authorization.
 
 - 
getTrustStorepublic java.lang.String getTrustStore() Path to an optional truststore. If this is null or empty, the default JVM trust store is used. This is currently expected to be a signing certificate for the certification authority.- Returns:
- Path to an optional truststore.
 
 - 
isValidateHostNamepublic boolean isValidateHostName() If the flagisEnableTls()is set, this flag decides whether to enable host name validation or not.- Returns:
- Flag to decide whether to enable host name validation or not.
 
 - 
getMaxConnectionsPerSegmentStorepublic int getMaxConnectionsPerSegmentStore() Maximum number of connections per Segment store to be used by connection pooling.- Returns:
- Maximum number of connections per Segment Store for connection pooling.
 
 - 
getMetricListenerpublic io.pravega.shared.metrics.MetricListener getMetricListener() An optional listener which can be used to get performance metrics from the client. The user can implement this interface to obtain performance metrics of the client.- Returns:
- Listener to collect client performance metrics.
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
canEqualprotected boolean canEqual(java.lang.Object other) 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-