|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Instance
This class represents the information a client needs to know to connect to an instance of accumulo.
Method Summary | |
---|---|
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(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. |
Method Detail |
---|
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 occurs
AccumuloSecurityException
- 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 occurs
AccumuloSecurityException
- 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 occurs
AccumuloSecurityException
- when a user's credentials are invalid@Deprecated AccumuloConfiguration getConfiguration()
for client-side reading of the server-side configuration.
@Deprecated void setConfiguration(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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |