public class ClientContext extends Object
Modifier and Type | Field and Description |
---|---|
protected AccumuloClient |
client |
Constructor and Description |
---|
ClientContext(ClientInfo info) |
ClientContext(ClientInfo info,
AccumuloConfiguration serverConf) |
Modifier and Type | Method and Description |
---|---|
AuthenticationToken |
getAuthenticationToken() |
BatchWriterConfig |
getBatchWriterConfig() |
AccumuloClient |
getClient()
Retrieve an Accumulo client
|
ClientInfo |
getClientInfo() |
SslConnectionParams |
getClientSslParams()
Retrieve SSL/TLS configuration to initiate an RPC connection to a server
|
long |
getClientTimeoutInMillis()
Retrieve the universal RPC client timeout from the configuration
|
AccumuloConfiguration |
getConfiguration()
Retrieve the configuration used to construct this context
|
Credentials |
getCredentials()
Retrieve the credentials used to construct this context
|
Instance |
getDeprecatedInstance()
Deprecated.
since 2.0.0
|
String |
getInstanceID()
Returns a unique string that identifies this instance of accumulo.
|
String |
getInstanceName()
Returns the instance name given at system initialization time.
|
List<String> |
getMasterLocations()
Returns the location(s) of the accumulo master and any redundant servers.
|
String |
getPrincipal() |
Properties |
getProperties() |
String |
getRootTabletLocation()
Returns the location of the tablet server that is serving the root tablet.
|
SaslConnectionParams |
getSaslParams()
Retrieve SASL configuration to initiate an RPC connection to a server
|
ZooCache |
getZooCache() |
String |
getZooKeeperRoot() |
String |
getZooKeepers()
Returns a comma-separated list of zookeeper servers the instance is using.
|
int |
getZooKeepersSessionTimeOut()
Returns the zookeeper connection timeout.
|
TCredentials |
rpcCreds()
Serialize the credentials just before initiating the RPC call
|
void |
setCredentials(Credentials newCredentials)
Update the credentials in the current context after changing the current user's password or
other auth token
|
protected AccumuloClient client
public ClientContext(ClientInfo info)
public ClientContext(ClientInfo info, AccumuloConfiguration serverConf)
@Deprecated public Instance getDeprecatedInstance()
public ClientInfo getClientInfo()
public Credentials getCredentials()
public String getPrincipal()
public AuthenticationToken getAuthenticationToken()
public Properties getProperties()
public void setCredentials(Credentials newCredentials)
public AccumuloConfiguration getConfiguration()
public long getClientTimeoutInMillis()
public SslConnectionParams getClientSslParams()
public SaslConnectionParams getSaslParams()
public AccumuloClient getClient() throws AccumuloException, AccumuloSecurityException
public BatchWriterConfig getBatchWriterConfig()
public TCredentials rpcCreds()
public String getRootTabletLocation()
public List<String> getMasterLocations()
public String getInstanceID()
public String getZooKeeperRoot()
public String getInstanceName()
public String getZooKeepers()
public int getZooKeepersSessionTimeOut()
public ZooCache getZooCache()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.