|
@@ -1313,7 +1313,11 @@ public class RouterClientProtocol implements ClientProtocol {
|
|
|
RemoteMethod method = new RemoteMethod("modifyAclEntries",
|
|
|
new Class<?>[] {String.class, List.class},
|
|
|
new RemoteParam(), aclSpec);
|
|
|
- rpcClient.invokeSequential(locations, method, null, null);
|
|
|
+ if (rpcServer.isInvokeConcurrent(src)) {
|
|
|
+ rpcClient.invokeConcurrent(locations, method);
|
|
|
+ } else {
|
|
|
+ rpcClient.invokeSequential(locations, method);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -1327,7 +1331,11 @@ public class RouterClientProtocol implements ClientProtocol {
|
|
|
RemoteMethod method = new RemoteMethod("removeAclEntries",
|
|
|
new Class<?>[] {String.class, List.class},
|
|
|
new RemoteParam(), aclSpec);
|
|
|
- rpcClient.invokeSequential(locations, method, null, null);
|
|
|
+ if (rpcServer.isInvokeConcurrent(src)) {
|
|
|
+ rpcClient.invokeConcurrent(locations, method);
|
|
|
+ } else {
|
|
|
+ rpcClient.invokeSequential(locations, method);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -1339,7 +1347,11 @@ public class RouterClientProtocol implements ClientProtocol {
|
|
|
rpcServer.getLocationsForPath(src, true);
|
|
|
RemoteMethod method = new RemoteMethod("removeDefaultAcl",
|
|
|
new Class<?>[] {String.class}, new RemoteParam());
|
|
|
- rpcClient.invokeSequential(locations, method);
|
|
|
+ if (rpcServer.isInvokeConcurrent(src)) {
|
|
|
+ rpcClient.invokeConcurrent(locations, method);
|
|
|
+ } else {
|
|
|
+ rpcClient.invokeSequential(locations, method);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -1351,7 +1363,11 @@ public class RouterClientProtocol implements ClientProtocol {
|
|
|
rpcServer.getLocationsForPath(src, true);
|
|
|
RemoteMethod method = new RemoteMethod("removeAcl",
|
|
|
new Class<?>[] {String.class}, new RemoteParam());
|
|
|
- rpcClient.invokeSequential(locations, method);
|
|
|
+ if (rpcServer.isInvokeConcurrent(src)) {
|
|
|
+ rpcClient.invokeConcurrent(locations, method);
|
|
|
+ } else {
|
|
|
+ rpcClient.invokeSequential(locations, method);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -1364,7 +1380,11 @@ public class RouterClientProtocol implements ClientProtocol {
|
|
|
RemoteMethod method = new RemoteMethod(
|
|
|
"setAcl", new Class<?>[] {String.class, List.class},
|
|
|
new RemoteParam(), aclSpec);
|
|
|
- rpcClient.invokeSequential(locations, method);
|
|
|
+ if (rpcServer.isInvokeConcurrent(src)) {
|
|
|
+ rpcClient.invokeConcurrent(locations, method);
|
|
|
+ } else {
|
|
|
+ rpcClient.invokeSequential(locations, method);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|