Package org.apache.accumulo.core.cli
Class ClientOpts
- java.lang.Object
-
- org.apache.accumulo.core.cli.Help
-
- org.apache.accumulo.core.cli.ClientOpts
-
- Direct Known Subclasses:
ClientOnDefaultTable
,ClientOnRequiredTable
,MapReduceClientOpts
public class ClientOpts extends Help
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClientOpts.AuthConverter
static class
ClientOpts.MemoryConverter
static class
ClientOpts.Password
static class
ClientOpts.PasswordConverter
static class
ClientOpts.TimeConverter
static class
ClientOpts.VisibilityConverter
-
Field Summary
Fields Modifier and Type Field Description Authorizations
auths
protected ClientConfiguration
cachedClientConfig
protected Instance
cachedInstance
String
clientConfigFile
boolean
debug
String
instance
String
keytabPath
Map<String,String>
loginProps
boolean
mock
boolean
saslEnabled
String
siteFile
boolean
sslEnabled
boolean
trace
String
zookeepers
-
Constructor Summary
Constructors Constructor Description ClientOpts()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientConfiguration
getClientConfiguration()
Connector
getConnector()
Instance
getInstance()
ClientOpts.Password
getPassword()
String
getPrincipal()
ClientOpts.Password
getSecurePassword()
AuthenticationToken
getToken()
String
getTokenClassName()
void
parseArgs(String programName, String[] args, Object... others)
void
setPassword(ClientOpts.Password password)
void
setPrincipal(String principal)
void
setSecurePassword(ClientOpts.Password securePassword)
void
startDebugLogging()
void
startTracing(String applicationName)
void
stopTracing()
void
updateKerberosCredentials()
Automatically update the options to use a KerberosToken when SASL is enabled for RPCs.void
updateKerberosCredentials(ClientConfiguration clientConfig)
Automatically update the options to use a KerberosToken when SASL is enabled for RPCs.-
Methods inherited from class org.apache.accumulo.core.cli.Help
exit, exitWithError
-
-
-
-
Field Detail
-
zookeepers
public String zookeepers
-
instance
public String instance
-
auths
public Authorizations auths
-
debug
public boolean debug
-
mock
public boolean mock
-
siteFile
public String siteFile
-
sslEnabled
public boolean sslEnabled
-
saslEnabled
public boolean saslEnabled
-
clientConfigFile
public String clientConfigFile
-
trace
public boolean trace
-
keytabPath
public String keytabPath
-
cachedInstance
protected Instance cachedInstance
-
cachedClientConfig
protected ClientConfiguration cachedClientConfig
-
-
Method Detail
-
getToken
public AuthenticationToken getToken()
-
startDebugLogging
public void startDebugLogging()
-
startTracing
public void startTracing(String applicationName)
-
stopTracing
public void stopTracing()
-
updateKerberosCredentials
public void updateKerberosCredentials()
Automatically update the options to use a KerberosToken when SASL is enabled for RPCs. Don't overwrite the options if the user has provided something specifically.
-
updateKerberosCredentials
public void updateKerberosCredentials(ClientConfiguration clientConfig)
Automatically update the options to use a KerberosToken when SASL is enabled for RPCs. Don't overwrite the options if the user has provided something specifically.
-
getInstance
public Instance getInstance()
-
getPrincipal
public String getPrincipal() throws AccumuloSecurityException
- Throws:
AccumuloSecurityException
-
setPrincipal
public void setPrincipal(String principal)
-
getPassword
public ClientOpts.Password getPassword()
-
setPassword
public void setPassword(ClientOpts.Password password)
-
getSecurePassword
public ClientOpts.Password getSecurePassword()
-
setSecurePassword
public void setSecurePassword(ClientOpts.Password securePassword)
-
getTokenClassName
public String getTokenClassName()
-
getConnector
public Connector getConnector() throws AccumuloException, AccumuloSecurityException
-
getClientConfiguration
public ClientConfiguration getClientConfiguration() throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-