Created
May 17, 2013 05:33
-
-
Save anonymous/5597140 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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