Skip to content

Commit

Permalink
0005180: push registration on command line
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jan 5, 2022
1 parent 866835f commit eebb3c1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion symmetric-assemble/src/asciidoc/manage/node-push-registration.ad
@@ -1,2 +1,16 @@
[role="help"]
If the client is unable to pull from the server, it can register by having the server push to it instead.
If the client is unable to pull from the server, it can register by having the server push to it instead.
The group link for server to client should be set to push.

ifdef::pro[]
From the Manage Nodes screen on the server, click on the *Add* button and then select *Remote Node*.

image::manage/manage-nodes-push-registration.png[role="help"]

endif::pro[]

You can open registration from the command line with the following command:

`bin/symadmin open-registration --engine <engine name> <node group> <external id> <sync url>`

The <node group>, <external id>, and <sync url> should match the `group.id`, `external.id`, and `sync.url` in the registering node's <<Node Properties File>>.
Expand Up @@ -488,8 +488,9 @@ private void unobfuscateText(CommandLine line, List<String> args) {
private void openRegistration(CommandLine line, List<String> args) {
String nodeGroupId = popArg(args, "Node Group ID");
String externalId = popArg(args, "External ID");
String syncUrl = args.size() > 0 ? args.remove(0) : null;
IRegistrationService registrationService = getSymmetricEngine().getRegistrationService();
registrationService.openRegistration(nodeGroupId, externalId);
registrationService.openRegistration(nodeGroupId, externalId, syncUrl, null, null);
System.out.println(String.format(
"Opened registration for node group of '%s' external ID of '%s'", nodeGroupId,
externalId));
Expand Down
Expand Up @@ -88,7 +88,7 @@ SymAdmin.Usage.obfuscate-text=<text>
SymAdmin.Usage.create-war=<filename>
SymAdmin.Usage.create-sym-tables=
SymAdmin.Usage.export-sym-tables=<filename>
SymAdmin.Usage.open-registration=<node group> <external id>
SymAdmin.Usage.open-registration=<node group> <external id> [<sync url>]
SymAdmin.Usage.remove-node=<node-id>
SymAdmin.Usage.sync-triggers=[<tablename> ...]
SymAdmin.Usage.drop-triggers=[<tablename> ...]
Expand Down

0 comments on commit eebb3c1

Please sign in to comment.