public class ClientInfoImpl extends Object implements ClientInfo
Constructor and Description |
---|
ClientInfoImpl(Path propertiesFile) |
ClientInfoImpl(Properties properties) |
ClientInfoImpl(Properties properties,
AuthenticationToken token) |
Modifier and Type | Method and Description |
---|---|
AuthenticationToken |
getAuthenticationToken() |
String |
getInstanceName() |
String |
getPrincipal() |
Properties |
getProperties() |
String |
getZooKeepers() |
int |
getZooKeepersSessionTimeOut() |
boolean |
saslEnabled() |
static Properties |
toProperties(Path propertiesFile) |
static Properties |
toProperties(String propertiesFilePath) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
from, from, from
public ClientInfoImpl(Path propertiesFile)
public ClientInfoImpl(Properties properties)
public ClientInfoImpl(Properties properties, AuthenticationToken token)
public String getInstanceName()
getInstanceName
in interface ClientInfo
public String getZooKeepers()
getZooKeepers
in interface ClientInfo
public int getZooKeepersSessionTimeOut()
getZooKeepersSessionTimeOut
in interface ClientInfo
public String getPrincipal()
getPrincipal
in interface ClientInfo
public Properties getProperties()
getProperties
in interface ClientInfo
public AuthenticationToken getAuthenticationToken()
getAuthenticationToken
in interface ClientInfo
AuthenticationToken
used for this connectionpublic boolean saslEnabled()
saslEnabled
in interface ClientInfo
public static Properties toProperties(String propertiesFilePath)
public static Properties toProperties(Path propertiesFile)
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.