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

Reimplement getPortByIndex in SingularityTask #1663

Merged
merged 2 commits into from
Dec 1, 2017
Merged

Conversation

ssalinas
Copy link
Member

@ssalinas ssalinas commented Dec 1, 2017

This was removed in the removal of the mesos dep from SingularityBase. Adding it back in for convenience.

@ssalinas ssalinas added this to the 0.18.1 milestone Dec 1, 2017

@JsonIgnore // to mimic mesos
public List<MesosRangeObject> getRangesList() {
return getRange();
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure I understand the reason for this method. doesn't seem to do anything different than getRange()

Copy link
Contributor

Choose a reason for hiding this comment

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

It's to mimic the convention used by the Mesos API, with stuff like getPortsList().

Copy link
Member Author

Choose a reason for hiding this comment

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

correct, added with the aim of not breaking binary compatibility for those who were using the old mesos protos objects

@baconmania
Copy link
Contributor

🚢

@ssalinas ssalinas merged commit 4c57015 into master Dec 1, 2017
@ssalinas ssalinas deleted the port_by_index branch December 1, 2017 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants