public class ServerContext extends ClientContext
ClientContext.ClientBuilderImpl<T>
AccumuloClient.AuthenticationArgs<T>, AccumuloClient.ClientFactory<T>, AccumuloClient.ConnectionOptions<T>, AccumuloClient.FromOptions<T>, AccumuloClient.InstanceArgs<T>, AccumuloClient.PropertyOptions<T>, AccumuloClient.SaslOptions<T>, AccumuloClient.SslOptions<T>
Constructor and Description |
---|
ServerContext(SiteConfiguration siteConfig) |
ServerContext(SiteConfiguration siteConfig,
Properties clientProps) |
ServerContext(SiteConfiguration siteConfig,
String instanceName,
String zooKeepers,
int zooKeepersSessionTimeOut) |
Modifier and Type | Method and Description |
---|---|
AccumuloConfiguration |
getConfiguration() |
CryptoService |
getCryptoService() |
String |
getHostname() |
SaslServerConnectionParams |
getSaslParams() |
AuthenticationTokenSecretManager |
getSecretManager() |
ServerConfigurationFactory |
getServerConfFactory() |
SslConnectionParams |
getServerSslParams()
Retrieve the SSL/TLS configuration for starting up a listening service
|
TableManager |
getTableManager() |
ThriftServerType |
getThriftServerType()
Determine the type of Thrift server to instantiate given the server's configuration.
|
UniqueNameAllocator |
getUniqueNameAllocator() |
VolumeManager |
getVolumeManager() |
ZooReaderWriter |
getZooReaderWriter() |
void |
setSecretManager(AuthenticationTokenSecretManager secretManager) |
void |
setupCrypto()
Should only be called by the Tablet server
|
void |
setupServer(String appName,
String appClassName,
String hostname) |
void |
teardownServer() |
close, createBatchDeleter, createBatchDeleter, createBatchScanner, createBatchScanner, createBatchScanner, createBatchWriter, createBatchWriter, createConditionalWriter, createMultiTableBatchWriter, createMultiTableBatchWriter, createScanner, createScanner, getAuthenticationToken, getBatchWriterConfig, getClientSslParams, getClientTimeoutInMillis, getCredentials, getDeprecatedInstance, getInstanceID, getInstanceName, getMasterLocations, getPrincipal, getProperties, getRootTabletLocation, getZooCache, getZooKeeperRoot, getZooKeepers, getZooKeepersSessionTimeOut, instanceOperations, namespaceOperations, properties, replicationOperations, rpcCreds, securityOperations, setCredentials, tableOperations, token, whoami
public ServerContext(SiteConfiguration siteConfig)
public ServerContext(SiteConfiguration siteConfig, String instanceName, String zooKeepers, int zooKeepersSessionTimeOut)
public ServerContext(SiteConfiguration siteConfig, Properties clientProps)
public void setupCrypto() throws CryptoService.CryptoException
CryptoService.CryptoException
public void teardownServer()
public String getHostname()
public ServerConfigurationFactory getServerConfFactory()
public AccumuloConfiguration getConfiguration()
getConfiguration
in class ClientContext
public VolumeManager getVolumeManager()
public ZooReaderWriter getZooReaderWriter()
public SslConnectionParams getServerSslParams()
public SaslServerConnectionParams getSaslParams()
getSaslParams
in class ClientContext
public ThriftServerType getThriftServerType()
ThriftServerType
value to denote the type of Thrift server to constructpublic void setSecretManager(AuthenticationTokenSecretManager secretManager)
public AuthenticationTokenSecretManager getSecretManager()
public TableManager getTableManager()
public UniqueNameAllocator getUniqueNameAllocator()
public CryptoService getCryptoService()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.