Interface ClientInfo
-
- All Known Implementing Classes:
ClientInfoImpl
public interface ClientInfo
Accumulo 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 ClientInfo
from(URL propertiesURL)
static ClientInfo
from(Path propertiesFile)
static ClientInfo
from(Properties properties)
static ClientInfo
from(Properties properties, AuthenticationToken token)
AuthenticationToken
getAuthenticationToken()
org.apache.hadoop.conf.Configuration
getHadoopConf()
String
getInstanceName()
String
getPrincipal()
Properties
getProperties()
String
getZooKeepers()
int
getZooKeepersSessionTimeOut()
boolean
saslEnabled()
-
-
-
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:
AuthenticationToken
used 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
-
-