NIFI-3393 - replicates cluster/nodes/{id} to cluster coordinator. This closes #1443

This commit is contained in:
Pierre Villard 2017-01-25 15:31:39 +01:00 committed by Matt Gilman
parent e0e6f0bacb
commit e113511fef
1 changed files with 4 additions and 0 deletions

View File

@ -512,6 +512,10 @@ public class ControllerResource extends ApplicationResource {
throw new IllegalClusterResourceRequestException("Only a node connected to a cluster can process the request.");
}
if (isReplicateRequest()) {
return replicate(HttpMethod.GET, getClusterCoordinatorNode());
}
// get the specified relationship
final NodeDTO dto = serviceFacade.getNode(id);