org.apache.accumulo.core.client
public interface Instance
Modifier and Type | Method and Description |
---|---|
AccumuloConfiguration |
getConfiguration()
Returns the AccumuloConfiguration to use when interacting with this instance.
|
Connector |
getConnector(AuthInfo auth)
Deprecated.
since 1.5, use
getConnector(String, AuthenticationToken) with PasswordToken |
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(AccumuloConfiguration conf)
Set the AccumuloConfiguration to use when interacting with this instance.
|
String getRootTabletLocation()
List<String> getMasterLocations()
String getInstanceID()
String getInstanceName()
String getZooKeepers()
int getZooKeepersSessionTimeOut()
@Deprecated Connector getConnector(String user, byte[] pass) throws AccumuloException, AccumuloSecurityException
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(AuthInfo auth) throws AccumuloException, AccumuloSecurityException
auth
- An Credentials object.AccumuloException
- when a generic exception occursAccumuloSecurityException
- when a user's credentials are invalid@Deprecated Connector getConnector(String user, ByteBuffer pass) throws AccumuloException, AccumuloSecurityException
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
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 invalidAccumuloConfiguration getConfiguration()
void setConfiguration(AccumuloConfiguration conf)
conf
- accumulo configurationConnector 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 © 2014 Apache Accumulo Project. All Rights Reserved.