Jwang add resource measurements

for classes with only one constructor, you should be using `@JsonCreator` and `@JsonProperty` on the constructor.

See, e.g., https://github.com/uwescience/myria/blob/master/src/edu/washington/escience/myria/operator/network/partition/SingleFieldHashPartitionFunction.java#L32