Skip to content

Commit

Permalink
0002225: JMX method openRegistration should behave like the command l…
Browse files Browse the repository at this point in the history
…ine openRegistration command
  • Loading branch information
chenson42 committed Mar 4, 2015
1 parent a8d4c30 commit 4cd60a3
Showing 1 changed file with 9 additions and 6 deletions.
Expand Up @@ -324,13 +324,16 @@ public void ignoreNodeChannelForExternalId(boolean ignore, String channelId,
@ManagedOperationParameter(name = "nodeGroup", description = "The node group id this node will belong to"),
@ManagedOperationParameter(name = "externalId", description = "The external id for the node") })
public void openRegistration(String nodeGroupId, String externalId) {
Node node = engine.getNodeService().findNodeByExternalId(nodeGroupId, externalId);
if (node != null) {
engine.getRegistrationService().reOpenRegistration(node.getExternalId());
} else {
engine.getRegistrationService().openRegistration(nodeGroupId, externalId);
}
engine.getRegistrationService().openRegistration(nodeGroupId, externalId);
}

@ManagedOperation(description = "Re-open the registration for a node with the specified external id")
@ManagedOperationParameters({
@ManagedOperationParameter(name = "nodeId", description = "The node id to reopen registration for")})
public void reopenRegistration(String nodeId) {
engine.getRegistrationService().reOpenRegistration(nodeId);
}


@ManagedOperation(description = "Send an initial load of data to a node.")
@ManagedOperationParameters({ @ManagedOperationParameter(name = "nodeId", description = "The node id to reload.") })
Expand Down

0 comments on commit 4cd60a3

Please sign in to comment.