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 AuthenticationToken
getAuthenticationToken()
org.apache.hadoop.conf.Configuration
getHadoopConf()
String
getInstanceName()
String
getPrincipal()
Properties
getProperties()
String
getZooKeepers()
int
getZooKeepersSessionTimeOut()
boolean
saslEnabled()
static Properties
toProperties(String propertiesFilePath)
static Properties
toProperties(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:
getInstanceName
in interfaceClientInfo
- Returns:
- Accumulo instance name
-
getZooKeepers
public String getZooKeepers()
- Specified by:
getZooKeepers
in interfaceClientInfo
- Returns:
- Zookeeper connection information for Accumulo instance
-
getZooKeepersSessionTimeOut
public int getZooKeepersSessionTimeOut()
- Specified by:
getZooKeepersSessionTimeOut
in interfaceClientInfo
- Returns:
- ZooKeeper connection timeout
-
getPrincipal
public String getPrincipal()
- Specified by:
getPrincipal
in interfaceClientInfo
- Returns:
- Accumulo principal/username
-
getProperties
public Properties getProperties()
- Specified by:
getProperties
in interfaceClientInfo
- Returns:
- All Accumulo client properties set for this connection
-
getAuthenticationToken
public AuthenticationToken getAuthenticationToken()
- Specified by:
getAuthenticationToken
in interfaceClientInfo
- Returns:
AuthenticationToken
used for this connection
-
saslEnabled
public boolean saslEnabled()
- Specified by:
saslEnabled
in 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:
getHadoopConf
in interfaceClientInfo
- Returns:
- hadoop Configuration
-
-