Package org.apache.accumulo.core.client
Interface Instance
- All Known Implementing Classes:
MiniAccumuloInstance
,ZooKeeperInstance
Deprecated.
This class represents the information a client needs to know to connect to an instance of
accumulo.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Connector
getConnector
(String user, byte[] pass) Deprecated.since 1.5, usegetConnector(String, AuthenticationToken)
withPasswordToken
default Connector
getConnector
(String user, CharSequence pass) Deprecated.since 1.5, usegetConnector(String, AuthenticationToken)
withPasswordToken
default Connector
getConnector
(String user, ByteBuffer pass) Deprecated.since 1.5, usegetConnector(String, AuthenticationToken)
withPasswordToken
getConnector
(String principal, AuthenticationToken token) Deprecated.Returns a connection to this instance of accumulo.Deprecated.Returns a unique string that identifies this instance of accumulo.Deprecated.Returns the instance name given at system initialization time.Deprecated.Returns the location(s) of the accumulo manager and any redundant servers.Deprecated.Returns the location of the tablet server that is serving the root tablet.Deprecated.Returns a comma-separated list of zookeeper servers the instance is using.int
Deprecated.Returns the zookeeper connection timeout.
-
Method Details
-
getRootTabletLocation
String getRootTabletLocation()Deprecated.Returns the location of the tablet server that is serving the root tablet.- Returns:
- location in "hostname:port" form
-
getMasterLocations
Deprecated.Returns the location(s) of the accumulo manager and any redundant servers.- Returns:
- a list of locations in "hostname:port" form
-
getInstanceID
String getInstanceID()Deprecated.Returns a unique string that identifies this instance of accumulo.- Returns:
- a UUID
-
getInstanceName
String getInstanceName()Deprecated.Returns the instance name given at system initialization time.- Returns:
- current instance name
-
getZooKeepers
String getZooKeepers()Deprecated.Returns a comma-separated list of zookeeper servers the instance is using.- Returns:
- the zookeeper servers this instance is using in "hostname:port" form
-
getZooKeepersSessionTimeOut
int getZooKeepersSessionTimeOut()Deprecated.Returns the zookeeper connection timeout.- Returns:
- the configured timeout to connect to zookeeper
-
getConnector
@Deprecated(since="1.5.0") default Connector getConnector(String user, byte[] pass) throws AccumuloException, AccumuloSecurityException Deprecated.since 1.5, usegetConnector(String, AuthenticationToken)
withPasswordToken
Returns a connection to accumulo.- Parameters:
user
- a valid accumulo userpass
- A UTF-8 encoded password. The password may be cleared after making this call.- Returns:
- the accumulo Connector
- Throws:
AccumuloException
- when a generic exception occursAccumuloSecurityException
- when a user's credentials are invalid
-
getConnector
@Deprecated(since="1.5.0") default Connector getConnector(String user, ByteBuffer pass) throws AccumuloException, AccumuloSecurityException Deprecated.since 1.5, usegetConnector(String, AuthenticationToken)
withPasswordToken
Returns a connection to accumulo.- Parameters:
user
- a valid accumulo userpass
- A UTF-8 encoded password. The password may be cleared after making this call.- Returns:
- the accumulo Connector
- Throws:
AccumuloException
- when a generic exception occursAccumuloSecurityException
- when a user's credentials are invalid
-
getConnector
@Deprecated(since="1.5.0") default Connector getConnector(String user, CharSequence pass) throws AccumuloException, AccumuloSecurityException Deprecated.since 1.5, usegetConnector(String, AuthenticationToken)
withPasswordToken
Returns a connection to this instance of accumulo.- Parameters:
user
- a valid accumulo userpass
- If a mutable CharSequence is passed in, it may be cleared after this call.- Returns:
- the accumulo Connector
- Throws:
AccumuloException
- when a generic exception occursAccumuloSecurityException
- when a user's credentials are invalid
-
getConnector
Connector getConnector(String principal, AuthenticationToken token) throws AccumuloException, AccumuloSecurityException Deprecated.Returns a connection to this instance of accumulo.- Parameters:
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 usePasswordToken
- Throws:
AccumuloException
AccumuloSecurityException
- Since:
- 1.5.0
-
Accumulo.newClient()
andProperties
instead