-
Notifications
You must be signed in to change notification settings - Fork 94
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
Conversation
…nction and batch invoke count the number of invocations of the batch function
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
.
#10 - added statistics to dataloader
Want to eventually incorporate this into graphql-java so we can capture per call stats