Skip to content

Added statistics support #11

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

Merged
merged 9 commits into from
Sep 20, 2017
Merged

Added statistics support #11

merged 9 commits into from
Sep 20, 2017

Conversation

bbakerman
Copy link
Member

#10 - added statistics to dataloader

Want to eventually incorporate this into graphql-java so we can capture per call stats

@bbakerman bbakerman requested a review from andimarek September 19, 2017 17:53
Copy link
Member

@andimarek andimarek left a comment

Choose a reason for hiding this comment

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

great work

/**
* A simple set of statistics about {@link org.dataloader.DataLoader} operations
*/
public interface Statistics {
Copy link
Member

Choose a reason for hiding this comment

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

Not sure an interface is really needed here.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

/**
* This allows statistics to be collected for {@link org.dataloader.DataLoader} operations
*/
public interface StatisticsCollector {
Copy link
Member

Choose a reason for hiding this comment

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

not sure if it is really needed to always return then current value after the "action": the class itself itself is designed to be stateful and you can always call getStatistics.

@bbakerman bbakerman merged commit aa2994e into master Sep 20, 2017
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.

2 participants