-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloud address translation #241
Cloud address translation #241
Conversation
af30f94
to
5d5e038
Compare
colorJsonKey("address: ") + replica.address() + ";" + | ||
colorJsonKey(" server: ") + replica.server() + ";" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to reflect changes in driver
TypeDBDriver driver = null; | ||
try { | ||
TypeDBDriver driver; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this version, driver
is never null
System.exit(1); | ||
return null; // unreachable, but needed to satisfy the compiler | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Java compiler doesn't understand that System.exit()
diverges.
} else { | ||
String optCloud = options.cloud(); | ||
if (optCloud != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flattened
split = "," | ||
) | ||
private @Nullable | ||
String cloud; | ||
String[] cloud; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
picocli treats --cloud=1,2,3 --cloud=4
as [1, 2, 3, 4]
with these settings.
Usage and product changes
We allow connection to the cloud servers using an address translation mapping (cf. typedb/typedb-driver#624). This is useful when the route from the user to the servers differs from the route the servers are configured with (e.g. connection to public-facing servers from an internal network).
Example usage:
or:
Note: we currently require that the user provides translation for the addresses of all nodes in the Cloud deployment.
Implementation
We also update the license headers and file from AGPL to MPL 2.0.