|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.client.impl.HdfsZooInstance
public class HdfsZooInstance
An implementation of Instance that looks in HDFS and ZooKeeper to find the master and root tablet location.
Nested Class Summary | |
---|---|
static class |
HdfsZooInstance.AccumuloNotInitializedException
|
Constructor Summary | |
---|---|
protected |
HdfsZooInstance()
|
Method Summary | |
---|---|
AccumuloConfiguration |
getConfiguration()
get the AccumuloConfiguration to use when interacting with this instance |
Connector |
getConnector(java.lang.String user,
byte[] pass)
|
Connector |
getConnector(java.lang.String user,
java.lang.CharSequence pass)
|
static Instance |
getInstance()
|
java.lang.String |
getInstanceID()
Get a unique string that identifies this instance of accumulo. |
java.lang.String |
getInstanceName()
Returns the instance name given at system initialization time. |
java.util.List<java.lang.String> |
getMasterLocations()
Get the location(s) of the accumulo master and any redundant servers. |
java.lang.String |
getRootTabletLocation()
Get the location of the tablet server that is serving the root tablet. |
java.lang.String |
getZooKeepers()
|
int |
getZooKeepersSessionTimeOut()
|
static java.lang.String |
lookupInstanceName(ZooCache zooCache,
java.util.UUID instanceId)
|
static void |
main(java.lang.String[] args)
|
void |
setConfiguration(AccumuloConfiguration conf)
set the AccumuloConfiguration to use when interacting with this instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected HdfsZooInstance()
Method Detail |
---|
public static Instance getInstance()
public static java.lang.String lookupInstanceName(ZooCache zooCache, java.util.UUID instanceId)
public java.lang.String getRootTabletLocation()
Instance
getRootTabletLocation
in interface Instance
public java.util.List<java.lang.String> getMasterLocations()
Instance
getMasterLocations
in interface Instance
public java.lang.String getInstanceID()
Instance
getInstanceID
in interface Instance
public java.lang.String getInstanceName()
Instance
getInstanceName
in interface Instance
public java.lang.String getZooKeepers()
getZooKeepers
in interface Instance
public int getZooKeepersSessionTimeOut()
getZooKeepersSessionTimeOut
in interface Instance
public Connector getConnector(java.lang.String user, byte[] pass) throws AccumuloException, AccumuloSecurityException
getConnector
in interface Instance
pass
- A UTF-8 encoded password. The password may be cleared after making this call.
AccumuloException
AccumuloSecurityException
public Connector getConnector(java.lang.String user, java.lang.CharSequence pass) throws AccumuloException, AccumuloSecurityException
getConnector
in interface Instance
pass
- If a mutable CharSequence is passed in, it may be cleared after this call.
AccumuloException
AccumuloSecurityException
public AccumuloConfiguration getConfiguration()
Instance
getConfiguration
in interface Instance
public void setConfiguration(AccumuloConfiguration conf)
Instance
setConfiguration
in interface Instance
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |