Package org.apache.accumulo.cluster
Interface AccumuloCluster
-
- All Known Implementing Classes:
MiniAccumuloClusterImpl
,StandaloneAccumuloCluster
public interface AccumuloCluster
Defines 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 Modifier and Type Method Description ClientConfiguration
getClientConfig()
Get the client configuration for the clusterClusterControl
getClusterControl()
Get an object that can manage a clusterConnector
getConnector(String user, AuthenticationToken token)
Utility method to get a connector to the cluster.org.apache.hadoop.fs.FileSystem
getFileSystem()
String
getInstanceName()
AccumuloConfiguration
getSiteConfiguration()
Get server side config derived from accumulo-site.xmlorg.apache.hadoop.fs.Path
getTemporaryPath()
String
getZooKeepers()
void
start()
Start the AccumuloClustervoid
stop()
Stop the AccumuloCluster
-
-
-
Method Detail
-
getInstanceName
String getInstanceName()
- Returns:
- Accumulo instance name
-
getZooKeepers
String getZooKeepers()
- Returns:
- zookeeper connection string
-
getConnector
Connector getConnector(String user, AuthenticationToken token) throws AccumuloException, AccumuloSecurityException
Utility method to get a connector to the cluster.
-
getClientConfig
ClientConfiguration getClientConfig()
Get the client configuration for the cluster
-
getSiteConfiguration
AccumuloConfiguration getSiteConfiguration()
Get server side config derived from accumulo-site.xml
-
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
FileSystem
in use by this cluster - Throws:
IOException
-
getTemporaryPath
org.apache.hadoop.fs.Path getTemporaryPath()
- Returns:
- A path on
FileSystem
this cluster is running on that can be used for temporary files
-
-