Class ClientInfoImpl
- java.lang.Object
-
- org.apache.accumulo.core.clientImpl.ClientInfoImpl
-
- All Implemented Interfaces:
ClientInfo
public class ClientInfoImpl extends Object implements ClientInfo
-
-
Constructor Summary
Constructors Constructor Description ClientInfoImpl(Path propertiesFile)ClientInfoImpl(Properties properties)ClientInfoImpl(Properties properties, AuthenticationToken token)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationTokengetAuthenticationToken()org.apache.hadoop.conf.ConfigurationgetHadoopConf()StringgetInstanceName()StringgetPrincipal()PropertiesgetProperties()StringgetZooKeepers()intgetZooKeepersSessionTimeOut()booleansaslEnabled()static PropertiestoProperties(String propertiesFilePath)static PropertiestoProperties(Path propertiesFile)
-
-
-
Constructor Detail
-
ClientInfoImpl
public ClientInfoImpl(Path propertiesFile)
-
ClientInfoImpl
public ClientInfoImpl(Properties properties)
-
ClientInfoImpl
public ClientInfoImpl(Properties properties, AuthenticationToken token)
-
-
Method Detail
-
getInstanceName
public String getInstanceName()
- Specified by:
getInstanceNamein interfaceClientInfo- Returns:
- Accumulo instance name
-
getZooKeepers
public String getZooKeepers()
- Specified by:
getZooKeepersin interfaceClientInfo- Returns:
- Zookeeper connection information for Accumulo instance
-
getZooKeepersSessionTimeOut
public int getZooKeepersSessionTimeOut()
- Specified by:
getZooKeepersSessionTimeOutin interfaceClientInfo- Returns:
- ZooKeeper connection timeout
-
getPrincipal
public String getPrincipal()
- Specified by:
getPrincipalin interfaceClientInfo- Returns:
- Accumulo principal/username
-
getProperties
public Properties getProperties()
- Specified by:
getPropertiesin interfaceClientInfo- Returns:
- All Accumulo client properties set for this connection
-
getAuthenticationToken
public AuthenticationToken getAuthenticationToken()
- Specified by:
getAuthenticationTokenin interfaceClientInfo- Returns:
AuthenticationTokenused for this connection
-
saslEnabled
public boolean saslEnabled()
- Specified by:
saslEnabledin interfaceClientInfo- Returns:
- True if SASL enabled
-
toProperties
public static Properties toProperties(String propertiesFilePath)
-
toProperties
public static Properties toProperties(Path propertiesFile)
-
getHadoopConf
public org.apache.hadoop.conf.Configuration getHadoopConf()
- Specified by:
getHadoopConfin interfaceClientInfo- Returns:
- hadoop Configuration
-
-