Skip to content

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