Skip to content

Commit

Permalink
HBASE-28572 Remove deprecated methods in thrift module (apache#5882)
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Sun <[email protected]>
  • Loading branch information
Apache9 authored and vinayakphegde committed May 21, 2024
1 parent e2690c6 commit 064bf6f
Show file tree
Hide file tree
Showing 64 changed files with 3,221 additions and 3,022 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Autogenerated by Thrift Compiler (0.12.0)
# Autogenerated by Thrift Compiler (0.14.1)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
Expand Down Expand Up @@ -59,7 +59,6 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print(' bool isTableEnabled(TTableName tableName)')
print(' bool isTableDisabled(TTableName tableName)')
print(' bool isTableAvailable(TTableName tableName)')
print(' bool isTableAvailableWithSplit(TTableName tableName, splitKeys)')
print(' void addColumnFamily(TTableName tableName, TColumnFamilyDescriptor column)')
print(' void deleteColumnFamily(TTableName tableName, string column)')
print(' void modifyColumnFamily(TTableName tableName, TColumnFamilyDescriptor column)')
Expand All @@ -71,6 +70,11 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print(' listNamespaceDescriptors()')
print(' listNamespaces()')
print(' TThriftServerType getThriftServerType()')
print(' string getClusterId()')
print(' getSlowLogResponses( serverNames, TLogQueryFilter logQueryFilter)')
print(' clearSlowLogResponses( serverNames)')
print(' bool grant(TAccessControlEntity info)')
print(' bool revoke(TAccessControlEntity info)')
print('')
sys.exit(0)

Expand Down Expand Up @@ -360,12 +364,6 @@ elif cmd == 'isTableAvailable':
sys.exit(1)
pp.pprint(client.isTableAvailable(eval(args[0]),))

elif cmd == 'isTableAvailableWithSplit':
if len(args) != 2:
print('isTableAvailableWithSplit requires 2 args')
sys.exit(1)
pp.pprint(client.isTableAvailableWithSplit(eval(args[0]), eval(args[1]),))

elif cmd == 'addColumnFamily':
if len(args) != 2:
print('addColumnFamily requires 2 args')
Expand Down Expand Up @@ -432,6 +430,36 @@ elif cmd == 'getThriftServerType':
sys.exit(1)
pp.pprint(client.getThriftServerType())

elif cmd == 'getClusterId':
if len(args) != 0:
print('getClusterId requires 0 args')
sys.exit(1)
pp.pprint(client.getClusterId())

elif cmd == 'getSlowLogResponses':
if len(args) != 2:
print('getSlowLogResponses requires 2 args')
sys.exit(1)
pp.pprint(client.getSlowLogResponses(eval(args[0]), eval(args[1]),))

elif cmd == 'clearSlowLogResponses':
if len(args) != 1:
print('clearSlowLogResponses requires 1 args')
sys.exit(1)
pp.pprint(client.clearSlowLogResponses(eval(args[0]),))

elif cmd == 'grant':
if len(args) != 1:
print('grant requires 1 args')
sys.exit(1)
pp.pprint(client.grant(eval(args[0]),))

elif cmd == 'revoke':
if len(args) != 1:
print('revoke requires 1 args')
sys.exit(1)
pp.pprint(client.revoke(eval(args[0]),))

else:
print('Unrecognized method %s' % cmd)
sys.exit(1)
Expand Down
Loading

0 comments on commit 064bf6f

Please sign in to comment.