Package org.apache.accumulo.cluster
Interface AccumuloCluster
-
- All Known Implementing Classes:
MiniAccumuloClusterImpl,StandaloneAccumuloCluster
public interface AccumuloClusterDefines a minimum required set of methods to run an Accumulo cluster. (Experimental, not guaranteed to stay backwards compatible)- Since:
- 1.6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description AccumuloClientcreateAccumuloClient(String user, AuthenticationToken token)StringgetAccumuloPropertiesPath()ClientConfigurationgetClientConfig()Deprecated.since 2.0.0, replaced bygetClientProperties()}PropertiesgetClientProperties()StringgetClientPropsPath()ClusterControlgetClusterControl()Get an object that can manage a clusterorg.apache.hadoop.fs.FileSystemgetFileSystem()StringgetInstanceName()ServerContextgetServerContext()AccumuloConfigurationgetSiteConfiguration()Get server side config derived from accumulo.propertiesorg.apache.hadoop.fs.PathgetTemporaryPath()StringgetZooKeepers()voidstart()Start the AccumuloClustervoidstop()Stop the AccumuloCluster
-
-
-
Method Detail
-
getInstanceName
String getInstanceName()
- Returns:
- Accumulo instance name
-
getZooKeepers
String getZooKeepers()
- Returns:
- zookeeper connection string
-
getServerContext
ServerContext getServerContext()
- Returns:
- ServerContext
-
createAccumuloClient
AccumuloClient createAccumuloClient(String user, AuthenticationToken token)
- Returns:
AccumuloClientthat must be closed by user- Since:
- 2.0
-
getClientConfig
@Deprecated ClientConfiguration getClientConfig()
Deprecated.since 2.0.0, replaced bygetClientProperties()}Get the client configuration for the cluster
-
getClientProperties
Properties getClientProperties()
- Returns:
- client connection info for cluster
-
getSiteConfiguration
AccumuloConfiguration getSiteConfiguration()
Get server side config derived from accumulo.properties
-
getAccumuloPropertiesPath
String getAccumuloPropertiesPath()
- Returns:
- Path to accumulo.properties
- Since:
- 2.0.0
-
getClientPropsPath
String getClientPropsPath()
- Returns:
- Path to accumulo-client.properties
- Since:
- 2.0.0
-
getClusterControl
ClusterControl getClusterControl()
Get an object that can manage a cluster- Returns:
- Manage the state of the cluster
-
getFileSystem
org.apache.hadoop.fs.FileSystem getFileSystem() throws IOException- Returns:
- the
FileSystemin use by this cluster - Throws:
IOException
-
getTemporaryPath
org.apache.hadoop.fs.Path getTemporaryPath()
- Returns:
- A path on
FileSystemthis cluster is running on that can be used for temporary files
-
-