PollingRunner.java

package org.flasby.christmas.monitor;

/**
 * used to fetch data which is not pushed into the system.
 * Temparature measurements, for example, are pushed into the DB using a PUT call via the WebServer.
 * Gude Switch states, however, need to be polled using this interface. 
 */
public interface PollingRunner {
	public static final class PollException extends Exception {
		public PollException(String message, Exception cause) {
			super(message, cause);
		}
		public PollException(String message) {
			super(message);
		}
	}
	public RawMeasurements run(String[] params) throws PollException;
}