Skip to content

Instantly share code, notes, and snippets.

Created May 17, 2013 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5597140 to your computer and use it in GitHub Desktop.
Save anonymous/5597140 to your computer and use it in GitHub Desktop.
/**
* 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