SENTRY-2192: supress date value in @Generated annotation generated by thrift.(Kalyan...
[sentry.git] / sentry-provider / sentry-provider-db / src / gen / thrift / gen-javabean / org / apache / sentry / provider / db / service / thrift / SentryPolicyService.java
1 /**
2 * Autogenerated by Thrift Compiler (0.9.3)
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 * @generated
6 */
7 package org.apache.sentry.provider.db.service.thrift;
8
9 import org.apache.thrift.scheme.IScheme;
10 import org.apache.thrift.scheme.SchemeFactory;
11 import org.apache.thrift.scheme.StandardScheme;
12
13 import org.apache.thrift.scheme.TupleScheme;
14 import org.apache.thrift.protocol.TTupleProtocol;
15 import org.apache.thrift.protocol.TProtocolException;
16 import org.apache.thrift.EncodingUtils;
17 import org.apache.thrift.TException;
18 import org.apache.thrift.async.AsyncMethodCallback;
19 import org.apache.thrift.server.AbstractNonblockingServer.*;
20 import java.util.List;
21 import java.util.ArrayList;
22 import java.util.Map;
23 import java.util.HashMap;
24 import java.util.EnumMap;
25 import java.util.Set;
26 import java.util.HashSet;
27 import java.util.EnumSet;
28 import java.util.Collections;
29 import java.util.BitSet;
30 import java.nio.ByteBuffer;
31 import java.util.Arrays;
32 import javax.annotation.Generated;
33 import org.slf4j.Logger;
34 import org.slf4j.LoggerFactory;
35
36 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
37 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
38 public class SentryPolicyService {
39
40 public interface Iface {
41
42 public TCreateSentryRoleResponse create_sentry_role(TCreateSentryRoleRequest request) throws org.apache.thrift.TException;
43
44 public TDropSentryRoleResponse drop_sentry_role(TDropSentryRoleRequest request) throws org.apache.thrift.TException;
45
46 public TAlterSentryRoleGrantPrivilegeResponse alter_sentry_role_grant_privilege(TAlterSentryRoleGrantPrivilegeRequest request) throws org.apache.thrift.TException;
47
48 public TAlterSentryRoleRevokePrivilegeResponse alter_sentry_role_revoke_privilege(TAlterSentryRoleRevokePrivilegeRequest request) throws org.apache.thrift.TException;
49
50 public TAlterSentryRoleAddGroupsResponse alter_sentry_role_add_groups(TAlterSentryRoleAddGroupsRequest request) throws org.apache.thrift.TException;
51
52 public TAlterSentryRoleDeleteGroupsResponse alter_sentry_role_delete_groups(TAlterSentryRoleDeleteGroupsRequest request) throws org.apache.thrift.TException;
53
54 public TAlterSentryRoleAddUsersResponse alter_sentry_role_add_users(TAlterSentryRoleAddUsersRequest request) throws org.apache.thrift.TException;
55
56 public TAlterSentryRoleDeleteUsersResponse alter_sentry_role_delete_users(TAlterSentryRoleDeleteUsersRequest request) throws org.apache.thrift.TException;
57
58 public TListSentryRolesResponse list_sentry_roles_by_group(TListSentryRolesRequest request) throws org.apache.thrift.TException;
59
60 public TListSentryRolesResponse list_sentry_roles_by_user(TListSentryRolesForUserRequest request) throws org.apache.thrift.TException;
61
62 public TListSentryPrivilegesResponse list_sentry_privileges_by_role(TListSentryPrivilegesRequest request) throws org.apache.thrift.TException;
63
64 public TListSentryPrivilegesForProviderResponse list_sentry_privileges_for_provider(TListSentryPrivilegesForProviderRequest request) throws org.apache.thrift.TException;
65
66 public TDropPrivilegesResponse drop_sentry_privilege(TDropPrivilegesRequest request) throws org.apache.thrift.TException;
67
68 public TRenamePrivilegesResponse rename_sentry_privilege(TRenamePrivilegesRequest request) throws org.apache.thrift.TException;
69
70 public TListSentryPrivilegesByAuthResponse list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request) throws org.apache.thrift.TException;
71
72 public TSentryConfigValueResponse get_sentry_config_value(TSentryConfigValueRequest request) throws org.apache.thrift.TException;
73
74 public TSentryExportMappingDataResponse export_sentry_mapping_data(TSentryExportMappingDataRequest request) throws org.apache.thrift.TException;
75
76 public TSentryImportMappingDataResponse import_sentry_mapping_data(TSentryImportMappingDataRequest request) throws org.apache.thrift.TException;
77
78 public TSentrySyncIDResponse sentry_sync_notifications(TSentrySyncIDRequest request) throws org.apache.thrift.TException;
79
80 }
81
82 public interface AsyncIface {
83
84 public void create_sentry_role(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
85
86 public void drop_sentry_role(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
87
88 public void alter_sentry_role_grant_privilege(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
89
90 public void alter_sentry_role_revoke_privilege(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
91
92 public void alter_sentry_role_add_groups(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
93
94 public void alter_sentry_role_delete_groups(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
95
96 public void alter_sentry_role_add_users(TAlterSentryRoleAddUsersRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
97
98 public void alter_sentry_role_delete_users(TAlterSentryRoleDeleteUsersRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
99
100 public void list_sentry_roles_by_group(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
101
102 public void list_sentry_roles_by_user(TListSentryRolesForUserRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
103
104 public void list_sentry_privileges_by_role(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
105
106 public void list_sentry_privileges_for_provider(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
107
108 public void drop_sentry_privilege(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
109
110 public void rename_sentry_privilege(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
111
112 public void list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
113
114 public void get_sentry_config_value(TSentryConfigValueRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
115
116 public void export_sentry_mapping_data(TSentryExportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
117
118 public void import_sentry_mapping_data(TSentryImportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
119
120 public void sentry_sync_notifications(TSentrySyncIDRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
121
122 }
123
124 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
125 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
126 public Factory() {}
127 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
128 return new Client(prot);
129 }
130 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
131 return new Client(iprot, oprot);
132 }
133 }
134
135 public Client(org.apache.thrift.protocol.TProtocol prot)
136 {
137 super(prot, prot);
138 }
139
140 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
141 super(iprot, oprot);
142 }
143
144 public TCreateSentryRoleResponse create_sentry_role(TCreateSentryRoleRequest request) throws org.apache.thrift.TException
145 {
146 send_create_sentry_role(request);
147 return recv_create_sentry_role();
148 }
149
150 public void send_create_sentry_role(TCreateSentryRoleRequest request) throws org.apache.thrift.TException
151 {
152 create_sentry_role_args args = new create_sentry_role_args();
153 args.setRequest(request);
154 sendBase("create_sentry_role", args);
155 }
156
157 public TCreateSentryRoleResponse recv_create_sentry_role() throws org.apache.thrift.TException
158 {
159 create_sentry_role_result result = new create_sentry_role_result();
160 receiveBase(result, "create_sentry_role");
161 if (result.isSetSuccess()) {
162 return result.success;
163 }
164 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "create_sentry_role failed: unknown result");
165 }
166
167 public TDropSentryRoleResponse drop_sentry_role(TDropSentryRoleRequest request) throws org.apache.thrift.TException
168 {
169 send_drop_sentry_role(request);
170 return recv_drop_sentry_role();
171 }
172
173 public void send_drop_sentry_role(TDropSentryRoleRequest request) throws org.apache.thrift.TException
174 {
175 drop_sentry_role_args args = new drop_sentry_role_args();
176 args.setRequest(request);
177 sendBase("drop_sentry_role", args);
178 }
179
180 public TDropSentryRoleResponse recv_drop_sentry_role() throws org.apache.thrift.TException
181 {
182 drop_sentry_role_result result = new drop_sentry_role_result();
183 receiveBase(result, "drop_sentry_role");
184 if (result.isSetSuccess()) {
185 return result.success;
186 }
187 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_sentry_role failed: unknown result");
188 }
189
190 public TAlterSentryRoleGrantPrivilegeResponse alter_sentry_role_grant_privilege(TAlterSentryRoleGrantPrivilegeRequest request) throws org.apache.thrift.TException
191 {
192 send_alter_sentry_role_grant_privilege(request);
193 return recv_alter_sentry_role_grant_privilege();
194 }
195
196 public void send_alter_sentry_role_grant_privilege(TAlterSentryRoleGrantPrivilegeRequest request) throws org.apache.thrift.TException
197 {
198 alter_sentry_role_grant_privilege_args args = new alter_sentry_role_grant_privilege_args();
199 args.setRequest(request);
200 sendBase("alter_sentry_role_grant_privilege", args);
201 }
202
203 public TAlterSentryRoleGrantPrivilegeResponse recv_alter_sentry_role_grant_privilege() throws org.apache.thrift.TException
204 {
205 alter_sentry_role_grant_privilege_result result = new alter_sentry_role_grant_privilege_result();
206 receiveBase(result, "alter_sentry_role_grant_privilege");
207 if (result.isSetSuccess()) {
208 return result.success;
209 }
210 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "alter_sentry_role_grant_privilege failed: unknown result");
211 }
212
213 public TAlterSentryRoleRevokePrivilegeResponse alter_sentry_role_revoke_privilege(TAlterSentryRoleRevokePrivilegeRequest request) throws org.apache.thrift.TException
214 {
215 send_alter_sentry_role_revoke_privilege(request);
216 return recv_alter_sentry_role_revoke_privilege();
217 }
218
219 public void send_alter_sentry_role_revoke_privilege(TAlterSentryRoleRevokePrivilegeRequest request) throws org.apache.thrift.TException
220 {
221 alter_sentry_role_revoke_privilege_args args = new alter_sentry_role_revoke_privilege_args();
222 args.setRequest(request);
223 sendBase("alter_sentry_role_revoke_privilege", args);
224 }
225
226 public TAlterSentryRoleRevokePrivilegeResponse recv_alter_sentry_role_revoke_privilege() throws org.apache.thrift.TException
227 {
228 alter_sentry_role_revoke_privilege_result result = new alter_sentry_role_revoke_privilege_result();
229 receiveBase(result, "alter_sentry_role_revoke_privilege");
230 if (result.isSetSuccess()) {
231 return result.success;
232 }
233 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "alter_sentry_role_revoke_privilege failed: unknown result");
234 }
235
236 public TAlterSentryRoleAddGroupsResponse alter_sentry_role_add_groups(TAlterSentryRoleAddGroupsRequest request) throws org.apache.thrift.TException
237 {
238 send_alter_sentry_role_add_groups(request);
239 return recv_alter_sentry_role_add_groups();
240 }
241
242 public void send_alter_sentry_role_add_groups(TAlterSentryRoleAddGroupsRequest request) throws org.apache.thrift.TException
243 {
244 alter_sentry_role_add_groups_args args = new alter_sentry_role_add_groups_args();
245 args.setRequest(request);
246 sendBase("alter_sentry_role_add_groups", args);
247 }
248
249 public TAlterSentryRoleAddGroupsResponse recv_alter_sentry_role_add_groups() throws org.apache.thrift.TException
250 {
251 alter_sentry_role_add_groups_result result = new alter_sentry_role_add_groups_result();
252 receiveBase(result, "alter_sentry_role_add_groups");
253 if (result.isSetSuccess()) {
254 return result.success;
255 }
256 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "alter_sentry_role_add_groups failed: unknown result");
257 }
258
259 public TAlterSentryRoleDeleteGroupsResponse alter_sentry_role_delete_groups(TAlterSentryRoleDeleteGroupsRequest request) throws org.apache.thrift.TException
260 {
261 send_alter_sentry_role_delete_groups(request);
262 return recv_alter_sentry_role_delete_groups();
263 }
264
265 public void send_alter_sentry_role_delete_groups(TAlterSentryRoleDeleteGroupsRequest request) throws org.apache.thrift.TException
266 {
267 alter_sentry_role_delete_groups_args args = new alter_sentry_role_delete_groups_args();
268 args.setRequest(request);
269 sendBase("alter_sentry_role_delete_groups", args);
270 }
271
272 public TAlterSentryRoleDeleteGroupsResponse recv_alter_sentry_role_delete_groups() throws org.apache.thrift.TException
273 {
274 alter_sentry_role_delete_groups_result result = new alter_sentry_role_delete_groups_result();
275 receiveBase(result, "alter_sentry_role_delete_groups");
276 if (result.isSetSuccess()) {
277 return result.success;
278 }
279 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "alter_sentry_role_delete_groups failed: unknown result");
280 }
281
282 public TAlterSentryRoleAddUsersResponse alter_sentry_role_add_users(TAlterSentryRoleAddUsersRequest request) throws org.apache.thrift.TException
283 {
284 send_alter_sentry_role_add_users(request);
285 return recv_alter_sentry_role_add_users();
286 }
287
288 public void send_alter_sentry_role_add_users(TAlterSentryRoleAddUsersRequest request) throws org.apache.thrift.TException
289 {
290 alter_sentry_role_add_users_args args = new alter_sentry_role_add_users_args();
291 args.setRequest(request);
292 sendBase("alter_sentry_role_add_users", args);
293 }
294
295 public TAlterSentryRoleAddUsersResponse recv_alter_sentry_role_add_users() throws org.apache.thrift.TException
296 {
297 alter_sentry_role_add_users_result result = new alter_sentry_role_add_users_result();
298 receiveBase(result, "alter_sentry_role_add_users");
299 if (result.isSetSuccess()) {
300 return result.success;
301 }
302 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "alter_sentry_role_add_users failed: unknown result");
303 }
304
305 public TAlterSentryRoleDeleteUsersResponse alter_sentry_role_delete_users(TAlterSentryRoleDeleteUsersRequest request) throws org.apache.thrift.TException
306 {
307 send_alter_sentry_role_delete_users(request);
308 return recv_alter_sentry_role_delete_users();
309 }
310
311 public void send_alter_sentry_role_delete_users(TAlterSentryRoleDeleteUsersRequest request) throws org.apache.thrift.TException
312 {
313 alter_sentry_role_delete_users_args args = new alter_sentry_role_delete_users_args();
314 args.setRequest(request);
315 sendBase("alter_sentry_role_delete_users", args);
316 }
317
318 public TAlterSentryRoleDeleteUsersResponse recv_alter_sentry_role_delete_users() throws org.apache.thrift.TException
319 {
320 alter_sentry_role_delete_users_result result = new alter_sentry_role_delete_users_result();
321 receiveBase(result, "alter_sentry_role_delete_users");
322 if (result.isSetSuccess()) {
323 return result.success;
324 }
325 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "alter_sentry_role_delete_users failed: unknown result");
326 }
327
328 public TListSentryRolesResponse list_sentry_roles_by_group(TListSentryRolesRequest request) throws org.apache.thrift.TException
329 {
330 send_list_sentry_roles_by_group(request);
331 return recv_list_sentry_roles_by_group();
332 }
333
334 public void send_list_sentry_roles_by_group(TListSentryRolesRequest request) throws org.apache.thrift.TException
335 {
336 list_sentry_roles_by_group_args args = new list_sentry_roles_by_group_args();
337 args.setRequest(request);
338 sendBase("list_sentry_roles_by_group", args);
339 }
340
341 public TListSentryRolesResponse recv_list_sentry_roles_by_group() throws org.apache.thrift.TException
342 {
343 list_sentry_roles_by_group_result result = new list_sentry_roles_by_group_result();
344 receiveBase(result, "list_sentry_roles_by_group");
345 if (result.isSetSuccess()) {
346 return result.success;
347 }
348 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "list_sentry_roles_by_group failed: unknown result");
349 }
350
351 public TListSentryRolesResponse list_sentry_roles_by_user(TListSentryRolesForUserRequest request) throws org.apache.thrift.TException
352 {
353 send_list_sentry_roles_by_user(request);
354 return recv_list_sentry_roles_by_user();
355 }
356
357 public void send_list_sentry_roles_by_user(TListSentryRolesForUserRequest request) throws org.apache.thrift.TException
358 {
359 list_sentry_roles_by_user_args args = new list_sentry_roles_by_user_args();
360 args.setRequest(request);
361 sendBase("list_sentry_roles_by_user", args);
362 }
363
364 public TListSentryRolesResponse recv_list_sentry_roles_by_user() throws org.apache.thrift.TException
365 {
366 list_sentry_roles_by_user_result result = new list_sentry_roles_by_user_result();
367 receiveBase(result, "list_sentry_roles_by_user");
368 if (result.isSetSuccess()) {
369 return result.success;
370 }
371 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "list_sentry_roles_by_user failed: unknown result");
372 }
373
374 public TListSentryPrivilegesResponse list_sentry_privileges_by_role(TListSentryPrivilegesRequest request) throws org.apache.thrift.TException
375 {
376 send_list_sentry_privileges_by_role(request);
377 return recv_list_sentry_privileges_by_role();
378 }
379
380 public void send_list_sentry_privileges_by_role(TListSentryPrivilegesRequest request) throws org.apache.thrift.TException
381 {
382 list_sentry_privileges_by_role_args args = new list_sentry_privileges_by_role_args();
383 args.setRequest(request);
384 sendBase("list_sentry_privileges_by_role", args);
385 }
386
387 public TListSentryPrivilegesResponse recv_list_sentry_privileges_by_role() throws org.apache.thrift.TException
388 {
389 list_sentry_privileges_by_role_result result = new list_sentry_privileges_by_role_result();
390 receiveBase(result, "list_sentry_privileges_by_role");
391 if (result.isSetSuccess()) {
392 return result.success;
393 }
394 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "list_sentry_privileges_by_role failed: unknown result");
395 }
396
397 public TListSentryPrivilegesForProviderResponse list_sentry_privileges_for_provider(TListSentryPrivilegesForProviderRequest request) throws org.apache.thrift.TException
398 {
399 send_list_sentry_privileges_for_provider(request);
400 return recv_list_sentry_privileges_for_provider();
401 }
402
403 public void send_list_sentry_privileges_for_provider(TListSentryPrivilegesForProviderRequest request) throws org.apache.thrift.TException
404 {
405 list_sentry_privileges_for_provider_args args = new list_sentry_privileges_for_provider_args();
406 args.setRequest(request);
407 sendBase("list_sentry_privileges_for_provider", args);
408 }
409
410 public TListSentryPrivilegesForProviderResponse recv_list_sentry_privileges_for_provider() throws org.apache.thrift.TException
411 {
412 list_sentry_privileges_for_provider_result result = new list_sentry_privileges_for_provider_result();
413 receiveBase(result, "list_sentry_privileges_for_provider");
414 if (result.isSetSuccess()) {
415 return result.success;
416 }
417 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "list_sentry_privileges_for_provider failed: unknown result");
418 }
419
420 public TDropPrivilegesResponse drop_sentry_privilege(TDropPrivilegesRequest request) throws org.apache.thrift.TException
421 {
422 send_drop_sentry_privilege(request);
423 return recv_drop_sentry_privilege();
424 }
425
426 public void send_drop_sentry_privilege(TDropPrivilegesRequest request) throws org.apache.thrift.TException
427 {
428 drop_sentry_privilege_args args = new drop_sentry_privilege_args();
429 args.setRequest(request);
430 sendBase("drop_sentry_privilege", args);
431 }
432
433 public TDropPrivilegesResponse recv_drop_sentry_privilege() throws org.apache.thrift.TException
434 {
435 drop_sentry_privilege_result result = new drop_sentry_privilege_result();
436 receiveBase(result, "drop_sentry_privilege");
437 if (result.isSetSuccess()) {
438 return result.success;
439 }
440 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_sentry_privilege failed: unknown result");
441 }
442
443 public TRenamePrivilegesResponse rename_sentry_privilege(TRenamePrivilegesRequest request) throws org.apache.thrift.TException
444 {
445 send_rename_sentry_privilege(request);
446 return recv_rename_sentry_privilege();
447 }
448
449 public void send_rename_sentry_privilege(TRenamePrivilegesRequest request) throws org.apache.thrift.TException
450 {
451 rename_sentry_privilege_args args = new rename_sentry_privilege_args();
452 args.setRequest(request);
453 sendBase("rename_sentry_privilege", args);
454 }
455
456 public TRenamePrivilegesResponse recv_rename_sentry_privilege() throws org.apache.thrift.TException
457 {
458 rename_sentry_privilege_result result = new rename_sentry_privilege_result();
459 receiveBase(result, "rename_sentry_privilege");
460 if (result.isSetSuccess()) {
461 return result.success;
462 }
463 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "rename_sentry_privilege failed: unknown result");
464 }
465
466 public TListSentryPrivilegesByAuthResponse list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request) throws org.apache.thrift.TException
467 {
468 send_list_sentry_privileges_by_authorizable(request);
469 return recv_list_sentry_privileges_by_authorizable();
470 }
471
472 public void send_list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request) throws org.apache.thrift.TException
473 {
474 list_sentry_privileges_by_authorizable_args args = new list_sentry_privileges_by_authorizable_args();
475 args.setRequest(request);
476 sendBase("list_sentry_privileges_by_authorizable", args);
477 }
478
479 public TListSentryPrivilegesByAuthResponse recv_list_sentry_privileges_by_authorizable() throws org.apache.thrift.TException
480 {
481 list_sentry_privileges_by_authorizable_result result = new list_sentry_privileges_by_authorizable_result();
482 receiveBase(result, "list_sentry_privileges_by_authorizable");
483 if (result.isSetSuccess()) {
484 return result.success;
485 }
486 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "list_sentry_privileges_by_authorizable failed: unknown result");
487 }
488
489 public TSentryConfigValueResponse get_sentry_config_value(TSentryConfigValueRequest request) throws org.apache.thrift.TException
490 {
491 send_get_sentry_config_value(request);
492 return recv_get_sentry_config_value();
493 }
494
495 public void send_get_sentry_config_value(TSentryConfigValueRequest request) throws org.apache.thrift.TException
496 {
497 get_sentry_config_value_args args = new get_sentry_config_value_args();
498 args.setRequest(request);
499 sendBase("get_sentry_config_value", args);
500 }
501
502 public TSentryConfigValueResponse recv_get_sentry_config_value() throws org.apache.thrift.TException
503 {
504 get_sentry_config_value_result result = new get_sentry_config_value_result();
505 receiveBase(result, "get_sentry_config_value");
506 if (result.isSetSuccess()) {
507 return result.success;
508 }
509 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_sentry_config_value failed: unknown result");
510 }
511
512 public TSentryExportMappingDataResponse export_sentry_mapping_data(TSentryExportMappingDataRequest request) throws org.apache.thrift.TException
513 {
514 send_export_sentry_mapping_data(request);
515 return recv_export_sentry_mapping_data();
516 }
517
518 public void send_export_sentry_mapping_data(TSentryExportMappingDataRequest request) throws org.apache.thrift.TException
519 {
520 export_sentry_mapping_data_args args = new export_sentry_mapping_data_args();
521 args.setRequest(request);
522 sendBase("export_sentry_mapping_data", args);
523 }
524
525 public TSentryExportMappingDataResponse recv_export_sentry_mapping_data() throws org.apache.thrift.TException
526 {
527 export_sentry_mapping_data_result result = new export_sentry_mapping_data_result();
528 receiveBase(result, "export_sentry_mapping_data");
529 if (result.isSetSuccess()) {
530 return result.success;
531 }
532 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "export_sentry_mapping_data failed: unknown result");
533 }
534
535 public TSentryImportMappingDataResponse import_sentry_mapping_data(TSentryImportMappingDataRequest request) throws org.apache.thrift.TException
536 {
537 send_import_sentry_mapping_data(request);
538 return recv_import_sentry_mapping_data();
539 }
540
541 public void send_import_sentry_mapping_data(TSentryImportMappingDataRequest request) throws org.apache.thrift.TException
542 {
543 import_sentry_mapping_data_args args = new import_sentry_mapping_data_args();
544 args.setRequest(request);
545 sendBase("import_sentry_mapping_data", args);
546 }
547
548 public TSentryImportMappingDataResponse recv_import_sentry_mapping_data() throws org.apache.thrift.TException
549 {
550 import_sentry_mapping_data_result result = new import_sentry_mapping_data_result();
551 receiveBase(result, "import_sentry_mapping_data");
552 if (result.isSetSuccess()) {
553 return result.success;
554 }
555 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "import_sentry_mapping_data failed: unknown result");
556 }
557
558 public TSentrySyncIDResponse sentry_sync_notifications(TSentrySyncIDRequest request) throws org.apache.thrift.TException
559 {
560 send_sentry_sync_notifications(request);
561 return recv_sentry_sync_notifications();
562 }
563
564 public void send_sentry_sync_notifications(TSentrySyncIDRequest request) throws org.apache.thrift.TException
565 {
566 sentry_sync_notifications_args args = new sentry_sync_notifications_args();
567 args.setRequest(request);
568 sendBase("sentry_sync_notifications", args);
569 }
570
571 public TSentrySyncIDResponse recv_sentry_sync_notifications() throws org.apache.thrift.TException
572 {
573 sentry_sync_notifications_result result = new sentry_sync_notifications_result();
574 receiveBase(result, "sentry_sync_notifications");
575 if (result.isSetSuccess()) {
576 return result.success;
577 }
578 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sentry_sync_notifications failed: unknown result");
579 }
580
581 }
582 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
583 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
584 private org.apache.thrift.async.TAsyncClientManager clientManager;
585 private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
586 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
587 this.clientManager = clientManager;
588 this.protocolFactory = protocolFactory;
589 }
590 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
591 return new AsyncClient(protocolFactory, clientManager, transport);
592 }
593 }
594
595 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
596 super(protocolFactory, clientManager, transport);
597 }
598
599 public void create_sentry_role(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
600 checkReady();
601 create_sentry_role_call method_call = new create_sentry_role_call(request, resultHandler, this, ___protocolFactory, ___transport);
602 this.___currentMethod = method_call;
603 ___manager.call(method_call);
604 }
605
606 public static class create_sentry_role_call extends org.apache.thrift.async.TAsyncMethodCall {
607 private TCreateSentryRoleRequest request;
608 public create_sentry_role_call(TCreateSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
609 super(client, protocolFactory, transport, resultHandler, false);
610 this.request = request;
611 }
612
613 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
614 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("create_sentry_role", org.apache.thrift.protocol.TMessageType.CALL, 0));
615 create_sentry_role_args args = new create_sentry_role_args();
616 args.setRequest(request);
617 args.write(prot);
618 prot.writeMessageEnd();
619 }
620
621 public TCreateSentryRoleResponse getResult() throws org.apache.thrift.TException {
622 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
623 throw new IllegalStateException("Method call not finished!");
624 }
625 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
626 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
627 return (new Client(prot)).recv_create_sentry_role();
628 }
629 }
630
631 public void drop_sentry_role(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
632 checkReady();
633 drop_sentry_role_call method_call = new drop_sentry_role_call(request, resultHandler, this, ___protocolFactory, ___transport);
634 this.___currentMethod = method_call;
635 ___manager.call(method_call);
636 }
637
638 public static class drop_sentry_role_call extends org.apache.thrift.async.TAsyncMethodCall {
639 private TDropSentryRoleRequest request;
640 public drop_sentry_role_call(TDropSentryRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
641 super(client, protocolFactory, transport, resultHandler, false);
642 this.request = request;
643 }
644
645 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
646 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drop_sentry_role", org.apache.thrift.protocol.TMessageType.CALL, 0));
647 drop_sentry_role_args args = new drop_sentry_role_args();
648 args.setRequest(request);
649 args.write(prot);
650 prot.writeMessageEnd();
651 }
652
653 public TDropSentryRoleResponse getResult() throws org.apache.thrift.TException {
654 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
655 throw new IllegalStateException("Method call not finished!");
656 }
657 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
658 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
659 return (new Client(prot)).recv_drop_sentry_role();
660 }
661 }
662
663 public void alter_sentry_role_grant_privilege(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
664 checkReady();
665 alter_sentry_role_grant_privilege_call method_call = new alter_sentry_role_grant_privilege_call(request, resultHandler, this, ___protocolFactory, ___transport);
666 this.___currentMethod = method_call;
667 ___manager.call(method_call);
668 }
669
670 public static class alter_sentry_role_grant_privilege_call extends org.apache.thrift.async.TAsyncMethodCall {
671 private TAlterSentryRoleGrantPrivilegeRequest request;
672 public alter_sentry_role_grant_privilege_call(TAlterSentryRoleGrantPrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
673 super(client, protocolFactory, transport, resultHandler, false);
674 this.request = request;
675 }
676
677 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
678 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("alter_sentry_role_grant_privilege", org.apache.thrift.protocol.TMessageType.CALL, 0));
679 alter_sentry_role_grant_privilege_args args = new alter_sentry_role_grant_privilege_args();
680 args.setRequest(request);
681 args.write(prot);
682 prot.writeMessageEnd();
683 }
684
685 public TAlterSentryRoleGrantPrivilegeResponse getResult() throws org.apache.thrift.TException {
686 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
687 throw new IllegalStateException("Method call not finished!");
688 }
689 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
690 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
691 return (new Client(prot)).recv_alter_sentry_role_grant_privilege();
692 }
693 }
694
695 public void alter_sentry_role_revoke_privilege(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
696 checkReady();
697 alter_sentry_role_revoke_privilege_call method_call = new alter_sentry_role_revoke_privilege_call(request, resultHandler, this, ___protocolFactory, ___transport);
698 this.___currentMethod = method_call;
699 ___manager.call(method_call);
700 }
701
702 public static class alter_sentry_role_revoke_privilege_call extends org.apache.thrift.async.TAsyncMethodCall {
703 private TAlterSentryRoleRevokePrivilegeRequest request;
704 public alter_sentry_role_revoke_privilege_call(TAlterSentryRoleRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
705 super(client, protocolFactory, transport, resultHandler, false);
706 this.request = request;
707 }
708
709 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
710 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("alter_sentry_role_revoke_privilege", org.apache.thrift.protocol.TMessageType.CALL, 0));
711 alter_sentry_role_revoke_privilege_args args = new alter_sentry_role_revoke_privilege_args();
712 args.setRequest(request);
713 args.write(prot);
714 prot.writeMessageEnd();
715 }
716
717 public TAlterSentryRoleRevokePrivilegeResponse getResult() throws org.apache.thrift.TException {
718 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
719 throw new IllegalStateException("Method call not finished!");
720 }
721 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
722 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
723 return (new Client(prot)).recv_alter_sentry_role_revoke_privilege();
724 }
725 }
726
727 public void alter_sentry_role_add_groups(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
728 checkReady();
729 alter_sentry_role_add_groups_call method_call = new alter_sentry_role_add_groups_call(request, resultHandler, this, ___protocolFactory, ___transport);
730 this.___currentMethod = method_call;
731 ___manager.call(method_call);
732 }
733
734 public static class alter_sentry_role_add_groups_call extends org.apache.thrift.async.TAsyncMethodCall {
735 private TAlterSentryRoleAddGroupsRequest request;
736 public alter_sentry_role_add_groups_call(TAlterSentryRoleAddGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
737 super(client, protocolFactory, transport, resultHandler, false);
738 this.request = request;
739 }
740
741 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
742 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("alter_sentry_role_add_groups", org.apache.thrift.protocol.TMessageType.CALL, 0));
743 alter_sentry_role_add_groups_args args = new alter_sentry_role_add_groups_args();
744 args.setRequest(request);
745 args.write(prot);
746 prot.writeMessageEnd();
747 }
748
749 public TAlterSentryRoleAddGroupsResponse getResult() throws org.apache.thrift.TException {
750 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
751 throw new IllegalStateException("Method call not finished!");
752 }
753 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
754 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
755 return (new Client(prot)).recv_alter_sentry_role_add_groups();
756 }
757 }
758
759 public void alter_sentry_role_delete_groups(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
760 checkReady();
761 alter_sentry_role_delete_groups_call method_call = new alter_sentry_role_delete_groups_call(request, resultHandler, this, ___protocolFactory, ___transport);
762 this.___currentMethod = method_call;
763 ___manager.call(method_call);
764 }
765
766 public static class alter_sentry_role_delete_groups_call extends org.apache.thrift.async.TAsyncMethodCall {
767 private TAlterSentryRoleDeleteGroupsRequest request;
768 public alter_sentry_role_delete_groups_call(TAlterSentryRoleDeleteGroupsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
769 super(client, protocolFactory, transport, resultHandler, false);
770 this.request = request;
771 }
772
773 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
774 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("alter_sentry_role_delete_groups", org.apache.thrift.protocol.TMessageType.CALL, 0));
775 alter_sentry_role_delete_groups_args args = new alter_sentry_role_delete_groups_args();
776 args.setRequest(request);
777 args.write(prot);
778 prot.writeMessageEnd();
779 }
780
781 public TAlterSentryRoleDeleteGroupsResponse getResult() throws org.apache.thrift.TException {
782 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
783 throw new IllegalStateException("Method call not finished!");
784 }
785 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
786 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
787 return (new Client(prot)).recv_alter_sentry_role_delete_groups();
788 }
789 }
790
791 public void alter_sentry_role_add_users(TAlterSentryRoleAddUsersRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
792 checkReady();
793 alter_sentry_role_add_users_call method_call = new alter_sentry_role_add_users_call(request, resultHandler, this, ___protocolFactory, ___transport);
794 this.___currentMethod = method_call;
795 ___manager.call(method_call);
796 }
797
798 public static class alter_sentry_role_add_users_call extends org.apache.thrift.async.TAsyncMethodCall {
799 private TAlterSentryRoleAddUsersRequest request;
800 public alter_sentry_role_add_users_call(TAlterSentryRoleAddUsersRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
801 super(client, protocolFactory, transport, resultHandler, false);
802 this.request = request;
803 }
804
805 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
806 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("alter_sentry_role_add_users", org.apache.thrift.protocol.TMessageType.CALL, 0));
807 alter_sentry_role_add_users_args args = new alter_sentry_role_add_users_args();
808 args.setRequest(request);
809 args.write(prot);
810 prot.writeMessageEnd();
811 }
812
813 public TAlterSentryRoleAddUsersResponse getResult() throws org.apache.thrift.TException {
814 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
815 throw new IllegalStateException("Method call not finished!");
816 }
817 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
818 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
819 return (new Client(prot)).recv_alter_sentry_role_add_users();
820 }
821 }
822
823 public void alter_sentry_role_delete_users(TAlterSentryRoleDeleteUsersRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
824 checkReady();
825 alter_sentry_role_delete_users_call method_call = new alter_sentry_role_delete_users_call(request, resultHandler, this, ___protocolFactory, ___transport);
826 this.___currentMethod = method_call;
827 ___manager.call(method_call);
828 }
829
830 public static class alter_sentry_role_delete_users_call extends org.apache.thrift.async.TAsyncMethodCall {
831 private TAlterSentryRoleDeleteUsersRequest request;
832 public alter_sentry_role_delete_users_call(TAlterSentryRoleDeleteUsersRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
833 super(client, protocolFactory, transport, resultHandler, false);
834 this.request = request;
835 }
836
837 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
838 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("alter_sentry_role_delete_users", org.apache.thrift.protocol.TMessageType.CALL, 0));
839 alter_sentry_role_delete_users_args args = new alter_sentry_role_delete_users_args();
840 args.setRequest(request);
841 args.write(prot);
842 prot.writeMessageEnd();
843 }
844
845 public TAlterSentryRoleDeleteUsersResponse getResult() throws org.apache.thrift.TException {
846 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
847 throw new IllegalStateException("Method call not finished!");
848 }
849 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
850 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
851 return (new Client(prot)).recv_alter_sentry_role_delete_users();
852 }
853 }
854
855 public void list_sentry_roles_by_group(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
856 checkReady();
857 list_sentry_roles_by_group_call method_call = new list_sentry_roles_by_group_call(request, resultHandler, this, ___protocolFactory, ___transport);
858 this.___currentMethod = method_call;
859 ___manager.call(method_call);
860 }
861
862 public static class list_sentry_roles_by_group_call extends org.apache.thrift.async.TAsyncMethodCall {
863 private TListSentryRolesRequest request;
864 public list_sentry_roles_by_group_call(TListSentryRolesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
865 super(client, protocolFactory, transport, resultHandler, false);
866 this.request = request;
867 }
868
869 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
870 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("list_sentry_roles_by_group", org.apache.thrift.protocol.TMessageType.CALL, 0));
871 list_sentry_roles_by_group_args args = new list_sentry_roles_by_group_args();
872 args.setRequest(request);
873 args.write(prot);
874 prot.writeMessageEnd();
875 }
876
877 public TListSentryRolesResponse getResult() throws org.apache.thrift.TException {
878 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
879 throw new IllegalStateException("Method call not finished!");
880 }
881 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
882 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
883 return (new Client(prot)).recv_list_sentry_roles_by_group();
884 }
885 }
886
887 public void list_sentry_roles_by_user(TListSentryRolesForUserRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
888 checkReady();
889 list_sentry_roles_by_user_call method_call = new list_sentry_roles_by_user_call(request, resultHandler, this, ___protocolFactory, ___transport);
890 this.___currentMethod = method_call;
891 ___manager.call(method_call);
892 }
893
894 public static class list_sentry_roles_by_user_call extends org.apache.thrift.async.TAsyncMethodCall {
895 private TListSentryRolesForUserRequest request;
896 public list_sentry_roles_by_user_call(TListSentryRolesForUserRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
897 super(client, protocolFactory, transport, resultHandler, false);
898 this.request = request;
899 }
900
901 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
902 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("list_sentry_roles_by_user", org.apache.thrift.protocol.TMessageType.CALL, 0));
903 list_sentry_roles_by_user_args args = new list_sentry_roles_by_user_args();
904 args.setRequest(request);
905 args.write(prot);
906 prot.writeMessageEnd();
907 }
908
909 public TListSentryRolesResponse getResult() throws org.apache.thrift.TException {
910 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
911 throw new IllegalStateException("Method call not finished!");
912 }
913 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
914 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
915 return (new Client(prot)).recv_list_sentry_roles_by_user();
916 }
917 }
918
919 public void list_sentry_privileges_by_role(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
920 checkReady();
921 list_sentry_privileges_by_role_call method_call = new list_sentry_privileges_by_role_call(request, resultHandler, this, ___protocolFactory, ___transport);
922 this.___currentMethod = method_call;
923 ___manager.call(method_call);
924 }
925
926 public static class list_sentry_privileges_by_role_call extends org.apache.thrift.async.TAsyncMethodCall {
927 private TListSentryPrivilegesRequest request;
928 public list_sentry_privileges_by_role_call(TListSentryPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
929 super(client, protocolFactory, transport, resultHandler, false);
930 this.request = request;
931 }
932
933 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
934 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("list_sentry_privileges_by_role", org.apache.thrift.protocol.TMessageType.CALL, 0));
935 list_sentry_privileges_by_role_args args = new list_sentry_privileges_by_role_args();
936 args.setRequest(request);
937 args.write(prot);
938 prot.writeMessageEnd();
939 }
940
941 public TListSentryPrivilegesResponse getResult() throws org.apache.thrift.TException {
942 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
943 throw new IllegalStateException("Method call not finished!");
944 }
945 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
946 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
947 return (new Client(prot)).recv_list_sentry_privileges_by_role();
948 }
949 }
950
951 public void list_sentry_privileges_for_provider(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
952 checkReady();
953 list_sentry_privileges_for_provider_call method_call = new list_sentry_privileges_for_provider_call(request, resultHandler, this, ___protocolFactory, ___transport);
954 this.___currentMethod = method_call;
955 ___manager.call(method_call);
956 }
957
958 public static class list_sentry_privileges_for_provider_call extends org.apache.thrift.async.TAsyncMethodCall {
959 private TListSentryPrivilegesForProviderRequest request;
960 public list_sentry_privileges_for_provider_call(TListSentryPrivilegesForProviderRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
961 super(client, protocolFactory, transport, resultHandler, false);
962 this.request = request;
963 }
964
965 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
966 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("list_sentry_privileges_for_provider", org.apache.thrift.protocol.TMessageType.CALL, 0));
967 list_sentry_privileges_for_provider_args args = new list_sentry_privileges_for_provider_args();
968 args.setRequest(request);
969 args.write(prot);
970 prot.writeMessageEnd();
971 }
972
973 public TListSentryPrivilegesForProviderResponse getResult() throws org.apache.thrift.TException {
974 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
975 throw new IllegalStateException("Method call not finished!");
976 }
977 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
978 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
979 return (new Client(prot)).recv_list_sentry_privileges_for_provider();
980 }
981 }
982
983 public void drop_sentry_privilege(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
984 checkReady();
985 drop_sentry_privilege_call method_call = new drop_sentry_privilege_call(request, resultHandler, this, ___protocolFactory, ___transport);
986 this.___currentMethod = method_call;
987 ___manager.call(method_call);
988 }
989
990 public static class drop_sentry_privilege_call extends org.apache.thrift.async.TAsyncMethodCall {
991 private TDropPrivilegesRequest request;
992 public drop_sentry_privilege_call(TDropPrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
993 super(client, protocolFactory, transport, resultHandler, false);
994 this.request = request;
995 }
996
997 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
998 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drop_sentry_privilege", org.apache.thrift.protocol.TMessageType.CALL, 0));
999 drop_sentry_privilege_args args = new drop_sentry_privilege_args();
1000 args.setRequest(request);
1001 args.write(prot);
1002 prot.writeMessageEnd();
1003 }
1004
1005 public TDropPrivilegesResponse getResult() throws org.apache.thrift.TException {
1006 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1007 throw new IllegalStateException("Method call not finished!");
1008 }
1009 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1010 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1011 return (new Client(prot)).recv_drop_sentry_privilege();
1012 }
1013 }
1014
1015 public void rename_sentry_privilege(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1016 checkReady();
1017 rename_sentry_privilege_call method_call = new rename_sentry_privilege_call(request, resultHandler, this, ___protocolFactory, ___transport);
1018 this.___currentMethod = method_call;
1019 ___manager.call(method_call);
1020 }
1021
1022 public static class rename_sentry_privilege_call extends org.apache.thrift.async.TAsyncMethodCall {
1023 private TRenamePrivilegesRequest request;
1024 public rename_sentry_privilege_call(TRenamePrivilegesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1025 super(client, protocolFactory, transport, resultHandler, false);
1026 this.request = request;
1027 }
1028
1029 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1030 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("rename_sentry_privilege", org.apache.thrift.protocol.TMessageType.CALL, 0));
1031 rename_sentry_privilege_args args = new rename_sentry_privilege_args();
1032 args.setRequest(request);
1033 args.write(prot);
1034 prot.writeMessageEnd();
1035 }
1036
1037 public TRenamePrivilegesResponse getResult() throws org.apache.thrift.TException {
1038 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1039 throw new IllegalStateException("Method call not finished!");
1040 }
1041 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1042 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1043 return (new Client(prot)).recv_rename_sentry_privilege();
1044 }
1045 }
1046
1047 public void list_sentry_privileges_by_authorizable(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1048 checkReady();
1049 list_sentry_privileges_by_authorizable_call method_call = new list_sentry_privileges_by_authorizable_call(request, resultHandler, this, ___protocolFactory, ___transport);
1050 this.___currentMethod = method_call;
1051 ___manager.call(method_call);
1052 }
1053
1054 public static class list_sentry_privileges_by_authorizable_call extends org.apache.thrift.async.TAsyncMethodCall {
1055 private TListSentryPrivilegesByAuthRequest request;
1056 public list_sentry_privileges_by_authorizable_call(TListSentryPrivilegesByAuthRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1057 super(client, protocolFactory, transport, resultHandler, false);
1058 this.request = request;
1059 }
1060
1061 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1062 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("list_sentry_privileges_by_authorizable", org.apache.thrift.protocol.TMessageType.CALL, 0));
1063 list_sentry_privileges_by_authorizable_args args = new list_sentry_privileges_by_authorizable_args();
1064 args.setRequest(request);
1065 args.write(prot);
1066 prot.writeMessageEnd();
1067 }
1068
1069 public TListSentryPrivilegesByAuthResponse getResult() throws org.apache.thrift.TException {
1070 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1071 throw new IllegalStateException("Method call not finished!");
1072 }
1073 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1074 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1075 return (new Client(prot)).recv_list_sentry_privileges_by_authorizable();
1076 }
1077 }
1078
1079 public void get_sentry_config_value(TSentryConfigValueRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1080 checkReady();
1081 get_sentry_config_value_call method_call = new get_sentry_config_value_call(request, resultHandler, this, ___protocolFactory, ___transport);
1082 this.___currentMethod = method_call;
1083 ___manager.call(method_call);
1084 }
1085
1086 public static class get_sentry_config_value_call extends org.apache.thrift.async.TAsyncMethodCall {
1087 private TSentryConfigValueRequest request;
1088 public get_sentry_config_value_call(TSentryConfigValueRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1089 super(client, protocolFactory, transport, resultHandler, false);
1090 this.request = request;
1091 }
1092
1093 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1094 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_sentry_config_value", org.apache.thrift.protocol.TMessageType.CALL, 0));
1095 get_sentry_config_value_args args = new get_sentry_config_value_args();
1096 args.setRequest(request);
1097 args.write(prot);
1098 prot.writeMessageEnd();
1099 }
1100
1101 public TSentryConfigValueResponse getResult() throws org.apache.thrift.TException {
1102 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1103 throw new IllegalStateException("Method call not finished!");
1104 }
1105 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1106 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1107 return (new Client(prot)).recv_get_sentry_config_value();
1108 }
1109 }
1110
1111 public void export_sentry_mapping_data(TSentryExportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1112 checkReady();
1113 export_sentry_mapping_data_call method_call = new export_sentry_mapping_data_call(request, resultHandler, this, ___protocolFactory, ___transport);
1114 this.___currentMethod = method_call;
1115 ___manager.call(method_call);
1116 }
1117
1118 public static class export_sentry_mapping_data_call extends org.apache.thrift.async.TAsyncMethodCall {
1119 private TSentryExportMappingDataRequest request;
1120 public export_sentry_mapping_data_call(TSentryExportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1121 super(client, protocolFactory, transport, resultHandler, false);
1122 this.request = request;
1123 }
1124
1125 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1126 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("export_sentry_mapping_data", org.apache.thrift.protocol.TMessageType.CALL, 0));
1127 export_sentry_mapping_data_args args = new export_sentry_mapping_data_args();
1128 args.setRequest(request);
1129 args.write(prot);
1130 prot.writeMessageEnd();
1131 }
1132
1133 public TSentryExportMappingDataResponse getResult() throws org.apache.thrift.TException {
1134 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1135 throw new IllegalStateException("Method call not finished!");
1136 }
1137 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1138 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1139 return (new Client(prot)).recv_export_sentry_mapping_data();
1140 }
1141 }
1142
1143 public void import_sentry_mapping_data(TSentryImportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1144 checkReady();
1145 import_sentry_mapping_data_call method_call = new import_sentry_mapping_data_call(request, resultHandler, this, ___protocolFactory, ___transport);
1146 this.___currentMethod = method_call;
1147 ___manager.call(method_call);
1148 }
1149
1150 public static class import_sentry_mapping_data_call extends org.apache.thrift.async.TAsyncMethodCall {
1151 private TSentryImportMappingDataRequest request;
1152 public import_sentry_mapping_data_call(TSentryImportMappingDataRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1153 super(client, protocolFactory, transport, resultHandler, false);
1154 this.request = request;
1155 }
1156
1157 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1158 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("import_sentry_mapping_data", org.apache.thrift.protocol.TMessageType.CALL, 0));
1159 import_sentry_mapping_data_args args = new import_sentry_mapping_data_args();
1160 args.setRequest(request);
1161 args.write(prot);
1162 prot.writeMessageEnd();
1163 }
1164
1165 public TSentryImportMappingDataResponse getResult() throws org.apache.thrift.TException {
1166 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1167 throw new IllegalStateException("Method call not finished!");
1168 }
1169 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1170 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1171 return (new Client(prot)).recv_import_sentry_mapping_data();
1172 }
1173 }
1174
1175 public void sentry_sync_notifications(TSentrySyncIDRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1176 checkReady();
1177 sentry_sync_notifications_call method_call = new sentry_sync_notifications_call(request, resultHandler, this, ___protocolFactory, ___transport);
1178 this.___currentMethod = method_call;
1179 ___manager.call(method_call);
1180 }
1181
1182 public static class sentry_sync_notifications_call extends org.apache.thrift.async.TAsyncMethodCall {
1183 private TSentrySyncIDRequest request;
1184 public sentry_sync_notifications_call(TSentrySyncIDRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1185 super(client, protocolFactory, transport, resultHandler, false);
1186 this.request = request;
1187 }
1188
1189 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1190 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sentry_sync_notifications", org.apache.thrift.protocol.TMessageType.CALL, 0));
1191 sentry_sync_notifications_args args = new sentry_sync_notifications_args();
1192 args.setRequest(request);
1193 args.write(prot);
1194 prot.writeMessageEnd();
1195 }
1196
1197 public TSentrySyncIDResponse getResult() throws org.apache.thrift.TException {
1198 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1199 throw new IllegalStateException("Method call not finished!");
1200 }
1201 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1202 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1203 return (new Client(prot)).recv_sentry_sync_notifications();
1204 }
1205 }
1206
1207 }
1208
1209 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
1210 private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1211 public Processor(I iface) {
1212 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1213 }
1214
1215 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
1216 super(iface, getProcessMap(processMap));
1217 }
1218
1219 private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
1220 processMap.put("create_sentry_role", new create_sentry_role());
1221 processMap.put("drop_sentry_role", new drop_sentry_role());
1222 processMap.put("alter_sentry_role_grant_privilege", new alter_sentry_role_grant_privilege());
1223 processMap.put("alter_sentry_role_revoke_privilege", new alter_sentry_role_revoke_privilege());
1224 processMap.put("alter_sentry_role_add_groups", new alter_sentry_role_add_groups());
1225 processMap.put("alter_sentry_role_delete_groups", new alter_sentry_role_delete_groups());
1226 processMap.put("alter_sentry_role_add_users", new alter_sentry_role_add_users());
1227 processMap.put("alter_sentry_role_delete_users", new alter_sentry_role_delete_users());
1228 processMap.put("list_sentry_roles_by_group", new list_sentry_roles_by_group());
1229 processMap.put("list_sentry_roles_by_user", new list_sentry_roles_by_user());
1230 processMap.put("list_sentry_privileges_by_role", new list_sentry_privileges_by_role());
1231 processMap.put("list_sentry_privileges_for_provider", new list_sentry_privileges_for_provider());
1232 processMap.put("drop_sentry_privilege", new drop_sentry_privilege());
1233 processMap.put("rename_sentry_privilege", new rename_sentry_privilege());
1234 processMap.put("list_sentry_privileges_by_authorizable", new list_sentry_privileges_by_authorizable());
1235 processMap.put("get_sentry_config_value", new get_sentry_config_value());
1236 processMap.put("export_sentry_mapping_data", new export_sentry_mapping_data());
1237 processMap.put("import_sentry_mapping_data", new import_sentry_mapping_data());
1238 processMap.put("sentry_sync_notifications", new sentry_sync_notifications());
1239 return processMap;
1240 }
1241
1242 public static class create_sentry_role<I extends Iface> extends org.apache.thrift.ProcessFunction<I, create_sentry_role_args> {
1243 public create_sentry_role() {
1244 super("create_sentry_role");
1245 }
1246
1247 public create_sentry_role_args getEmptyArgsInstance() {
1248 return new create_sentry_role_args();
1249 }
1250
1251 protected boolean isOneway() {
1252 return false;
1253 }
1254
1255 public create_sentry_role_result getResult(I iface, create_sentry_role_args args) throws org.apache.thrift.TException {
1256 create_sentry_role_result result = new create_sentry_role_result();
1257 result.success = iface.create_sentry_role(args.request);
1258 return result;
1259 }
1260 }
1261
1262 public static class drop_sentry_role<I extends Iface> extends org.apache.thrift.ProcessFunction<I, drop_sentry_role_args> {
1263 public drop_sentry_role() {
1264 super("drop_sentry_role");
1265 }
1266
1267 public drop_sentry_role_args getEmptyArgsInstance() {
1268 return new drop_sentry_role_args();
1269 }
1270
1271 protected boolean isOneway() {
1272 return false;
1273 }
1274
1275 public drop_sentry_role_result getResult(I iface, drop_sentry_role_args args) throws org.apache.thrift.TException {
1276 drop_sentry_role_result result = new drop_sentry_role_result();
1277 result.success = iface.drop_sentry_role(args.request);
1278 return result;
1279 }
1280 }
1281
1282 public static class alter_sentry_role_grant_privilege<I extends Iface> extends org.apache.thrift.ProcessFunction<I, alter_sentry_role_grant_privilege_args> {
1283 public alter_sentry_role_grant_privilege() {
1284 super("alter_sentry_role_grant_privilege");
1285 }
1286
1287 public alter_sentry_role_grant_privilege_args getEmptyArgsInstance() {
1288 return new alter_sentry_role_grant_privilege_args();
1289 }
1290
1291 protected boolean isOneway() {
1292 return false;
1293 }
1294
1295 public alter_sentry_role_grant_privilege_result getResult(I iface, alter_sentry_role_grant_privilege_args args) throws org.apache.thrift.TException {
1296 alter_sentry_role_grant_privilege_result result = new alter_sentry_role_grant_privilege_result();
1297 result.success = iface.alter_sentry_role_grant_privilege(args.request);
1298 return result;
1299 }
1300 }
1301
1302 public static class alter_sentry_role_revoke_privilege<I extends Iface> extends org.apache.thrift.ProcessFunction<I, alter_sentry_role_revoke_privilege_args> {
1303 public alter_sentry_role_revoke_privilege() {
1304 super("alter_sentry_role_revoke_privilege");
1305 }
1306
1307 public alter_sentry_role_revoke_privilege_args getEmptyArgsInstance() {
1308 return new alter_sentry_role_revoke_privilege_args();
1309 }
1310
1311 protected boolean isOneway() {
1312 return false;
1313 }
1314
1315 public alter_sentry_role_revoke_privilege_result getResult(I iface, alter_sentry_role_revoke_privilege_args args) throws org.apache.thrift.TException {
1316 alter_sentry_role_revoke_privilege_result result = new alter_sentry_role_revoke_privilege_result();
1317 result.success = iface.alter_sentry_role_revoke_privilege(args.request);
1318 return result;
1319 }
1320 }
1321
1322 public static class alter_sentry_role_add_groups<I extends Iface> extends org.apache.thrift.ProcessFunction<I, alter_sentry_role_add_groups_args> {
1323 public alter_sentry_role_add_groups() {
1324 super("alter_sentry_role_add_groups");
1325 }
1326
1327 public alter_sentry_role_add_groups_args getEmptyArgsInstance() {
1328 return new alter_sentry_role_add_groups_args();
1329 }
1330
1331 protected boolean isOneway() {
1332 return false;
1333 }
1334
1335 public alter_sentry_role_add_groups_result getResult(I iface, alter_sentry_role_add_groups_args args) throws org.apache.thrift.TException {
1336 alter_sentry_role_add_groups_result result = new alter_sentry_role_add_groups_result();
1337 result.success = iface.alter_sentry_role_add_groups(args.request);
1338 return result;
1339 }
1340 }
1341
1342 public static class alter_sentry_role_delete_groups<I extends Iface> extends org.apache.thrift.ProcessFunction<I, alter_sentry_role_delete_groups_args> {
1343 public alter_sentry_role_delete_groups() {
1344 super("alter_sentry_role_delete_groups");
1345 }
1346
1347 public alter_sentry_role_delete_groups_args getEmptyArgsInstance() {
1348 return new alter_sentry_role_delete_groups_args();
1349 }
1350
1351 protected boolean isOneway() {
1352 return false;
1353 }
1354
1355 public alter_sentry_role_delete_groups_result getResult(I iface, alter_sentry_role_delete_groups_args args) throws org.apache.thrift.TException {
1356 alter_sentry_role_delete_groups_result result = new alter_sentry_role_delete_groups_result();
1357 result.success = iface.alter_sentry_role_delete_groups(args.request);
1358 return result;
1359 }
1360 }
1361
1362 public static class alter_sentry_role_add_users<I extends Iface> extends org.apache.thrift.ProcessFunction<I, alter_sentry_role_add_users_args> {
1363 public alter_sentry_role_add_users() {
1364 super("alter_sentry_role_add_users");
1365 }
1366
1367 public alter_sentry_role_add_users_args getEmptyArgsInstance() {
1368 return new alter_sentry_role_add_users_args();
1369 }
1370
1371 protected boolean isOneway() {
1372 return false;
1373 }
1374
1375 public alter_sentry_role_add_users_result getResult(I iface, alter_sentry_role_add_users_args args) throws org.apache.thrift.TException {
1376 alter_sentry_role_add_users_result result = new alter_sentry_role_add_users_result();
1377 result.success = iface.alter_sentry_role_add_users(args.request);
1378 return result;
1379 }
1380 }
1381
1382 public static class alter_sentry_role_delete_users<I extends Iface> extends org.apache.thrift.ProcessFunction<I, alter_sentry_role_delete_users_args> {
1383 public alter_sentry_role_delete_users() {
1384 super("alter_sentry_role_delete_users");
1385 }
1386
1387 public alter_sentry_role_delete_users_args getEmptyArgsInstance() {
1388 return new alter_sentry_role_delete_users_args();
1389 }
1390
1391 protected boolean isOneway() {
1392 return false;
1393 }
1394
1395 public alter_sentry_role_delete_users_result getResult(I iface, alter_sentry_role_delete_users_args args) throws org.apache.thrift.TException {
1396 alter_sentry_role_delete_users_result result = new alter_sentry_role_delete_users_result();
1397 result.success = iface.alter_sentry_role_delete_users(args.request);
1398 return result;
1399 }
1400 }
1401
1402 public static class list_sentry_roles_by_group<I extends Iface> extends org.apache.thrift.ProcessFunction<I, list_sentry_roles_by_group_args> {
1403 public list_sentry_roles_by_group() {
1404 super("list_sentry_roles_by_group");
1405 }
1406
1407 public list_sentry_roles_by_group_args getEmptyArgsInstance() {
1408 return new list_sentry_roles_by_group_args();
1409 }
1410
1411 protected boolean isOneway() {
1412 return false;
1413 }
1414
1415 public list_sentry_roles_by_group_result getResult(I iface, list_sentry_roles_by_group_args args) throws org.apache.thrift.TException {
1416 list_sentry_roles_by_group_result result = new list_sentry_roles_by_group_result();
1417 result.success = iface.list_sentry_roles_by_group(args.request);
1418 return result;
1419 }
1420 }
1421
1422 public static class list_sentry_roles_by_user<I extends Iface> extends org.apache.thrift.ProcessFunction<I, list_sentry_roles_by_user_args> {
1423 public list_sentry_roles_by_user() {
1424 super("list_sentry_roles_by_user");
1425 }
1426
1427 public list_sentry_roles_by_user_args getEmptyArgsInstance() {
1428 return new list_sentry_roles_by_user_args();
1429 }
1430
1431 protected boolean isOneway() {
1432 return false;
1433 }
1434
1435 public list_sentry_roles_by_user_result getResult(I iface, list_sentry_roles_by_user_args args) throws org.apache.thrift.TException {
1436 list_sentry_roles_by_user_result result = new list_sentry_roles_by_user_result();
1437 result.success = iface.list_sentry_roles_by_user(args.request);
1438 return result;
1439 }
1440 }
1441
1442 public static class list_sentry_privileges_by_role<I extends Iface> extends org.apache.thrift.ProcessFunction<I, list_sentry_privileges_by_role_args> {
1443 public list_sentry_privileges_by_role() {
1444 super("list_sentry_privileges_by_role");
1445 }
1446
1447 public list_sentry_privileges_by_role_args getEmptyArgsInstance() {
1448 return new list_sentry_privileges_by_role_args();
1449 }
1450
1451 protected boolean isOneway() {
1452 return false;
1453 }
1454
1455 public list_sentry_privileges_by_role_result getResult(I iface, list_sentry_privileges_by_role_args args) throws org.apache.thrift.TException {
1456 list_sentry_privileges_by_role_result result = new list_sentry_privileges_by_role_result();
1457 result.success = iface.list_sentry_privileges_by_role(args.request);
1458 return result;
1459 }
1460 }
1461
1462 public static class list_sentry_privileges_for_provider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, list_sentry_privileges_for_provider_args> {
1463 public list_sentry_privileges_for_provider() {
1464 super("list_sentry_privileges_for_provider");
1465 }
1466
1467 public list_sentry_privileges_for_provider_args getEmptyArgsInstance() {
1468 return new list_sentry_privileges_for_provider_args();
1469 }
1470
1471 protected boolean isOneway() {
1472 return false;
1473 }
1474
1475 public list_sentry_privileges_for_provider_result getResult(I iface, list_sentry_privileges_for_provider_args args) throws org.apache.thrift.TException {
1476 list_sentry_privileges_for_provider_result result = new list_sentry_privileges_for_provider_result();
1477 result.success = iface.list_sentry_privileges_for_provider(args.request);
1478 return result;
1479 }
1480 }
1481
1482 public static class drop_sentry_privilege<I extends Iface> extends org.apache.thrift.ProcessFunction<I, drop_sentry_privilege_args> {
1483 public drop_sentry_privilege() {
1484 super("drop_sentry_privilege");
1485 }
1486
1487 public drop_sentry_privilege_args getEmptyArgsInstance() {
1488 return new drop_sentry_privilege_args();
1489 }
1490
1491 protected boolean isOneway() {
1492 return false;
1493 }
1494
1495 public drop_sentry_privilege_result getResult(I iface, drop_sentry_privilege_args args) throws org.apache.thrift.TException {
1496 drop_sentry_privilege_result result = new drop_sentry_privilege_result();
1497 result.success = iface.drop_sentry_privilege(args.request);
1498 return result;
1499 }
1500 }
1501
1502 public static class rename_sentry_privilege<I extends Iface> extends org.apache.thrift.ProcessFunction<I, rename_sentry_privilege_args> {
1503 public rename_sentry_privilege() {
1504 super("rename_sentry_privilege");
1505 }
1506
1507 public rename_sentry_privilege_args getEmptyArgsInstance() {
1508 return new rename_sentry_privilege_args();
1509 }
1510
1511 protected boolean isOneway() {
1512 return false;
1513 }
1514
1515 public rename_sentry_privilege_result getResult(I iface, rename_sentry_privilege_args args) throws org.apache.thrift.TException {
1516 rename_sentry_privilege_result result = new rename_sentry_privilege_result();
1517 result.success = iface.rename_sentry_privilege(args.request);
1518 return result;
1519 }
1520 }
1521
1522 public static class list_sentry_privileges_by_authorizable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, list_sentry_privileges_by_authorizable_args> {
1523 public list_sentry_privileges_by_authorizable() {
1524 super("list_sentry_privileges_by_authorizable");
1525 }
1526
1527 public list_sentry_privileges_by_authorizable_args getEmptyArgsInstance() {
1528 return new list_sentry_privileges_by_authorizable_args();
1529 }
1530
1531 protected boolean isOneway() {
1532 return false;
1533 }
1534
1535 public list_sentry_privileges_by_authorizable_result getResult(I iface, list_sentry_privileges_by_authorizable_args args) throws org.apache.thrift.TException {
1536 list_sentry_privileges_by_authorizable_result result = new list_sentry_privileges_by_authorizable_result();
1537 result.success = iface.list_sentry_privileges_by_authorizable(args.request);
1538 return result;
1539 }
1540 }
1541
1542 public static class get_sentry_config_value<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_sentry_config_value_args> {
1543 public get_sentry_config_value() {
1544 super("get_sentry_config_value");
1545 }
1546
1547 public get_sentry_config_value_args getEmptyArgsInstance() {
1548 return new get_sentry_config_value_args();
1549 }
1550
1551 protected boolean isOneway() {
1552 return false;
1553 }
1554
1555 public get_sentry_config_value_result getResult(I iface, get_sentry_config_value_args args) throws org.apache.thrift.TException {
1556 get_sentry_config_value_result result = new get_sentry_config_value_result();
1557 result.success = iface.get_sentry_config_value(args.request);
1558 return result;
1559 }
1560 }
1561
1562 public static class export_sentry_mapping_data<I extends Iface> extends org.apache.thrift.ProcessFunction<I, export_sentry_mapping_data_args> {
1563 public export_sentry_mapping_data() {
1564 super("export_sentry_mapping_data");
1565 }
1566
1567 public export_sentry_mapping_data_args getEmptyArgsInstance() {
1568 return new export_sentry_mapping_data_args();
1569 }
1570
1571 protected boolean isOneway() {
1572 return false;
1573 }
1574
1575 public export_sentry_mapping_data_result getResult(I iface, export_sentry_mapping_data_args args) throws org.apache.thrift.TException {
1576 export_sentry_mapping_data_result result = new export_sentry_mapping_data_result();
1577 result.success = iface.export_sentry_mapping_data(args.request);
1578 return result;
1579 }
1580 }
1581
1582 public static class import_sentry_mapping_data<I extends Iface> extends org.apache.thrift.ProcessFunction<I, import_sentry_mapping_data_args> {
1583 public import_sentry_mapping_data() {
1584 super("import_sentry_mapping_data");
1585 }
1586
1587 public import_sentry_mapping_data_args getEmptyArgsInstance() {
1588 return new import_sentry_mapping_data_args();
1589 }
1590
1591 protected boolean isOneway() {
1592 return false;
1593 }
1594
1595 public import_sentry_mapping_data_result getResult(I iface, import_sentry_mapping_data_args args) throws org.apache.thrift.TException {
1596 import_sentry_mapping_data_result result = new import_sentry_mapping_data_result();
1597 result.success = iface.import_sentry_mapping_data(args.request);
1598 return result;
1599 }
1600 }
1601
1602 public static class sentry_sync_notifications<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sentry_sync_notifications_args> {
1603 public sentry_sync_notifications() {
1604 super("sentry_sync_notifications");
1605 }
1606
1607 public sentry_sync_notifications_args getEmptyArgsInstance() {
1608 return new sentry_sync_notifications_args();
1609 }
1610
1611 protected boolean isOneway() {
1612 return false;
1613 }
1614
1615 public sentry_sync_notifications_result getResult(I iface, sentry_sync_notifications_args args) throws org.apache.thrift.TException {
1616 sentry_sync_notifications_result result = new sentry_sync_notifications_result();
1617 result.success = iface.sentry_sync_notifications(args.request);
1618 return result;
1619 }
1620 }
1621
1622 }
1623
1624 public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
1625 private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
1626 public AsyncProcessor(I iface) {
1627 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
1628 }
1629
1630 protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
1631 super(iface, getProcessMap(processMap));
1632 }
1633
1634 private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
1635 processMap.put("create_sentry_role", new create_sentry_role());
1636 processMap.put("drop_sentry_role", new drop_sentry_role());
1637 processMap.put("alter_sentry_role_grant_privilege", new alter_sentry_role_grant_privilege());
1638 processMap.put("alter_sentry_role_revoke_privilege", new alter_sentry_role_revoke_privilege());
1639 processMap.put("alter_sentry_role_add_groups", new alter_sentry_role_add_groups());
1640 processMap.put("alter_sentry_role_delete_groups", new alter_sentry_role_delete_groups());
1641 processMap.put("alter_sentry_role_add_users", new alter_sentry_role_add_users());
1642 processMap.put("alter_sentry_role_delete_users", new alter_sentry_role_delete_users());
1643 processMap.put("list_sentry_roles_by_group", new list_sentry_roles_by_group());
1644 processMap.put("list_sentry_roles_by_user", new list_sentry_roles_by_user());
1645 processMap.put("list_sentry_privileges_by_role", new list_sentry_privileges_by_role());
1646 processMap.put("list_sentry_privileges_for_provider", new list_sentry_privileges_for_provider());
1647 processMap.put("drop_sentry_privilege", new drop_sentry_privilege());
1648 processMap.put("rename_sentry_privilege", new rename_sentry_privilege());
1649 processMap.put("list_sentry_privileges_by_authorizable", new list_sentry_privileges_by_authorizable());
1650 processMap.put("get_sentry_config_value", new get_sentry_config_value());
1651 processMap.put("export_sentry_mapping_data", new export_sentry_mapping_data());
1652 processMap.put("import_sentry_mapping_data", new import_sentry_mapping_data());
1653 processMap.put("sentry_sync_notifications", new sentry_sync_notifications());
1654 return processMap;
1655 }
1656
1657 public static class create_sentry_role<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, create_sentry_role_args, TCreateSentryRoleResponse> {
1658 public create_sentry_role() {
1659 super("create_sentry_role");
1660 }
1661
1662 public create_sentry_role_args getEmptyArgsInstance() {
1663 return new create_sentry_role_args();
1664 }
1665
1666 public AsyncMethodCallback<TCreateSentryRoleResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1667 final org.apache.thrift.AsyncProcessFunction fcall = this;
1668 return new AsyncMethodCallback<TCreateSentryRoleResponse>() {
1669 public void onComplete(TCreateSentryRoleResponse o) {
1670 create_sentry_role_result result = new create_sentry_role_result();
1671 result.success = o;
1672 try {
1673 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1674 return;
1675 } catch (Exception e) {
1676 LOGGER.error("Exception writing to internal frame buffer", e);
1677 }
1678 fb.close();
1679 }
1680 public void onError(Exception e) {
1681 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1682 org.apache.thrift.TBase msg;
1683 create_sentry_role_result result = new create_sentry_role_result();
1684 {
1685 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1686 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1687 }
1688 try {
1689 fcall.sendResponse(fb,msg,msgType,seqid);
1690 return;
1691 } catch (Exception ex) {
1692 LOGGER.error("Exception writing to internal frame buffer", ex);
1693 }
1694 fb.close();
1695 }
1696 };
1697 }
1698
1699 protected boolean isOneway() {
1700 return false;
1701 }
1702
1703 public void start(I iface, create_sentry_role_args args, org.apache.thrift.async.AsyncMethodCallback<TCreateSentryRoleResponse> resultHandler) throws TException {
1704 iface.create_sentry_role(args.request,resultHandler);
1705 }
1706 }
1707
1708 public static class drop_sentry_role<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, drop_sentry_role_args, TDropSentryRoleResponse> {
1709 public drop_sentry_role() {
1710 super("drop_sentry_role");
1711 }
1712
1713 public drop_sentry_role_args getEmptyArgsInstance() {
1714 return new drop_sentry_role_args();
1715 }
1716
1717 public AsyncMethodCallback<TDropSentryRoleResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1718 final org.apache.thrift.AsyncProcessFunction fcall = this;
1719 return new AsyncMethodCallback<TDropSentryRoleResponse>() {
1720 public void onComplete(TDropSentryRoleResponse o) {
1721 drop_sentry_role_result result = new drop_sentry_role_result();
1722 result.success = o;
1723 try {
1724 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1725 return;
1726 } catch (Exception e) {
1727 LOGGER.error("Exception writing to internal frame buffer", e);
1728 }
1729 fb.close();
1730 }
1731 public void onError(Exception e) {
1732 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1733 org.apache.thrift.TBase msg;
1734 drop_sentry_role_result result = new drop_sentry_role_result();
1735 {
1736 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1737 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1738 }
1739 try {
1740 fcall.sendResponse(fb,msg,msgType,seqid);
1741 return;
1742 } catch (Exception ex) {
1743 LOGGER.error("Exception writing to internal frame buffer", ex);
1744 }
1745 fb.close();
1746 }
1747 };
1748 }
1749
1750 protected boolean isOneway() {
1751 return false;
1752 }
1753
1754 public void start(I iface, drop_sentry_role_args args, org.apache.thrift.async.AsyncMethodCallback<TDropSentryRoleResponse> resultHandler) throws TException {
1755 iface.drop_sentry_role(args.request,resultHandler);
1756 }
1757 }
1758
1759 public static class alter_sentry_role_grant_privilege<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_grant_privilege_args, TAlterSentryRoleGrantPrivilegeResponse> {
1760 public alter_sentry_role_grant_privilege() {
1761 super("alter_sentry_role_grant_privilege");
1762 }
1763
1764 public alter_sentry_role_grant_privilege_args getEmptyArgsInstance() {
1765 return new alter_sentry_role_grant_privilege_args();
1766 }
1767
1768 public AsyncMethodCallback<TAlterSentryRoleGrantPrivilegeResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1769 final org.apache.thrift.AsyncProcessFunction fcall = this;
1770 return new AsyncMethodCallback<TAlterSentryRoleGrantPrivilegeResponse>() {
1771 public void onComplete(TAlterSentryRoleGrantPrivilegeResponse o) {
1772 alter_sentry_role_grant_privilege_result result = new alter_sentry_role_grant_privilege_result();
1773 result.success = o;
1774 try {
1775 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1776 return;
1777 } catch (Exception e) {
1778 LOGGER.error("Exception writing to internal frame buffer", e);
1779 }
1780 fb.close();
1781 }
1782 public void onError(Exception e) {
1783 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1784 org.apache.thrift.TBase msg;
1785 alter_sentry_role_grant_privilege_result result = new alter_sentry_role_grant_privilege_result();
1786 {
1787 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1788 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1789 }
1790 try {
1791 fcall.sendResponse(fb,msg,msgType,seqid);
1792 return;
1793 } catch (Exception ex) {
1794 LOGGER.error("Exception writing to internal frame buffer", ex);
1795 }
1796 fb.close();
1797 }
1798 };
1799 }
1800
1801 protected boolean isOneway() {
1802 return false;
1803 }
1804
1805 public void start(I iface, alter_sentry_role_grant_privilege_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleGrantPrivilegeResponse> resultHandler) throws TException {
1806 iface.alter_sentry_role_grant_privilege(args.request,resultHandler);
1807 }
1808 }
1809
1810 public static class alter_sentry_role_revoke_privilege<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_revoke_privilege_args, TAlterSentryRoleRevokePrivilegeResponse> {
1811 public alter_sentry_role_revoke_privilege() {
1812 super("alter_sentry_role_revoke_privilege");
1813 }
1814
1815 public alter_sentry_role_revoke_privilege_args getEmptyArgsInstance() {
1816 return new alter_sentry_role_revoke_privilege_args();
1817 }
1818
1819 public AsyncMethodCallback<TAlterSentryRoleRevokePrivilegeResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1820 final org.apache.thrift.AsyncProcessFunction fcall = this;
1821 return new AsyncMethodCallback<TAlterSentryRoleRevokePrivilegeResponse>() {
1822 public void onComplete(TAlterSentryRoleRevokePrivilegeResponse o) {
1823 alter_sentry_role_revoke_privilege_result result = new alter_sentry_role_revoke_privilege_result();
1824 result.success = o;
1825 try {
1826 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1827 return;
1828 } catch (Exception e) {
1829 LOGGER.error("Exception writing to internal frame buffer", e);
1830 }
1831 fb.close();
1832 }
1833 public void onError(Exception e) {
1834 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1835 org.apache.thrift.TBase msg;
1836 alter_sentry_role_revoke_privilege_result result = new alter_sentry_role_revoke_privilege_result();
1837 {
1838 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1839 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1840 }
1841 try {
1842 fcall.sendResponse(fb,msg,msgType,seqid);
1843 return;
1844 } catch (Exception ex) {
1845 LOGGER.error("Exception writing to internal frame buffer", ex);
1846 }
1847 fb.close();
1848 }
1849 };
1850 }
1851
1852 protected boolean isOneway() {
1853 return false;
1854 }
1855
1856 public void start(I iface, alter_sentry_role_revoke_privilege_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleRevokePrivilegeResponse> resultHandler) throws TException {
1857 iface.alter_sentry_role_revoke_privilege(args.request,resultHandler);
1858 }
1859 }
1860
1861 public static class alter_sentry_role_add_groups<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_add_groups_args, TAlterSentryRoleAddGroupsResponse> {
1862 public alter_sentry_role_add_groups() {
1863 super("alter_sentry_role_add_groups");
1864 }
1865
1866 public alter_sentry_role_add_groups_args getEmptyArgsInstance() {
1867 return new alter_sentry_role_add_groups_args();
1868 }
1869
1870 public AsyncMethodCallback<TAlterSentryRoleAddGroupsResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1871 final org.apache.thrift.AsyncProcessFunction fcall = this;
1872 return new AsyncMethodCallback<TAlterSentryRoleAddGroupsResponse>() {
1873 public void onComplete(TAlterSentryRoleAddGroupsResponse o) {
1874 alter_sentry_role_add_groups_result result = new alter_sentry_role_add_groups_result();
1875 result.success = o;
1876 try {
1877 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1878 return;
1879 } catch (Exception e) {
1880 LOGGER.error("Exception writing to internal frame buffer", e);
1881 }
1882 fb.close();
1883 }
1884 public void onError(Exception e) {
1885 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1886 org.apache.thrift.TBase msg;
1887 alter_sentry_role_add_groups_result result = new alter_sentry_role_add_groups_result();
1888 {
1889 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1890 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1891 }
1892 try {
1893 fcall.sendResponse(fb,msg,msgType,seqid);
1894 return;
1895 } catch (Exception ex) {
1896 LOGGER.error("Exception writing to internal frame buffer", ex);
1897 }
1898 fb.close();
1899 }
1900 };
1901 }
1902
1903 protected boolean isOneway() {
1904 return false;
1905 }
1906
1907 public void start(I iface, alter_sentry_role_add_groups_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleAddGroupsResponse> resultHandler) throws TException {
1908 iface.alter_sentry_role_add_groups(args.request,resultHandler);
1909 }
1910 }
1911
1912 public static class alter_sentry_role_delete_groups<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_delete_groups_args, TAlterSentryRoleDeleteGroupsResponse> {
1913 public alter_sentry_role_delete_groups() {
1914 super("alter_sentry_role_delete_groups");
1915 }
1916
1917 public alter_sentry_role_delete_groups_args getEmptyArgsInstance() {
1918 return new alter_sentry_role_delete_groups_args();
1919 }
1920
1921 public AsyncMethodCallback<TAlterSentryRoleDeleteGroupsResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1922 final org.apache.thrift.AsyncProcessFunction fcall = this;
1923 return new AsyncMethodCallback<TAlterSentryRoleDeleteGroupsResponse>() {
1924 public void onComplete(TAlterSentryRoleDeleteGroupsResponse o) {
1925 alter_sentry_role_delete_groups_result result = new alter_sentry_role_delete_groups_result();
1926 result.success = o;
1927 try {
1928 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1929 return;
1930 } catch (Exception e) {
1931 LOGGER.error("Exception writing to internal frame buffer", e);
1932 }
1933 fb.close();
1934 }
1935 public void onError(Exception e) {
1936 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1937 org.apache.thrift.TBase msg;
1938 alter_sentry_role_delete_groups_result result = new alter_sentry_role_delete_groups_result();
1939 {
1940 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1941 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1942 }
1943 try {
1944 fcall.sendResponse(fb,msg,msgType,seqid);
1945 return;
1946 } catch (Exception ex) {
1947 LOGGER.error("Exception writing to internal frame buffer", ex);
1948 }
1949 fb.close();
1950 }
1951 };
1952 }
1953
1954 protected boolean isOneway() {
1955 return false;
1956 }
1957
1958 public void start(I iface, alter_sentry_role_delete_groups_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleDeleteGroupsResponse> resultHandler) throws TException {
1959 iface.alter_sentry_role_delete_groups(args.request,resultHandler);
1960 }
1961 }
1962
1963 public static class alter_sentry_role_add_users<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_add_users_args, TAlterSentryRoleAddUsersResponse> {
1964 public alter_sentry_role_add_users() {
1965 super("alter_sentry_role_add_users");
1966 }
1967
1968 public alter_sentry_role_add_users_args getEmptyArgsInstance() {
1969 return new alter_sentry_role_add_users_args();
1970 }
1971
1972 public AsyncMethodCallback<TAlterSentryRoleAddUsersResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1973 final org.apache.thrift.AsyncProcessFunction fcall = this;
1974 return new AsyncMethodCallback<TAlterSentryRoleAddUsersResponse>() {
1975 public void onComplete(TAlterSentryRoleAddUsersResponse o) {
1976 alter_sentry_role_add_users_result result = new alter_sentry_role_add_users_result();
1977 result.success = o;
1978 try {
1979 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1980 return;
1981 } catch (Exception e) {
1982 LOGGER.error("Exception writing to internal frame buffer", e);
1983 }
1984 fb.close();
1985 }
1986 public void onError(Exception e) {
1987 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1988 org.apache.thrift.TBase msg;
1989 alter_sentry_role_add_users_result result = new alter_sentry_role_add_users_result();
1990 {
1991 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1992 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1993 }
1994 try {
1995 fcall.sendResponse(fb,msg,msgType,seqid);
1996 return;
1997 } catch (Exception ex) {
1998 LOGGER.error("Exception writing to internal frame buffer", ex);
1999 }
2000 fb.close();
2001 }
2002 };
2003 }
2004
2005 protected boolean isOneway() {
2006 return false;
2007 }
2008
2009 public void start(I iface, alter_sentry_role_add_users_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleAddUsersResponse> resultHandler) throws TException {
2010 iface.alter_sentry_role_add_users(args.request,resultHandler);
2011 }
2012 }
2013
2014 public static class alter_sentry_role_delete_users<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_sentry_role_delete_users_args, TAlterSentryRoleDeleteUsersResponse> {
2015 public alter_sentry_role_delete_users() {
2016 super("alter_sentry_role_delete_users");
2017 }
2018
2019 public alter_sentry_role_delete_users_args getEmptyArgsInstance() {
2020 return new alter_sentry_role_delete_users_args();
2021 }
2022
2023 public AsyncMethodCallback<TAlterSentryRoleDeleteUsersResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2024 final org.apache.thrift.AsyncProcessFunction fcall = this;
2025 return new AsyncMethodCallback<TAlterSentryRoleDeleteUsersResponse>() {
2026 public void onComplete(TAlterSentryRoleDeleteUsersResponse o) {
2027 alter_sentry_role_delete_users_result result = new alter_sentry_role_delete_users_result();
2028 result.success = o;
2029 try {
2030 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2031 return;
2032 } catch (Exception e) {
2033 LOGGER.error("Exception writing to internal frame buffer", e);
2034 }
2035 fb.close();
2036 }
2037 public void onError(Exception e) {
2038 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2039 org.apache.thrift.TBase msg;
2040 alter_sentry_role_delete_users_result result = new alter_sentry_role_delete_users_result();
2041 {
2042 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2043 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2044 }
2045 try {
2046 fcall.sendResponse(fb,msg,msgType,seqid);
2047 return;
2048 } catch (Exception ex) {
2049 LOGGER.error("Exception writing to internal frame buffer", ex);
2050 }
2051 fb.close();
2052 }
2053 };
2054 }
2055
2056 protected boolean isOneway() {
2057 return false;
2058 }
2059
2060 public void start(I iface, alter_sentry_role_delete_users_args args, org.apache.thrift.async.AsyncMethodCallback<TAlterSentryRoleDeleteUsersResponse> resultHandler) throws TException {
2061 iface.alter_sentry_role_delete_users(args.request,resultHandler);
2062 }
2063 }
2064
2065 public static class list_sentry_roles_by_group<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_roles_by_group_args, TListSentryRolesResponse> {
2066 public list_sentry_roles_by_group() {
2067 super("list_sentry_roles_by_group");
2068 }
2069
2070 public list_sentry_roles_by_group_args getEmptyArgsInstance() {
2071 return new list_sentry_roles_by_group_args();
2072 }
2073
2074 public AsyncMethodCallback<TListSentryRolesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2075 final org.apache.thrift.AsyncProcessFunction fcall = this;
2076 return new AsyncMethodCallback<TListSentryRolesResponse>() {
2077 public void onComplete(TListSentryRolesResponse o) {
2078 list_sentry_roles_by_group_result result = new list_sentry_roles_by_group_result();
2079 result.success = o;
2080 try {
2081 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2082 return;
2083 } catch (Exception e) {
2084 LOGGER.error("Exception writing to internal frame buffer", e);
2085 }
2086 fb.close();
2087 }
2088 public void onError(Exception e) {
2089 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2090 org.apache.thrift.TBase msg;
2091 list_sentry_roles_by_group_result result = new list_sentry_roles_by_group_result();
2092 {
2093 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2094 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2095 }
2096 try {
2097 fcall.sendResponse(fb,msg,msgType,seqid);
2098 return;
2099 } catch (Exception ex) {
2100 LOGGER.error("Exception writing to internal frame buffer", ex);
2101 }
2102 fb.close();
2103 }
2104 };
2105 }
2106
2107 protected boolean isOneway() {
2108 return false;
2109 }
2110
2111 public void start(I iface, list_sentry_roles_by_group_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryRolesResponse> resultHandler) throws TException {
2112 iface.list_sentry_roles_by_group(args.request,resultHandler);
2113 }
2114 }
2115
2116 public static class list_sentry_roles_by_user<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_roles_by_user_args, TListSentryRolesResponse> {
2117 public list_sentry_roles_by_user() {
2118 super("list_sentry_roles_by_user");
2119 }
2120
2121 public list_sentry_roles_by_user_args getEmptyArgsInstance() {
2122 return new list_sentry_roles_by_user_args();
2123 }
2124
2125 public AsyncMethodCallback<TListSentryRolesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2126 final org.apache.thrift.AsyncProcessFunction fcall = this;
2127 return new AsyncMethodCallback<TListSentryRolesResponse>() {
2128 public void onComplete(TListSentryRolesResponse o) {
2129 list_sentry_roles_by_user_result result = new list_sentry_roles_by_user_result();
2130 result.success = o;
2131 try {
2132 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2133 return;
2134 } catch (Exception e) {
2135 LOGGER.error("Exception writing to internal frame buffer", e);
2136 }
2137 fb.close();
2138 }
2139 public void onError(Exception e) {
2140 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2141 org.apache.thrift.TBase msg;
2142 list_sentry_roles_by_user_result result = new list_sentry_roles_by_user_result();
2143 {
2144 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2145 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2146 }
2147 try {
2148 fcall.sendResponse(fb,msg,msgType,seqid);
2149 return;
2150 } catch (Exception ex) {
2151 LOGGER.error("Exception writing to internal frame buffer", ex);
2152 }
2153 fb.close();
2154 }
2155 };
2156 }
2157
2158 protected boolean isOneway() {
2159 return false;
2160 }
2161
2162 public void start(I iface, list_sentry_roles_by_user_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryRolesResponse> resultHandler) throws TException {
2163 iface.list_sentry_roles_by_user(args.request,resultHandler);
2164 }
2165 }
2166
2167 public static class list_sentry_privileges_by_role<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_privileges_by_role_args, TListSentryPrivilegesResponse> {
2168 public list_sentry_privileges_by_role() {
2169 super("list_sentry_privileges_by_role");
2170 }
2171
2172 public list_sentry_privileges_by_role_args getEmptyArgsInstance() {
2173 return new list_sentry_privileges_by_role_args();
2174 }
2175
2176 public AsyncMethodCallback<TListSentryPrivilegesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2177 final org.apache.thrift.AsyncProcessFunction fcall = this;
2178 return new AsyncMethodCallback<TListSentryPrivilegesResponse>() {
2179 public void onComplete(TListSentryPrivilegesResponse o) {
2180 list_sentry_privileges_by_role_result result = new list_sentry_privileges_by_role_result();
2181 result.success = o;
2182 try {
2183 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2184 return;
2185 } catch (Exception e) {
2186 LOGGER.error("Exception writing to internal frame buffer", e);
2187 }
2188 fb.close();
2189 }
2190 public void onError(Exception e) {
2191 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2192 org.apache.thrift.TBase msg;
2193 list_sentry_privileges_by_role_result result = new list_sentry_privileges_by_role_result();
2194 {
2195 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2196 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2197 }
2198 try {
2199 fcall.sendResponse(fb,msg,msgType,seqid);
2200 return;
2201 } catch (Exception ex) {
2202 LOGGER.error("Exception writing to internal frame buffer", ex);
2203 }
2204 fb.close();
2205 }
2206 };
2207 }
2208
2209 protected boolean isOneway() {
2210 return false;
2211 }
2212
2213 public void start(I iface, list_sentry_privileges_by_role_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryPrivilegesResponse> resultHandler) throws TException {
2214 iface.list_sentry_privileges_by_role(args.request,resultHandler);
2215 }
2216 }
2217
2218 public static class list_sentry_privileges_for_provider<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_privileges_for_provider_args, TListSentryPrivilegesForProviderResponse> {
2219 public list_sentry_privileges_for_provider() {
2220 super("list_sentry_privileges_for_provider");
2221 }
2222
2223 public list_sentry_privileges_for_provider_args getEmptyArgsInstance() {
2224 return new list_sentry_privileges_for_provider_args();
2225 }
2226
2227 public AsyncMethodCallback<TListSentryPrivilegesForProviderResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2228 final org.apache.thrift.AsyncProcessFunction fcall = this;
2229 return new AsyncMethodCallback<TListSentryPrivilegesForProviderResponse>() {
2230 public void onComplete(TListSentryPrivilegesForProviderResponse o) {
2231 list_sentry_privileges_for_provider_result result = new list_sentry_privileges_for_provider_result();
2232 result.success = o;
2233 try {
2234 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2235 return;
2236 } catch (Exception e) {
2237 LOGGER.error("Exception writing to internal frame buffer", e);
2238 }
2239 fb.close();
2240 }
2241 public void onError(Exception e) {
2242 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2243 org.apache.thrift.TBase msg;
2244 list_sentry_privileges_for_provider_result result = new list_sentry_privileges_for_provider_result();
2245 {
2246 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2247 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2248 }
2249 try {
2250 fcall.sendResponse(fb,msg,msgType,seqid);
2251 return;
2252 } catch (Exception ex) {
2253 LOGGER.error("Exception writing to internal frame buffer", ex);
2254 }
2255 fb.close();
2256 }
2257 };
2258 }
2259
2260 protected boolean isOneway() {
2261 return false;
2262 }
2263
2264 public void start(I iface, list_sentry_privileges_for_provider_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryPrivilegesForProviderResponse> resultHandler) throws TException {
2265 iface.list_sentry_privileges_for_provider(args.request,resultHandler);
2266 }
2267 }
2268
2269 public static class drop_sentry_privilege<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, drop_sentry_privilege_args, TDropPrivilegesResponse> {
2270 public drop_sentry_privilege() {
2271 super("drop_sentry_privilege");
2272 }
2273
2274 public drop_sentry_privilege_args getEmptyArgsInstance() {
2275 return new drop_sentry_privilege_args();
2276 }
2277
2278 public AsyncMethodCallback<TDropPrivilegesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2279 final org.apache.thrift.AsyncProcessFunction fcall = this;
2280 return new AsyncMethodCallback<TDropPrivilegesResponse>() {
2281 public void onComplete(TDropPrivilegesResponse o) {
2282 drop_sentry_privilege_result result = new drop_sentry_privilege_result();
2283 result.success = o;
2284 try {
2285 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2286 return;
2287 } catch (Exception e) {
2288 LOGGER.error("Exception writing to internal frame buffer", e);
2289 }
2290 fb.close();
2291 }
2292 public void onError(Exception e) {
2293 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2294 org.apache.thrift.TBase msg;
2295 drop_sentry_privilege_result result = new drop_sentry_privilege_result();
2296 {
2297 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2298 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2299 }
2300 try {
2301 fcall.sendResponse(fb,msg,msgType,seqid);
2302 return;
2303 } catch (Exception ex) {
2304 LOGGER.error("Exception writing to internal frame buffer", ex);
2305 }
2306 fb.close();
2307 }
2308 };
2309 }
2310
2311 protected boolean isOneway() {
2312 return false;
2313 }
2314
2315 public void start(I iface, drop_sentry_privilege_args args, org.apache.thrift.async.AsyncMethodCallback<TDropPrivilegesResponse> resultHandler) throws TException {
2316 iface.drop_sentry_privilege(args.request,resultHandler);
2317 }
2318 }
2319
2320 public static class rename_sentry_privilege<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, rename_sentry_privilege_args, TRenamePrivilegesResponse> {
2321 public rename_sentry_privilege() {
2322 super("rename_sentry_privilege");
2323 }
2324
2325 public rename_sentry_privilege_args getEmptyArgsInstance() {
2326 return new rename_sentry_privilege_args();
2327 }
2328
2329 public AsyncMethodCallback<TRenamePrivilegesResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2330 final org.apache.thrift.AsyncProcessFunction fcall = this;
2331 return new AsyncMethodCallback<TRenamePrivilegesResponse>() {
2332 public void onComplete(TRenamePrivilegesResponse o) {
2333 rename_sentry_privilege_result result = new rename_sentry_privilege_result();
2334 result.success = o;
2335 try {
2336 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2337 return;
2338 } catch (Exception e) {
2339 LOGGER.error("Exception writing to internal frame buffer", e);
2340 }
2341 fb.close();
2342 }
2343 public void onError(Exception e) {
2344 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2345 org.apache.thrift.TBase msg;
2346 rename_sentry_privilege_result result = new rename_sentry_privilege_result();
2347 {
2348 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2349 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2350 }
2351 try {
2352 fcall.sendResponse(fb,msg,msgType,seqid);
2353 return;
2354 } catch (Exception ex) {
2355 LOGGER.error("Exception writing to internal frame buffer", ex);
2356 }
2357 fb.close();
2358 }
2359 };
2360 }
2361
2362 protected boolean isOneway() {
2363 return false;
2364 }
2365
2366 public void start(I iface, rename_sentry_privilege_args args, org.apache.thrift.async.AsyncMethodCallback<TRenamePrivilegesResponse> resultHandler) throws TException {
2367 iface.rename_sentry_privilege(args.request,resultHandler);
2368 }
2369 }
2370
2371 public static class list_sentry_privileges_by_authorizable<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, list_sentry_privileges_by_authorizable_args, TListSentryPrivilegesByAuthResponse> {
2372 public list_sentry_privileges_by_authorizable() {
2373 super("list_sentry_privileges_by_authorizable");
2374 }
2375
2376 public list_sentry_privileges_by_authorizable_args getEmptyArgsInstance() {
2377 return new list_sentry_privileges_by_authorizable_args();
2378 }
2379
2380 public AsyncMethodCallback<TListSentryPrivilegesByAuthResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2381 final org.apache.thrift.AsyncProcessFunction fcall = this;
2382 return new AsyncMethodCallback<TListSentryPrivilegesByAuthResponse>() {
2383 public void onComplete(TListSentryPrivilegesByAuthResponse o) {
2384 list_sentry_privileges_by_authorizable_result result = new list_sentry_privileges_by_authorizable_result();
2385 result.success = o;
2386 try {
2387 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2388 return;
2389 } catch (Exception e) {
2390 LOGGER.error("Exception writing to internal frame buffer", e);
2391 }
2392 fb.close();
2393 }
2394 public void onError(Exception e) {
2395 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2396 org.apache.thrift.TBase msg;
2397 list_sentry_privileges_by_authorizable_result result = new list_sentry_privileges_by_authorizable_result();
2398 {
2399 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2400 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2401 }
2402 try {
2403 fcall.sendResponse(fb,msg,msgType,seqid);
2404 return;
2405 } catch (Exception ex) {
2406 LOGGER.error("Exception writing to internal frame buffer", ex);
2407 }
2408 fb.close();
2409 }
2410 };
2411 }
2412
2413 protected boolean isOneway() {
2414 return false;
2415 }
2416
2417 public void start(I iface, list_sentry_privileges_by_authorizable_args args, org.apache.thrift.async.AsyncMethodCallback<TListSentryPrivilegesByAuthResponse> resultHandler) throws TException {
2418 iface.list_sentry_privileges_by_authorizable(args.request,resultHandler);
2419 }
2420 }
2421
2422 public static class get_sentry_config_value<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_sentry_config_value_args, TSentryConfigValueResponse> {
2423 public get_sentry_config_value() {
2424 super("get_sentry_config_value");
2425 }
2426
2427 public get_sentry_config_value_args getEmptyArgsInstance() {
2428 return new get_sentry_config_value_args();
2429 }
2430
2431 public AsyncMethodCallback<TSentryConfigValueResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2432 final org.apache.thrift.AsyncProcessFunction fcall = this;
2433 return new AsyncMethodCallback<TSentryConfigValueResponse>() {
2434 public void onComplete(TSentryConfigValueResponse o) {