@@ -341,29 +341,29 @@ public class ClientNamenodeProtocolServerSideTranslatorPB implements
341
341
VOID_UNSET_STORAGE_POLICY_RESPONSE =
342
342
UnsetStoragePolicyResponseProto .newBuilder ().build ();
343
343
344
- protected static final CreateResponseProto VOID_CREATE_RESPONSE =
345
- CreateResponseProto .newBuilder ().build ();
344
+ protected static final CreateResponseProto VOID_CREATE_RESPONSE =
345
+ CreateResponseProto .newBuilder ().build ();
346
346
347
- protected static final SetPermissionResponseProto VOID_SET_PERM_RESPONSE =
348
- SetPermissionResponseProto .newBuilder ().build ();
347
+ protected static final SetPermissionResponseProto VOID_SET_PERM_RESPONSE =
348
+ SetPermissionResponseProto .newBuilder ().build ();
349
349
350
- protected static final SetOwnerResponseProto VOID_SET_OWNER_RESPONSE =
351
- SetOwnerResponseProto .newBuilder ().build ();
350
+ protected static final SetOwnerResponseProto VOID_SET_OWNER_RESPONSE =
351
+ SetOwnerResponseProto .newBuilder ().build ();
352
352
353
- protected static final AbandonBlockResponseProto VOID_ADD_BLOCK_RESPONSE =
354
- AbandonBlockResponseProto .newBuilder ().build ();
353
+ protected static final AbandonBlockResponseProto VOID_ADD_BLOCK_RESPONSE =
354
+ AbandonBlockResponseProto .newBuilder ().build ();
355
355
356
- protected static final ReportBadBlocksResponseProto VOID_REP_BAD_BLOCK_RESPONSE =
357
- ReportBadBlocksResponseProto .newBuilder ().build ();
356
+ protected static final ReportBadBlocksResponseProto VOID_REP_BAD_BLOCK_RESPONSE =
357
+ ReportBadBlocksResponseProto .newBuilder ().build ();
358
358
359
- protected static final ConcatResponseProto VOID_CONCAT_RESPONSE =
360
- ConcatResponseProto .newBuilder ().build ();
359
+ protected static final ConcatResponseProto VOID_CONCAT_RESPONSE =
360
+ ConcatResponseProto .newBuilder ().build ();
361
361
362
- protected static final Rename2ResponseProto VOID_RENAME2_RESPONSE =
363
- Rename2ResponseProto .newBuilder ().build ();
362
+ protected static final Rename2ResponseProto VOID_RENAME2_RESPONSE =
363
+ Rename2ResponseProto .newBuilder ().build ();
364
364
365
- protected static final GetListingResponseProto VOID_GETLISTING_RESPONSE =
366
- GetListingResponseProto .newBuilder ().build ();
365
+ protected static final GetListingResponseProto VOID_GETLISTING_RESPONSE =
366
+ GetListingResponseProto .newBuilder ().build ();
367
367
368
368
protected static final GetBatchedListingResponseProto
369
369
VOID_GETBATCHEDLISTING_RESPONSE =
@@ -372,86 +372,78 @@ public class ClientNamenodeProtocolServerSideTranslatorPB implements
372
372
.setHasMore (false )
373
373
.build ();
374
374
375
- protected static final RenewLeaseResponseProto VOID_RENEWLEASE_RESPONSE =
376
- RenewLeaseResponseProto .newBuilder ().build ();
375
+ protected static final RenewLeaseResponseProto VOID_RENEWLEASE_RESPONSE =
376
+ RenewLeaseResponseProto .newBuilder ().build ();
377
377
378
378
protected static final RefreshNodesResponseProto VOID_REFRESHNODES_RESPONSE =
379
- RefreshNodesResponseProto .newBuilder ().build ();
379
+ RefreshNodesResponseProto .newBuilder ().build ();
380
380
381
- protected static final FinalizeUpgradeResponseProto VOID_FINALIZEUPGRADE_RESPONSE =
382
- FinalizeUpgradeResponseProto .newBuilder ().build ();
381
+ protected static final FinalizeUpgradeResponseProto VOID_FINALIZEUPGRADE_RESPONSE =
382
+ FinalizeUpgradeResponseProto .newBuilder ().build ();
383
383
384
- protected static final MetaSaveResponseProto VOID_METASAVE_RESPONSE =
385
- MetaSaveResponseProto .newBuilder ().build ();
384
+ protected static final MetaSaveResponseProto VOID_METASAVE_RESPONSE =
385
+ MetaSaveResponseProto .newBuilder ().build ();
386
386
387
- protected static final GetFileInfoResponseProto VOID_GETFILEINFO_RESPONSE =
388
- GetFileInfoResponseProto .newBuilder ().build ();
387
+ protected static final GetFileInfoResponseProto VOID_GETFILEINFO_RESPONSE =
388
+ GetFileInfoResponseProto .newBuilder ().build ();
389
389
390
390
protected static final GetLocatedFileInfoResponseProto
391
391
VOID_GETLOCATEDFILEINFO_RESPONSE =
392
392
GetLocatedFileInfoResponseProto .newBuilder ().build ();
393
393
394
- protected static final GetFileLinkInfoResponseProto VOID_GETFILELINKINFO_RESPONSE =
395
- GetFileLinkInfoResponseProto .newBuilder ().build ();
394
+ protected static final GetFileLinkInfoResponseProto VOID_GETFILELINKINFO_RESPONSE =
395
+ GetFileLinkInfoResponseProto .newBuilder ().build ();
396
396
397
- protected static final SetQuotaResponseProto VOID_SETQUOTA_RESPONSE =
398
- SetQuotaResponseProto .newBuilder ().build ();
397
+ protected static final SetQuotaResponseProto VOID_SETQUOTA_RESPONSE =
398
+ SetQuotaResponseProto .newBuilder ().build ();
399
399
400
- protected static final FsyncResponseProto VOID_FSYNC_RESPONSE =
401
- FsyncResponseProto .newBuilder ().build ();
400
+ protected static final FsyncResponseProto VOID_FSYNC_RESPONSE =
401
+ FsyncResponseProto .newBuilder ().build ();
402
402
403
- protected static final SetTimesResponseProto VOID_SETTIMES_RESPONSE =
404
- SetTimesResponseProto .newBuilder ().build ();
403
+ protected static final SetTimesResponseProto VOID_SETTIMES_RESPONSE =
404
+ SetTimesResponseProto .newBuilder ().build ();
405
405
406
- protected static final CreateSymlinkResponseProto VOID_CREATESYMLINK_RESPONSE =
407
- CreateSymlinkResponseProto .newBuilder ().build ();
406
+ protected static final CreateSymlinkResponseProto VOID_CREATESYMLINK_RESPONSE =
407
+ CreateSymlinkResponseProto .newBuilder ().build ();
408
408
409
- protected static final UpdatePipelineResponseProto
410
- VOID_UPDATEPIPELINE_RESPONSE =
411
- UpdatePipelineResponseProto .newBuilder ().build ();
409
+ protected static final UpdatePipelineResponseProto VOID_UPDATEPIPELINE_RESPONSE =
410
+ UpdatePipelineResponseProto .newBuilder ().build ();
412
411
413
- protected static final CancelDelegationTokenResponseProto
414
- VOID_CANCELDELEGATIONTOKEN_RESPONSE =
415
- CancelDelegationTokenResponseProto .newBuilder ().build ();
412
+ protected static final CancelDelegationTokenResponseProto VOID_CANCELDELEGATIONTOKEN_RESPONSE =
413
+ CancelDelegationTokenResponseProto .newBuilder ().build ();
416
414
417
- protected static final SetBalancerBandwidthResponseProto
418
- VOID_SETBALANCERBANDWIDTH_RESPONSE =
419
- SetBalancerBandwidthResponseProto .newBuilder ().build ();
415
+ protected static final SetBalancerBandwidthResponseProto VOID_SETBALANCERBANDWIDTH_RESPONSE =
416
+ SetBalancerBandwidthResponseProto .newBuilder ().build ();
420
417
421
- protected static final SetAclResponseProto
422
- VOID_SETACL_RESPONSE = SetAclResponseProto .getDefaultInstance ();
418
+ protected static final SetAclResponseProto VOID_SETACL_RESPONSE =
419
+ SetAclResponseProto .getDefaultInstance ();
423
420
424
- protected static final ModifyAclEntriesResponseProto
425
- VOID_MODIFYACLENTRIES_RESPONSE = ModifyAclEntriesResponseProto
426
- .getDefaultInstance ();
421
+ protected static final ModifyAclEntriesResponseProto VOID_MODIFYACLENTRIES_RESPONSE =
422
+ ModifyAclEntriesResponseProto .getDefaultInstance ();
427
423
428
- protected static final RemoveAclEntriesResponseProto
429
- VOID_REMOVEACLENTRIES_RESPONSE = RemoveAclEntriesResponseProto
430
- .getDefaultInstance ();
424
+ protected static final RemoveAclEntriesResponseProto VOID_REMOVEACLENTRIES_RESPONSE =
425
+ RemoveAclEntriesResponseProto .getDefaultInstance ();
431
426
432
- protected static final RemoveDefaultAclResponseProto
433
- VOID_REMOVEDEFAULTACL_RESPONSE = RemoveDefaultAclResponseProto
434
- .getDefaultInstance ();
427
+ protected static final RemoveDefaultAclResponseProto VOID_REMOVEDEFAULTACL_RESPONSE =
428
+ RemoveDefaultAclResponseProto .getDefaultInstance ();
435
429
436
- protected static final RemoveAclResponseProto
437
- VOID_REMOVEACL_RESPONSE = RemoveAclResponseProto .getDefaultInstance ();
430
+ protected static final RemoveAclResponseProto VOID_REMOVEACL_RESPONSE =
431
+ RemoveAclResponseProto .getDefaultInstance ();
438
432
439
- protected static final SetXAttrResponseProto
440
- VOID_SETXATTR_RESPONSE = SetXAttrResponseProto .getDefaultInstance ();
433
+ protected static final SetXAttrResponseProto VOID_SETXATTR_RESPONSE =
434
+ SetXAttrResponseProto .getDefaultInstance ();
441
435
442
- protected static final RemoveXAttrResponseProto
443
- VOID_REMOVEXATTR_RESPONSE = RemoveXAttrResponseProto .getDefaultInstance ();
436
+ protected static final RemoveXAttrResponseProto VOID_REMOVEXATTR_RESPONSE =
437
+ RemoveXAttrResponseProto .getDefaultInstance ();
444
438
445
- protected static final CheckAccessResponseProto
446
- VOID_CHECKACCESS_RESPONSE = CheckAccessResponseProto .getDefaultInstance ();
439
+ protected static final CheckAccessResponseProto VOID_CHECKACCESS_RESPONSE =
440
+ CheckAccessResponseProto .getDefaultInstance ();
447
441
448
442
protected static final SatisfyStoragePolicyResponseProto
449
443
VOID_SATISFYSTORAGEPOLICY_RESPONSE = SatisfyStoragePolicyResponseProto
450
444
.getDefaultInstance ();
451
445
452
- /**
453
- * Constructor
454
- *
446
+ /** Constructor.
455
447
* @param server - the NN server
456
448
* @throws IOException
457
449
*/
@@ -730,7 +722,7 @@ public TruncateResponseProto truncate(RpcController controller,
730
722
731
723
@ Override
732
724
public DeleteResponseProto delete (RpcController controller ,
733
- DeleteRequestProto req ) throws ServiceException {
725
+ DeleteRequestProto req ) throws ServiceException {
734
726
try {
735
727
boolean result = server .delete (req .getSrc (), req .getRecursive ());
736
728
return DeleteResponseProto .newBuilder ().setResult (result ).build ();
@@ -1474,7 +1466,7 @@ public ListCacheDirectivesResponseProto listCacheDirectives(
1474
1466
CacheDirectiveInfo filter =
1475
1467
PBHelperClient .convert (request .getFilter ());
1476
1468
BatchedEntries <CacheDirectiveEntry > entries =
1477
- server .listCacheDirectives (request .getPrevId (), filter );
1469
+ server .listCacheDirectives (request .getPrevId (), filter );
1478
1470
ListCacheDirectivesResponseProto .Builder builder =
1479
1471
ListCacheDirectivesResponseProto .newBuilder ();
1480
1472
builder .setHasMore (entries .hasMore ());
@@ -1525,9 +1517,9 @@ public ListCachePoolsResponseProto listCachePools(RpcController controller,
1525
1517
ListCachePoolsRequestProto request ) throws ServiceException {
1526
1518
try {
1527
1519
BatchedEntries <CachePoolEntry > entries =
1528
- server .listCachePools (request .getPrevPoolName ());
1520
+ server .listCachePools (request .getPrevPoolName ());
1529
1521
ListCachePoolsResponseProto .Builder responseBuilder =
1530
- ListCachePoolsResponseProto .newBuilder ();
1522
+ ListCachePoolsResponseProto .newBuilder ();
1531
1523
responseBuilder .setHasMore (entries .hasMore ());
1532
1524
for (int i =0 , n =entries .size (); i <n ; i ++) {
1533
1525
responseBuilder .addEntries (PBHelperClient .convert (entries .get (i )));
@@ -1609,8 +1601,8 @@ public GetAclStatusResponseProto getAclStatus(RpcController controller,
1609
1601
1610
1602
@ Override
1611
1603
public CreateEncryptionZoneResponseProto createEncryptionZone (
1612
- RpcController controller , CreateEncryptionZoneRequestProto req )
1613
- throws ServiceException {
1604
+ RpcController controller , CreateEncryptionZoneRequestProto req )
1605
+ throws ServiceException {
1614
1606
try {
1615
1607
server .createEncryptionZone (req .getSrc (), req .getKeyName ());
1616
1608
return CreateEncryptionZoneResponseProto .newBuilder ().build ();
@@ -1638,8 +1630,8 @@ public GetEZForPathResponseProto getEZForPath(
1638
1630
1639
1631
@ Override
1640
1632
public ListEncryptionZonesResponseProto listEncryptionZones (
1641
- RpcController controller , ListEncryptionZonesRequestProto req )
1642
- throws ServiceException {
1633
+ RpcController controller , ListEncryptionZonesRequestProto req )
1634
+ throws ServiceException {
1643
1635
try {
1644
1636
BatchedEntries <EncryptionZone > entries = server
1645
1637
.listEncryptionZones (req .getId ());
@@ -1755,7 +1747,7 @@ public GetXAttrsResponseProto getXAttrs(RpcController controller,
1755
1747
1756
1748
@ Override
1757
1749
public ListXAttrsResponseProto listXAttrs (RpcController controller ,
1758
- ListXAttrsRequestProto req ) throws ServiceException {
1750
+ ListXAttrsRequestProto req ) throws ServiceException {
1759
1751
try {
1760
1752
return PBHelperClient .convertListXAttrsResponse (server .listXAttrs (req .getSrc ()));
1761
1753
} catch (IOException e ) {
@@ -1776,7 +1768,7 @@ public RemoveXAttrResponseProto removeXAttr(RpcController controller,
1776
1768
1777
1769
@ Override
1778
1770
public CheckAccessResponseProto checkAccess (RpcController controller ,
1779
- CheckAccessRequestProto req ) throws ServiceException {
1771
+ CheckAccessRequestProto req ) throws ServiceException {
1780
1772
try {
1781
1773
server .checkAccess (req .getPath (), PBHelperClient .convert (req .getMode ()));
1782
1774
} catch (IOException e ) {
@@ -1869,8 +1861,8 @@ public GetErasureCodingPoliciesResponseProto getErasureCodingPolicies(RpcControl
1869
1861
GetErasureCodingPoliciesRequestProto request ) throws ServiceException {
1870
1862
try {
1871
1863
ErasureCodingPolicyInfo [] ecpInfos = server .getErasureCodingPolicies ();
1872
- GetErasureCodingPoliciesResponseProto .Builder resBuilder = GetErasureCodingPoliciesResponseProto
1873
- .newBuilder ();
1864
+ GetErasureCodingPoliciesResponseProto .Builder resBuilder =
1865
+ GetErasureCodingPoliciesResponseProto .newBuilder ();
1874
1866
for (ErasureCodingPolicyInfo info : ecpInfos ) {
1875
1867
resBuilder .addEcPolicies (
1876
1868
PBHelperClient .convertErasureCodingPolicy (info ));
@@ -1965,7 +1957,8 @@ public GetErasureCodingPolicyResponseProto getErasureCodingPolicy(RpcController
1965
1957
GetErasureCodingPolicyRequestProto request ) throws ServiceException {
1966
1958
try {
1967
1959
ErasureCodingPolicy ecPolicy = server .getErasureCodingPolicy (request .getSrc ());
1968
- GetErasureCodingPolicyResponseProto .Builder builder = GetErasureCodingPolicyResponseProto .newBuilder ();
1960
+ GetErasureCodingPolicyResponseProto .Builder builder =
1961
+ GetErasureCodingPolicyResponseProto .newBuilder ();
1969
1962
if (ecPolicy != null ) {
1970
1963
builder .setEcPolicy (PBHelperClient .convertErasureCodingPolicy (ecPolicy ));
1971
1964
}
0 commit comments