001    package railo.runtime.monitor;
002    
003    import java.io.IOException;
004    import java.util.Map;
005    
006    import railo.runtime.PageContext;
007    import railo.runtime.config.ConfigWeb;
008    import railo.runtime.exp.PageException;
009    import railo.runtime.type.Query;
010    
011    // added with Railo 4.1
012    public interface ActionMonitor extends Monitor {
013            
014            /**
015             *  logs certain action within a Request
016             * @param pc
017             * @param ar
018             * @throws IOException
019             */
020            public void log(PageContext pc, String type, String label, long executionTime, Object data) throws IOException;
021            
022            /**
023             *  logs certain action outside a Request, like sending mails
024             * @param pc
025             * @param ar
026             * @throws IOException
027             */
028            public void log(ConfigWeb config, String type, String label, long executionTime, Object data) throws IOException;
029    
030    
031            public Query getData(Map<String,Object> arguments) throws PageException;
032    }