Class ClientService.AsyncClient
- java.lang.Object
-
- org.apache.thrift.async.TAsyncClient
-
- org.apache.accumulo.core.clientImpl.thrift.ClientService.AsyncClient
-
- All Implemented Interfaces:
ClientService.AsyncIface
- Direct Known Subclasses:
TabletClientService.AsyncClient
- Enclosing class:
- ClientService
public static class ClientService.AsyncClient extends org.apache.thrift.async.TAsyncClient implements ClientService.AsyncIface
-
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
authenticate(TInfo tinfo, TCredentials credentials, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler)
void
authenticateUser(TInfo tinfo, TCredentials credentials, TCredentials toAuth, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler)
void
bulkImportFiles(TInfo tinfo, TCredentials credentials, long tid, String tableId, List<String> files, String errorDir, boolean setTime, org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler)
void
changeAuthorizations(TInfo tinfo, TCredentials credentials, String principal, List<ByteBuffer> authorizations, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
void
changeLocalUserPassword(TInfo tinfo, TCredentials credentials, String principal, ByteBuffer password, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
void
checkClass(TInfo tinfo, TCredentials credentials, String className, String interfaceMatch, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler)
void
checkNamespaceClass(TInfo tinfo, TCredentials credentials, String namespaceId, String className, String interfaceMatch, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler)
void
checkTableClass(TInfo tinfo, TCredentials credentials, String tableId, String className, String interfaceMatch, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler)
void
createLocalUser(TInfo tinfo, TCredentials credentials, String principal, ByteBuffer password, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
void
dropLocalUser(TInfo tinfo, TCredentials credentials, String principal, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
void
getConfiguration(TInfo tinfo, TCredentials credentials, ConfigurationType type, org.apache.thrift.async.AsyncMethodCallback<Map<String,String>> resultHandler)
void
getDiskUsage(Set<String> tables, TCredentials credentials, org.apache.thrift.async.AsyncMethodCallback<List<TDiskUsage>> resultHandler)
void
getInstanceId(org.apache.thrift.async.AsyncMethodCallback<String> resultHandler)
void
getNamespaceConfiguration(TInfo tinfo, TCredentials credentials, String ns, org.apache.thrift.async.AsyncMethodCallback<Map<String,String>> resultHandler)
void
getRootTabletLocation(org.apache.thrift.async.AsyncMethodCallback<String> resultHandler)
void
getTableConfiguration(TInfo tinfo, TCredentials credentials, String tableName, org.apache.thrift.async.AsyncMethodCallback<Map<String,String>> resultHandler)
void
getUserAuthorizations(TInfo tinfo, TCredentials credentials, String principal, org.apache.thrift.async.AsyncMethodCallback<List<ByteBuffer>> resultHandler)
void
getZooKeepers(org.apache.thrift.async.AsyncMethodCallback<String> resultHandler)
void
grantNamespacePermission(TInfo tinfo, TCredentials credentials, String principal, String ns, byte permission, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
void
grantSystemPermission(TInfo tinfo, TCredentials credentials, String principal, byte permission, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
void
grantTablePermission(TInfo tinfo, TCredentials credentials, String principal, String tableName, byte permission, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
void
hasNamespacePermission(TInfo tinfo, TCredentials credentials, String principal, String ns, byte tblNspcPerm, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler)
void
hasSystemPermission(TInfo tinfo, TCredentials credentials, String principal, byte sysPerm, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler)
void
hasTablePermission(TInfo tinfo, TCredentials credentials, String principal, String tableName, byte tblPerm, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler)
void
isActive(TInfo tinfo, long tid, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler)
void
listLocalUsers(TInfo tinfo, TCredentials credentials, org.apache.thrift.async.AsyncMethodCallback<Set<String>> resultHandler)
void
ping(TCredentials credentials, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
void
revokeNamespacePermission(TInfo tinfo, TCredentials credentials, String principal, String ns, byte permission, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
void
revokeSystemPermission(TInfo tinfo, TCredentials credentials, String principal, byte permission, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
void
revokeTablePermission(TInfo tinfo, TCredentials credentials, String principal, String tableName, byte permission, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
-
-
-
Method Detail
-
getRootTabletLocation
public void getRootTabletLocation(org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws org.apache.thrift.TException
- Specified by:
getRootTabletLocation
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
getInstanceId
public void getInstanceId(org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws org.apache.thrift.TException
- Specified by:
getInstanceId
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
getZooKeepers
public void getZooKeepers(org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws org.apache.thrift.TException
- Specified by:
getZooKeepers
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
bulkImportFiles
public void bulkImportFiles(TInfo tinfo, TCredentials credentials, long tid, String tableId, List<String> files, String errorDir, boolean setTime, org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler) throws org.apache.thrift.TException
- Specified by:
bulkImportFiles
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
isActive
public void isActive(TInfo tinfo, long tid, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws org.apache.thrift.TException
- Specified by:
isActive
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
ping
public void ping(TCredentials credentials, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException
- Specified by:
ping
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
getDiskUsage
public void getDiskUsage(Set<String> tables, TCredentials credentials, org.apache.thrift.async.AsyncMethodCallback<List<TDiskUsage>> resultHandler) throws org.apache.thrift.TException
- Specified by:
getDiskUsage
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
listLocalUsers
public void listLocalUsers(TInfo tinfo, TCredentials credentials, org.apache.thrift.async.AsyncMethodCallback<Set<String>> resultHandler) throws org.apache.thrift.TException
- Specified by:
listLocalUsers
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
createLocalUser
public void createLocalUser(TInfo tinfo, TCredentials credentials, String principal, ByteBuffer password, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException
- Specified by:
createLocalUser
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
dropLocalUser
public void dropLocalUser(TInfo tinfo, TCredentials credentials, String principal, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException
- Specified by:
dropLocalUser
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
changeLocalUserPassword
public void changeLocalUserPassword(TInfo tinfo, TCredentials credentials, String principal, ByteBuffer password, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException
- Specified by:
changeLocalUserPassword
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
authenticate
public void authenticate(TInfo tinfo, TCredentials credentials, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws org.apache.thrift.TException
- Specified by:
authenticate
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
authenticateUser
public void authenticateUser(TInfo tinfo, TCredentials credentials, TCredentials toAuth, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws org.apache.thrift.TException
- Specified by:
authenticateUser
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
changeAuthorizations
public void changeAuthorizations(TInfo tinfo, TCredentials credentials, String principal, List<ByteBuffer> authorizations, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException
- Specified by:
changeAuthorizations
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
getUserAuthorizations
public void getUserAuthorizations(TInfo tinfo, TCredentials credentials, String principal, org.apache.thrift.async.AsyncMethodCallback<List<ByteBuffer>> resultHandler) throws org.apache.thrift.TException
- Specified by:
getUserAuthorizations
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
hasSystemPermission
public void hasSystemPermission(TInfo tinfo, TCredentials credentials, String principal, byte sysPerm, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws org.apache.thrift.TException
- Specified by:
hasSystemPermission
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
hasTablePermission
public void hasTablePermission(TInfo tinfo, TCredentials credentials, String principal, String tableName, byte tblPerm, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws org.apache.thrift.TException
- Specified by:
hasTablePermission
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
hasNamespacePermission
public void hasNamespacePermission(TInfo tinfo, TCredentials credentials, String principal, String ns, byte tblNspcPerm, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws org.apache.thrift.TException
- Specified by:
hasNamespacePermission
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
grantSystemPermission
public void grantSystemPermission(TInfo tinfo, TCredentials credentials, String principal, byte permission, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException
- Specified by:
grantSystemPermission
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
revokeSystemPermission
public void revokeSystemPermission(TInfo tinfo, TCredentials credentials, String principal, byte permission, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException
- Specified by:
revokeSystemPermission
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
grantTablePermission
public void grantTablePermission(TInfo tinfo, TCredentials credentials, String principal, String tableName, byte permission, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException
- Specified by:
grantTablePermission
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
revokeTablePermission
public void revokeTablePermission(TInfo tinfo, TCredentials credentials, String principal, String tableName, byte permission, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException
- Specified by:
revokeTablePermission
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
grantNamespacePermission
public void grantNamespacePermission(TInfo tinfo, TCredentials credentials, String principal, String ns, byte permission, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException
- Specified by:
grantNamespacePermission
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
revokeNamespacePermission
public void revokeNamespacePermission(TInfo tinfo, TCredentials credentials, String principal, String ns, byte permission, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException
- Specified by:
revokeNamespacePermission
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
getConfiguration
public void getConfiguration(TInfo tinfo, TCredentials credentials, ConfigurationType type, org.apache.thrift.async.AsyncMethodCallback<Map<String,String>> resultHandler) throws org.apache.thrift.TException
- Specified by:
getConfiguration
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
getTableConfiguration
public void getTableConfiguration(TInfo tinfo, TCredentials credentials, String tableName, org.apache.thrift.async.AsyncMethodCallback<Map<String,String>> resultHandler) throws org.apache.thrift.TException
- Specified by:
getTableConfiguration
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
getNamespaceConfiguration
public void getNamespaceConfiguration(TInfo tinfo, TCredentials credentials, String ns, org.apache.thrift.async.AsyncMethodCallback<Map<String,String>> resultHandler) throws org.apache.thrift.TException
- Specified by:
getNamespaceConfiguration
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
checkClass
public void checkClass(TInfo tinfo, TCredentials credentials, String className, String interfaceMatch, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws org.apache.thrift.TException
- Specified by:
checkClass
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
checkTableClass
public void checkTableClass(TInfo tinfo, TCredentials credentials, String tableId, String className, String interfaceMatch, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws org.apache.thrift.TException
- Specified by:
checkTableClass
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
checkNamespaceClass
public void checkNamespaceClass(TInfo tinfo, TCredentials credentials, String namespaceId, String className, String interfaceMatch, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws org.apache.thrift.TException
- Specified by:
checkNamespaceClass
in interfaceClientService.AsyncIface
- Throws:
org.apache.thrift.TException
-
-