001package com.ganteater.ae;
002
003import java.io.IOException;
004import java.net.ServerSocket;
005import java.util.Properties;
006
007import com.ganteater.ae.processor.Processor;
008import com.ganteater.ae.processor.TaskProcessorThread;
009import com.ganteater.ae.util.xml.easyparser.Node;
010
011public interface RecipeListener {
012
013        void setProgress(String aCurrentTaskName, long aMaxTags, long aCurrTags, boolean aErrorState);
014
015        void startTask(String aNameTask);
016
017        void endTask(boolean aErrorState);
018
019        void changeVariable(String aAttribut, Object aValue);
020
021        void startCommand(int i);
022
023        void startChildProcess(TaskProcessorThread aMaxTestRunnable);
024
025        void stopChildProcess(TaskProcessorThread aMaxTestRunnable);
026
027        void criticalError(CommandException aThrowable, Processor processor);
028
029        void checkFailure(CommandException e, Processor processor);
030
031        void aboutTest(String theTaskName, Node aCurrentAction);
032
033        String getRunMode();
034
035        void exceptionIgnored(Throwable e);
036
037        ServerSocket createPort(int thePort, String aDescription) throws IOException;
038
039        void closePort(int thePort);
040
041        void errorInformation(Processor processor, Throwable e, Node aTaskNode) throws CommandException;
042
043        void outToFrame(Processor processor, Properties aProperties, Object theValue) throws Exception;
044
045        void runCommandFrame(Properties params) throws Throwable;
046
047        ILogger createLog(String aLogName, boolean mainLog);
048
049        AEManager getManager();
050
051        void pause();
052
053        void resume();
054
055        void stopTest();
056        
057        public boolean isNotifyMe();
058}