Create a gist now

Instantly share code, notes, and snippets.

anonymous /UpdateCommitStats.java
Created May 17, 2013

What would you like to do?
/**
* This is the code that writes the commit statistics to Voldemort.
*/
@Override
public Boolean process() {
GetDevStats query = new GetDevStats(30,Project.BOTH);
List<GitDeploymentStats> result = executor.submitAndGetResult(query);
EntityMarshaller<GitDeploymentStats> marshaller = KachingMarshallers.createEntityMarshaller(GitDeploymentStats.class);
String marshalled = marshaller.marshallList(result).toString();
client.put("dm-commit-stats", marshalled);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment