Interface ClientInfo
-
- All Known Implementing Classes:
ClientInfoImpl
public interface ClientInfoAccumulo client information. Can be built usingAccumulo.newClient()- Since:
- 2.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ClientInfofrom(URL propertiesURL)static ClientInfofrom(Path propertiesFile)static ClientInfofrom(Properties properties)static ClientInfofrom(Properties properties, AuthenticationToken token)AuthenticationTokengetAuthenticationToken()org.apache.hadoop.conf.ConfigurationgetHadoopConf()StringgetInstanceName()StringgetPrincipal()PropertiesgetProperties()StringgetZooKeepers()intgetZooKeepersSessionTimeOut()booleansaslEnabled()
-
-
-
Method Detail
-
getInstanceName
String getInstanceName()
- Returns:
- Accumulo instance name
-
getZooKeepers
String getZooKeepers()
- Returns:
- Zookeeper connection information for Accumulo instance
-
getZooKeepersSessionTimeOut
int getZooKeepersSessionTimeOut()
- Returns:
- ZooKeeper connection timeout
-
getPrincipal
String getPrincipal()
- Returns:
- Accumulo principal/username
-
getAuthenticationToken
AuthenticationToken getAuthenticationToken()
- Returns:
AuthenticationTokenused for this connection
-
saslEnabled
boolean saslEnabled()
- Returns:
- True if SASL enabled
-
getProperties
Properties getProperties()
- Returns:
- All Accumulo client properties set for this connection
-
getHadoopConf
org.apache.hadoop.conf.Configuration getHadoopConf()
- Returns:
- hadoop Configuration
-
from
static ClientInfo from(Properties properties)
- Returns:
- ClientInfo given properties
-
from
static ClientInfo from(URL propertiesURL)
- Returns:
- ClientInfo given URL path to client config file
-
from
static ClientInfo from(Properties properties, AuthenticationToken token)
- Returns:
- ClientInfo given properties and token
-
from
static ClientInfo from(Path propertiesFile)
- Returns:
- ClientInfo given path to client config file
-
-