public class ClientServiceHandler extends Object implements ClientService.Iface
Modifier and Type | Field and Description |
---|---|
protected TransactionWatcher |
transactionWatcher |
Constructor and Description |
---|
ClientServiceHandler(AccumuloServerContext context,
TransactionWatcher transactionWatcher,
VolumeManager fs) |
protected final TransactionWatcher transactionWatcher
public ClientServiceHandler(AccumuloServerContext context, TransactionWatcher transactionWatcher, VolumeManager fs)
public static String checkTableId(Instance instance, String tableName, TableOperation operation) throws ThriftTableOperationException
ThriftTableOperationException
public static String checkNamespaceId(Instance instance, String namespace, TableOperation operation) throws ThriftTableOperationException
ThriftTableOperationException
public String getInstanceId()
getInstanceId
in interface ClientService.Iface
public String getRootTabletLocation()
getRootTabletLocation
in interface ClientService.Iface
public String getZooKeepers()
getZooKeepers
in interface ClientService.Iface
public void ping(TCredentials credentials)
ping
in interface ClientService.Iface
public boolean authenticate(TInfo tinfo, TCredentials credentials) throws ThriftSecurityException
authenticate
in interface ClientService.Iface
ThriftSecurityException
public boolean authenticateUser(TInfo tinfo, TCredentials credentials, TCredentials toAuth) throws ThriftSecurityException
authenticateUser
in interface ClientService.Iface
ThriftSecurityException
public void changeAuthorizations(TInfo tinfo, TCredentials credentials, String user, List<ByteBuffer> authorizations) throws ThriftSecurityException
changeAuthorizations
in interface ClientService.Iface
ThriftSecurityException
public void changeLocalUserPassword(TInfo tinfo, TCredentials credentials, String principal, ByteBuffer password) throws ThriftSecurityException
changeLocalUserPassword
in interface ClientService.Iface
ThriftSecurityException
public void createLocalUser(TInfo tinfo, TCredentials credentials, String principal, ByteBuffer password) throws ThriftSecurityException
createLocalUser
in interface ClientService.Iface
ThriftSecurityException
public void dropLocalUser(TInfo tinfo, TCredentials credentials, String user) throws ThriftSecurityException
dropLocalUser
in interface ClientService.Iface
ThriftSecurityException
public List<ByteBuffer> getUserAuthorizations(TInfo tinfo, TCredentials credentials, String user) throws ThriftSecurityException
getUserAuthorizations
in interface ClientService.Iface
ThriftSecurityException
public void grantSystemPermission(TInfo tinfo, TCredentials credentials, String user, byte permission) throws ThriftSecurityException
grantSystemPermission
in interface ClientService.Iface
ThriftSecurityException
public void grantTablePermission(TInfo tinfo, TCredentials credentials, String user, String tableName, byte permission) throws org.apache.thrift.TException
grantTablePermission
in interface ClientService.Iface
org.apache.thrift.TException
public void grantNamespacePermission(TInfo tinfo, TCredentials credentials, String user, String ns, byte permission) throws ThriftSecurityException, ThriftTableOperationException
grantNamespacePermission
in interface ClientService.Iface
ThriftSecurityException
ThriftTableOperationException
public void revokeSystemPermission(TInfo tinfo, TCredentials credentials, String user, byte permission) throws ThriftSecurityException
revokeSystemPermission
in interface ClientService.Iface
ThriftSecurityException
public void revokeTablePermission(TInfo tinfo, TCredentials credentials, String user, String tableName, byte permission) throws org.apache.thrift.TException
revokeTablePermission
in interface ClientService.Iface
org.apache.thrift.TException
public boolean hasSystemPermission(TInfo tinfo, TCredentials credentials, String user, byte sysPerm) throws ThriftSecurityException
hasSystemPermission
in interface ClientService.Iface
ThriftSecurityException
public boolean hasTablePermission(TInfo tinfo, TCredentials credentials, String user, String tableName, byte tblPerm) throws ThriftSecurityException, ThriftTableOperationException
hasTablePermission
in interface ClientService.Iface
ThriftSecurityException
ThriftTableOperationException
public boolean hasNamespacePermission(TInfo tinfo, TCredentials credentials, String user, String ns, byte perm) throws ThriftSecurityException, ThriftTableOperationException
hasNamespacePermission
in interface ClientService.Iface
ThriftSecurityException
ThriftTableOperationException
public void revokeNamespacePermission(TInfo tinfo, TCredentials credentials, String user, String ns, byte permission) throws ThriftSecurityException, ThriftTableOperationException
revokeNamespacePermission
in interface ClientService.Iface
ThriftSecurityException
ThriftTableOperationException
public Set<String> listLocalUsers(TInfo tinfo, TCredentials credentials) throws ThriftSecurityException
listLocalUsers
in interface ClientService.Iface
ThriftSecurityException
public Map<String,String> getConfiguration(TInfo tinfo, TCredentials credentials, ConfigurationType type) throws org.apache.thrift.TException
getConfiguration
in interface ClientService.Iface
org.apache.thrift.TException
public Map<String,String> getTableConfiguration(TInfo tinfo, TCredentials credentials, String tableName) throws org.apache.thrift.TException, ThriftTableOperationException
getTableConfiguration
in interface ClientService.Iface
org.apache.thrift.TException
ThriftTableOperationException
public List<String> bulkImportFiles(TInfo tinfo, TCredentials credentials, long tid, String tableId, List<String> files, String errorDir, boolean setTime) throws ThriftSecurityException, ThriftTableOperationException, org.apache.thrift.TException
bulkImportFiles
in interface ClientService.Iface
ThriftSecurityException
ThriftTableOperationException
org.apache.thrift.TException
public boolean isActive(TInfo tinfo, long tid) throws org.apache.thrift.TException
isActive
in interface ClientService.Iface
org.apache.thrift.TException
public boolean checkClass(TInfo tinfo, TCredentials credentials, String className, String interfaceMatch) throws org.apache.thrift.TException
checkClass
in interface ClientService.Iface
org.apache.thrift.TException
public boolean checkTableClass(TInfo tinfo, TCredentials credentials, String tableName, String className, String interfaceMatch) throws org.apache.thrift.TException, ThriftTableOperationException, ThriftSecurityException
checkTableClass
in interface ClientService.Iface
org.apache.thrift.TException
ThriftTableOperationException
ThriftSecurityException
public boolean checkNamespaceClass(TInfo tinfo, TCredentials credentials, String ns, String className, String interfaceMatch) throws org.apache.thrift.TException, ThriftTableOperationException, ThriftSecurityException
checkNamespaceClass
in interface ClientService.Iface
org.apache.thrift.TException
ThriftTableOperationException
ThriftSecurityException
public List<TDiskUsage> getDiskUsage(Set<String> tables, TCredentials credentials) throws ThriftTableOperationException, ThriftSecurityException, org.apache.thrift.TException
getDiskUsage
in interface ClientService.Iface
ThriftTableOperationException
ThriftSecurityException
org.apache.thrift.TException
public Map<String,String> getNamespaceConfiguration(TInfo tinfo, TCredentials credentials, String ns) throws ThriftTableOperationException, org.apache.thrift.TException
getNamespaceConfiguration
in interface ClientService.Iface
ThriftTableOperationException
org.apache.thrift.TException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.