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 setStatus(int status);
016
017        void startTask(String aNameTask);
018
019        void endTask(boolean aErrorState);
020
021        void changeVariable(String aAttribut, Object aValue);
022
023        void startCommand(int i);
024
025        void startChildProcess(TaskProcessorThread aMaxTestRunnable);
026
027        void stopChildProcess(TaskProcessorThread aMaxTestRunnable);
028
029        void criticalError(CommandException aThrowable, Processor processor);
030
031        void checkFailure(CommandException e, Processor processor);
032
033        void aboutTest(String theTaskName, Node aCurrentAction);
034
035        String getRunMode();
036
037        void exceptionIgnored(Throwable e);
038
039        ServerSocket createPort(int thePort, String aDescription) throws IOException;
040
041        void closePort(int thePort);
042
043        void errorInformation(Processor processor, Throwable e, Node aTaskNode) throws CommandException;
044
045        void outToView(Processor processor, Properties aProperties, Object theValue);
046
047        void runCommandView(Properties params) throws Throwable;
048
049        ILogger createLog(String aLogName, boolean mainLog);
050
051        AEManager getManager();
052
053        void pause();
054
055        void resume();
056
057        void stopTest();
058
059        public boolean isNotifyMe();
060}