org.apache.accumulo.server.client
Class ClientServiceHandler
java.lang.Object
org.apache.accumulo.server.client.ClientServiceHandler
- All Implemented Interfaces:
- ClientService.Iface
- Direct Known Subclasses:
- NullTserver.ThriftClientHandler
public class ClientServiceHandler
- extends Object
- implements ClientService.Iface
Method Summary |
boolean |
authenticateUser(TInfo tinfo,
AuthInfo credentials,
String user,
ByteBuffer password)
|
List<String> |
bulkImportFiles(TInfo tinfo,
AuthInfo credentials,
long tid,
String tableId,
List<String> files,
String errorDir,
boolean setTime)
|
void |
changeAuthorizations(TInfo tinfo,
AuthInfo credentials,
String user,
List<ByteBuffer> authorizations)
|
void |
changePassword(TInfo tinfo,
AuthInfo credentials,
String user,
ByteBuffer password)
|
boolean |
checkClass(TInfo tinfo,
String className,
String interfaceMatch)
|
protected String |
checkTableId(String tableName,
TableOperation operation)
|
void |
createUser(TInfo tinfo,
AuthInfo credentials,
String user,
ByteBuffer password,
List<ByteBuffer> authorizations)
|
void |
dropUser(TInfo tinfo,
AuthInfo credentials,
String user)
|
Map<String,String> |
getConfiguration(ConfigurationType type)
|
String |
getInstanceId()
|
String |
getRootTabletLocation()
|
Map<String,String> |
getTableConfiguration(String tableName)
|
List<ByteBuffer> |
getUserAuthorizations(TInfo tinfo,
AuthInfo credentials,
String user)
|
String |
getZooKeepers()
|
void |
grantSystemPermission(TInfo tinfo,
AuthInfo credentials,
String user,
byte permission)
|
void |
grantTablePermission(TInfo tinfo,
AuthInfo credentials,
String user,
String tableName,
byte permission)
|
boolean |
hasSystemPermission(TInfo tinfo,
AuthInfo credentials,
String user,
byte sysPerm)
|
boolean |
hasTablePermission(TInfo tinfo,
AuthInfo credentials,
String user,
String tableName,
byte tblPerm)
|
boolean |
isActive(TInfo tinfo,
long tid)
|
Set<String> |
listUsers(TInfo tinfo,
AuthInfo credentials)
|
void |
ping(AuthInfo credentials)
|
void |
revokeSystemPermission(TInfo tinfo,
AuthInfo credentials,
String user,
byte permission)
|
void |
revokeTablePermission(TInfo tinfo,
AuthInfo credentials,
String user,
String tableName,
byte permission)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientServiceHandler
public ClientServiceHandler(TransactionWatcher transactionWatcher)
checkTableId
protected String checkTableId(String tableName,
TableOperation operation)
throws ThriftTableOperationException
- Throws:
ThriftTableOperationException
getInstanceId
public String getInstanceId()
- Specified by:
getInstanceId
in interface ClientService.Iface
getRootTabletLocation
public String getRootTabletLocation()
- Specified by:
getRootTabletLocation
in interface ClientService.Iface
getZooKeepers
public String getZooKeepers()
- Specified by:
getZooKeepers
in interface ClientService.Iface
ping
public void ping(AuthInfo credentials)
- Specified by:
ping
in interface ClientService.Iface
authenticateUser
public boolean authenticateUser(TInfo tinfo,
AuthInfo credentials,
String user,
ByteBuffer password)
throws ThriftSecurityException
- Specified by:
authenticateUser
in interface ClientService.Iface
- Throws:
ThriftSecurityException
changeAuthorizations
public void changeAuthorizations(TInfo tinfo,
AuthInfo credentials,
String user,
List<ByteBuffer> authorizations)
throws ThriftSecurityException
- Specified by:
changeAuthorizations
in interface ClientService.Iface
- Throws:
ThriftSecurityException
changePassword
public void changePassword(TInfo tinfo,
AuthInfo credentials,
String user,
ByteBuffer password)
throws ThriftSecurityException
- Specified by:
changePassword
in interface ClientService.Iface
- Throws:
ThriftSecurityException
createUser
public void createUser(TInfo tinfo,
AuthInfo credentials,
String user,
ByteBuffer password,
List<ByteBuffer> authorizations)
throws ThriftSecurityException
- Specified by:
createUser
in interface ClientService.Iface
- Throws:
ThriftSecurityException
dropUser
public void dropUser(TInfo tinfo,
AuthInfo credentials,
String user)
throws ThriftSecurityException
- Specified by:
dropUser
in interface ClientService.Iface
- Throws:
ThriftSecurityException
getUserAuthorizations
public List<ByteBuffer> getUserAuthorizations(TInfo tinfo,
AuthInfo credentials,
String user)
throws ThriftSecurityException
- Specified by:
getUserAuthorizations
in interface ClientService.Iface
- Throws:
ThriftSecurityException
grantSystemPermission
public void grantSystemPermission(TInfo tinfo,
AuthInfo credentials,
String user,
byte permission)
throws ThriftSecurityException
- Specified by:
grantSystemPermission
in interface ClientService.Iface
- Throws:
ThriftSecurityException
grantTablePermission
public void grantTablePermission(TInfo tinfo,
AuthInfo credentials,
String user,
String tableName,
byte permission)
throws ThriftSecurityException,
ThriftTableOperationException
- Specified by:
grantTablePermission
in interface ClientService.Iface
- Throws:
ThriftSecurityException
ThriftTableOperationException
revokeSystemPermission
public void revokeSystemPermission(TInfo tinfo,
AuthInfo credentials,
String user,
byte permission)
throws ThriftSecurityException
- Specified by:
revokeSystemPermission
in interface ClientService.Iface
- Throws:
ThriftSecurityException
revokeTablePermission
public void revokeTablePermission(TInfo tinfo,
AuthInfo credentials,
String user,
String tableName,
byte permission)
throws ThriftSecurityException,
ThriftTableOperationException
- Specified by:
revokeTablePermission
in interface ClientService.Iface
- Throws:
ThriftSecurityException
ThriftTableOperationException
hasSystemPermission
public boolean hasSystemPermission(TInfo tinfo,
AuthInfo credentials,
String user,
byte sysPerm)
throws ThriftSecurityException
- Specified by:
hasSystemPermission
in interface ClientService.Iface
- Throws:
ThriftSecurityException
hasTablePermission
public boolean hasTablePermission(TInfo tinfo,
AuthInfo credentials,
String user,
String tableName,
byte tblPerm)
throws ThriftSecurityException,
ThriftTableOperationException
- Specified by:
hasTablePermission
in interface ClientService.Iface
- Throws:
ThriftSecurityException
ThriftTableOperationException
listUsers
public Set<String> listUsers(TInfo tinfo,
AuthInfo credentials)
throws ThriftSecurityException
- Specified by:
listUsers
in interface ClientService.Iface
- Throws:
ThriftSecurityException
getConfiguration
public Map<String,String> getConfiguration(ConfigurationType type)
throws org.apache.thrift.TException
- Specified by:
getConfiguration
in interface ClientService.Iface
- Throws:
org.apache.thrift.TException
getTableConfiguration
public Map<String,String> getTableConfiguration(String tableName)
throws org.apache.thrift.TException,
ThriftTableOperationException
- Specified by:
getTableConfiguration
in interface ClientService.Iface
- Throws:
org.apache.thrift.TException
ThriftTableOperationException
bulkImportFiles
public List<String> bulkImportFiles(TInfo tinfo,
AuthInfo credentials,
long tid,
String tableId,
List<String> files,
String errorDir,
boolean setTime)
throws ThriftSecurityException,
ThriftTableOperationException,
org.apache.thrift.TException
- Specified by:
bulkImportFiles
in interface ClientService.Iface
- Throws:
ThriftSecurityException
ThriftTableOperationException
org.apache.thrift.TException
isActive
public boolean isActive(TInfo tinfo,
long tid)
throws org.apache.thrift.TException
- Specified by:
isActive
in interface ClientService.Iface
- Throws:
org.apache.thrift.TException
checkClass
public boolean checkClass(TInfo tinfo,
String className,
String interfaceMatch)
throws org.apache.thrift.TException
- Specified by:
checkClass
in interface ClientService.Iface
- Throws:
org.apache.thrift.TException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.