Skip to content

Reimplement getPortByIndex in SingularityTask#1663

Merged
ssalinas merged 2 commits intomasterfrom
port_by_index
Dec 1, 2017
Merged

Reimplement getPortByIndex in SingularityTask#1663
ssalinas merged 2 commits intomasterfrom
port_by_index

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