public interface Instance
Modifier and Type | Method and Description |
---|---|
org.apache.accumulo.core.conf.AccumuloConfiguration |
getConfiguration()
Deprecated.
since 1.6.0. This method makes very little sense in the context of the client API
and never should have been exposed.
|
Connector |
getConnector(String principal,
AuthenticationToken token)
Returns a connection to this instance of accumulo.
|
Connector |
getConnector(String user,
byte[] pass)
Deprecated.
since 1.5, use
getConnector(String, AuthenticationToken) with
PasswordToken |
Connector |
getConnector(String user,
ByteBuffer pass)
Deprecated.
since 1.5, use
getConnector(String, AuthenticationToken) with
PasswordToken |
Connector |
getConnector(String user,
CharSequence pass)
Deprecated.
since 1.5, use
getConnector(String, AuthenticationToken) with
PasswordToken |
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 |
getRootTabletLocation()
Returns the location of the tablet server that is serving the root tablet.
|
String |
getZooKeepers()
Returns a comma-separated list of zookeeper servers the instance is using.
|
int |
getZooKeepersSessionTimeOut()
Returns the zookeeper connection timeout.
|
void |
setConfiguration(org.apache.accumulo.core.conf.AccumuloConfiguration conf)
Deprecated.
since 1.6.0. This method makes very little sense in the context of the client API
and never should have been exposed.
|
String getRootTabletLocation()
List<String> getMasterLocations()
String getInstanceID()
String getInstanceName()
String getZooKeepers()
int getZooKeepersSessionTimeOut()
@Deprecated Connector getConnector(String user, byte[] pass) throws AccumuloException, AccumuloSecurityException
getConnector(String, AuthenticationToken)
with
PasswordToken
user
- a valid accumulo userpass
- A UTF-8 encoded password. The password may be cleared after making this call.AccumuloException
- when a generic exception occursAccumuloSecurityException
- when a user's credentials are invalid@Deprecated Connector getConnector(String user, ByteBuffer pass) throws AccumuloException, AccumuloSecurityException
getConnector(String, AuthenticationToken)
with
PasswordToken
user
- a valid accumulo userpass
- A UTF-8 encoded password. The password may be cleared after making this call.AccumuloException
- when a generic exception occursAccumuloSecurityException
- when a user's credentials are invalid@Deprecated Connector getConnector(String user, CharSequence pass) throws AccumuloException, AccumuloSecurityException
getConnector(String, AuthenticationToken)
with
PasswordToken
user
- a valid accumulo userpass
- If a mutable CharSequence is passed in, it may be cleared after this call.AccumuloException
- when a generic exception occursAccumuloSecurityException
- when a user's credentials are invalid@Deprecated org.apache.accumulo.core.conf.AccumuloConfiguration getConfiguration()
for client-side reading of the server-side
configuration.
@Deprecated void setConfiguration(org.apache.accumulo.core.conf.AccumuloConfiguration conf)
conf
- accumulo configurationInstanceOperations.setProperty(String, String)
Connector getConnector(String principal, AuthenticationToken token) throws AccumuloException, AccumuloSecurityException
principal
- a valid accumulo usertoken
- Use the token type configured for the Accumulo instance you are connecting to. An
Accumulo instance with default configurations will use PasswordToken
AccumuloException
AccumuloSecurityException
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.