Package org.apache.accumulo.server
Class ServerContext
- java.lang.Object
-
- org.apache.accumulo.core.clientImpl.ClientContext
-
- org.apache.accumulo.server.ServerContext
-
- All Implemented Interfaces:
AutoCloseable
,AccumuloClient
public class ServerContext extends ClientContext
Provides a server context for Accumulo server components that operate with the system credentials and have access to the system files and configuration.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.core.clientImpl.ClientContext
ClientContext.ClientBuilderImpl<T extends Object>
-
Nested classes/interfaces inherited from interface org.apache.accumulo.core.client.AccumuloClient
AccumuloClient.AuthenticationArgs<T extends Object>, AccumuloClient.ClientFactory<T extends Object>, AccumuloClient.ConnectionOptions<T extends Object>, AccumuloClient.FromOptions<T extends Object>, AccumuloClient.InstanceArgs<T extends Object>, AccumuloClient.PropertyOptions<T extends Object>, AccumuloClient.SaslOptions<T extends Object>, AccumuloClient.SslOptions<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description ServerContext(SiteConfiguration siteConfig)
ServerContext(SiteConfiguration siteConfig, String instanceName, String zooKeepers, int zooKeepersSessionTimeOut)
ServerContext(SiteConfiguration siteConfig, Properties clientProps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccumuloConfiguration
getConfiguration()
CryptoService
getCryptoService()
SaslServerConnectionParams
getSaslParams()
AuthenticationTokenSecretManager
getSecretManager()
ServerConfigurationFactory
getServerConfFactory()
SslConnectionParams
getServerSslParams()
Retrieve the SSL/TLS configuration for starting up a listening serviceTableManager
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-
Methods inherited from class org.apache.accumulo.core.clientImpl.ClientContext
close, createBatchDeleter, createBatchDeleter, createBatchScanner, createBatchScanner, createBatchScanner, createBatchWriter, createBatchWriter, createConditionalWriter, createMultiTableBatchWriter, createMultiTableBatchWriter, createScanner, createScanner, getAuthenticationToken, getBatchWriterConfig, getClientSslParams, getClientTimeoutInMillis, getCredentials, getDeprecatedInstance, getHadoopConf, getInstanceID, getInstanceName, getMasterLocations, getPrincipal, getProperties, getRootTabletLocation, getZooCache, getZooKeeperRoot, getZooKeepers, getZooKeepersSessionTimeOut, instanceOperations, namespaceOperations, properties, replicationOperations, rpcCreds, securityOperations, setCredentials, tableOperations, token, whoami
-
-
-
-
Constructor Detail
-
ServerContext
public ServerContext(SiteConfiguration siteConfig)
-
ServerContext
public ServerContext(SiteConfiguration siteConfig, String instanceName, String zooKeepers, int zooKeepersSessionTimeOut)
-
ServerContext
public ServerContext(SiteConfiguration siteConfig, Properties clientProps)
-
-
Method Detail
-
setupCrypto
public void setupCrypto() throws CryptoService.CryptoException
Should only be called by the Tablet server- Throws:
CryptoService.CryptoException
-
getServerConfFactory
public ServerConfigurationFactory getServerConfFactory()
-
getConfiguration
public AccumuloConfiguration getConfiguration()
- Overrides:
getConfiguration
in classClientContext
-
getVolumeManager
public VolumeManager getVolumeManager()
-
getZooReaderWriter
public ZooReaderWriter getZooReaderWriter()
-
getServerSslParams
public SslConnectionParams getServerSslParams()
Retrieve the SSL/TLS configuration for starting up a listening service
-
getSaslParams
public SaslServerConnectionParams getSaslParams()
- Overrides:
getSaslParams
in classClientContext
-
getThriftServerType
public ThriftServerType getThriftServerType()
Determine the type of Thrift server to instantiate given the server's configuration.- Returns:
- A
ThriftServerType
value to denote the type of Thrift server to construct
-
setSecretManager
public void setSecretManager(AuthenticationTokenSecretManager secretManager)
-
getSecretManager
public AuthenticationTokenSecretManager getSecretManager()
-
getTableManager
public TableManager getTableManager()
-
getUniqueNameAllocator
public UniqueNameAllocator getUniqueNameAllocator()
-
getCryptoService
public CryptoService getCryptoService()
-
-