-
Notifications
You must be signed in to change notification settings - Fork 593
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
Allow FileParser.Endpoints to be set via Ice::Properties #58
Conversation
…min runs in --server mode
A cleaner way to provide this functionality would be to:
You could also submit a pull request for branch 3.7 instead of master, assuming you'd like to see this functionality in 3.7.x. |
Ok, I can adjust the PR to do that. The first three points seem straightforward to me, but I am not entirely sure how to default the value. Is there some place where these defaults typically go? |
In general, you should set values for properties just before Communicator initialization because most Ice properties are read only during communicator initialization. Object adapter properties are read when the object adapter is created so here you could set the default value for Nevertheless, I suggest to set this default value before communicator initialization, i.e. change:
to something like:
|
- Properly create IceGridAdmin.Server OA instead of using createObjectAdapterwithEndpoints for FileParser - Default IceGridAdmin.Server.Endpoints to old endpoints - Add IceGridAdmin.Server to the list of acceptable properties - Property files regenerated
I have made the changes as discussed, and hopefully as you would expect them. As to where to merge them I am not sure what your branching-workflow is, but ideally I would like to see them going into both 3.6 and 3.7 eventually. |
* Register FileParser on IceGridAdmin.Server adapter, used with --server option
Thanks for your contribution! |
And thank you for your constructive feedback and help! |
* Register FileParser on IceGridAdmin.Server adapter, used with --server option
If launched with --server as option, the icegridadmin command-line tool currently picks a random ephemeral port on localhost as endpoint. This PR enables it to read the endpoints from the property "FileParser.Endpoints" , and defaults to the old hard-coded endpoint, if it is not found.
I am forfeiting all rights to the code in alignment with CONTRIBUTING.md and the Contributor Agreement, and hope you can merge this trivial piece of code without requiring me to print and sign something.