package railo.runtime.monitor;

import java.io.IOException;
import java.util.Map;

import railo.runtime.PageContext;
import railo.runtime.config.ConfigWeb;
import railo.runtime.exp.PageException;
import railo.runtime.type.Query;

public interface RequestMonitor extends Monitor {
	public void log(PageContext pc, boolean error) throws IOException;
	public Query getData(ConfigWeb config,Map<String,Object> arguments) throws PageException;
}

package railo.runtime.monitor;

import java.io.IOException;
import java.util.Map;

import railo.runtime.PageContext;
import railo.runtime.config.ConfigWeb;
import railo.runtime.exp.PageException;
import railo.runtime.type.Query;

public interface RequestMonitor extends Monitor {
	public void log(PageContext pc, boolean error) throws IOException;
	/**
	 * returns data for a single context
	 * @param config
	 * @param arguments
	 * @return
	 * @throws PageException
	 */
	public Query getData(ConfigWeb config,Map<String,Object> arguments) throws PageException;
	// FUTURE public Query getData(ConfigWeb config,Map<String,Object> arguments) throws PageException; // for all contexts
}

add Future mark