/src/com/googlecode/jmxtrans/model/output/StdOutWriter.java
http://jmxtrans.googlecode.com/ · Java · 29 lines · 16 code · 5 blank · 8 comment · 1 complexity · 45c6bea8c95a7fc5fb3de7bb1365f2a8 MD5 · raw file
- package com.googlecode.jmxtrans.model.output;
- import com.googlecode.jmxtrans.model.Query;
- import com.googlecode.jmxtrans.model.Result;
- import com.googlecode.jmxtrans.util.BaseOutputWriter;
- import com.googlecode.jmxtrans.util.ValidationException;
- /**
- * Basic filter good for testing that just outputs the Result objects using System.out.
- *
- * @author jon
- */
- public class StdOutWriter extends BaseOutputWriter {
- public StdOutWriter() {
- }
- /**
- * nothing to validate
- */
- public void validateSetup(Query query) throws ValidationException {
- }
- public void doWrite(Query query) throws Exception {
- for (Result r : query.getResults()) {
- System.out.println(r);
- }
- }
- }