Skip to content
This repository was archived by the owner on Jun 7, 2021. It is now read-only.

APEXCORE-543 ContainerInfo will contain Map of operators, with Key re…#400

Merged
asfgit merged 1 commit into
apache:masterfrom
sandeshh:APEXCORE-543
Oct 3, 2016
Merged

APEXCORE-543 ContainerInfo will contain Map of operators, with Key re…#400
asfgit merged 1 commit into
apache:masterfrom
sandeshh:APEXCORE-543

Conversation

@sandeshh
Copy link
Copy Markdown
Contributor

…presenting Id and Value representing name.

@davidyan74 please review.

public long lastHeartbeat;
@RecordField(type = "stats")
public int numOperators;
public Map<Integer, String> operatorsIdandName;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about just call this operators?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, that is better. Done.

ci.state = container.getState().name();
ci.jvmName = this.jvmName;
ci.numOperators = container.getOperators().size();
ci.operatorsIdandName = new HashMap<>();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Make this a TreeMap so that the output of the json will be sorted.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@sandeshh sandeshh force-pushed the APEXCORE-543 branch 2 times, most recently from 9d7453c to 4983b35 Compare September 30, 2016 23:11
@asfgit asfgit merged commit 0bdf771 into apache:master Oct 3, 2016
@sandeshh sandeshh deleted the APEXCORE-543 branch October 4, 2016 18:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants