Skip to content
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

Exposed TcpIpJoiner.MAX_PORT_TRIES as a configurable system property #5175

Merged
merged 1 commit into from Apr 28, 2015

Conversation

mdogan
Copy link
Contributor

@mdogan mdogan commented Apr 27, 2015

Fixes #5062


public TcpIpJoiner(Node node) {
super(node);
int tryCount = node.groupProperties.TCP_JOIN_PORT_TRY_COUNT.getInteger();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably better to throw an exception here (fail fast).

I think we should give the group properties a good cleanup so that its constrains can be defined in the group property itself instead of dealing with it when you get the property.

GroupProperty<Integer> TRY_COUNT = new GroupProperty<Integer>("com.hazelcast.tcp.tryCount").isPositive(...).build(); 

We can then move all the property verification out of the code. Another advantage is that it is more obvious to the end user what the constraints of a particular property are.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@pveentjer
Copy link
Contributor

One comment. Apart from that it looks good.

@pveentjer
Copy link
Contributor

Can be merged once green.

pveentjer added a commit that referenced this pull request Apr 28, 2015
Exposed TcpIpJoiner.MAX_PORT_TRIES as a configurable system property
@pveentjer pveentjer merged commit d573fdc into hazelcast:master Apr 28, 2015
@mdogan mdogan deleted the issue-5062 branch April 28, 2015 12:10
@mmedenjak mmedenjak added the Source: Internal PR or issue was opened by an employee label Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source: Internal PR or issue was opened by an employee Team: Core Type: Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement: Expose TcpIpJoiner.MAX_PORT_TRIES as a configurable property
3 participants