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

APEXCORE-496 Provide way for StatsListeners to get additional information #476

Merged
merged 1 commit into from Jul 30, 2017

Conversation

tushargosavi
Copy link
Contributor

No description provided.

Copy link
Member

@vrozov vrozov left a comment

Choose a reason for hiding this comment

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

Fix checkstyle errors. Please make sure PR is ready for review.

@tushargosavi
Copy link
Contributor Author

@vrozov I have removed checkstyle errors.

@tushargosavi
Copy link
Contributor Author

@tweise I have rebased the PR with current master

@@ -1892,4 +1947,22 @@ public Integer getStreamCodecIdentifier(StreamCodec<?> streamCodecInfo)
return null;
}
}

/**
* A interface object for the statsListener to access the DAG, it provides methods
Copy link
Contributor

@tweise tweise Jul 19, 2017

Choose a reason for hiding this comment

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

An interface for the {@link StatsListener} ... Please fix spelling and formatting of other Javadoc comments as well.

}

/**
* Adapter for handling deprecated StatsListener. This implementation calls {@see StatsListener.processStats(BatchedOperatorStats)}
Copy link
Contributor

Choose a reason for hiding this comment

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

The correct formatting would be {@link StatsListener#processStats(BatchedOperatorStats)}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do it

@@ -2246,4 +2253,97 @@ public void testParallelPartitionForSlidingWindow()
PhysicalPlan plan = new PhysicalPlan(dag, new TestPlanContext());
Assert.assertEquals("number of containers", 7, plan.getContainers().size());
}

static class NoOpStatsListener implements StatsListener
Copy link
Contributor

Choose a reason for hiding this comment

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

could this be done with mockito?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will check with Mockito.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have use Mockito to mock the interface in the tests, and updated the pull request

@tushargosavi
Copy link
Contributor Author

@tweise I have handled the comments.

@tweise tweise merged commit f1ce4dc into apache:master Jul 30, 2017
@tushargosavi tushargosavi deleted the APEXCORE-496 branch October 24, 2019 19:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants