1 10 11 package mondrian.recorder; 12 13 75 public interface MessageRecorder { 76 77 82 void clear(); 83 84 90 long getStartTimeMillis(); 91 92 96 long getRunTimeMillis(); 97 98 103 boolean hasInformation(); 104 105 110 boolean hasWarnings(); 111 112 117 boolean hasErrors(); 118 119 124 String getContext(); 125 126 131 void pushContextName(final String name); 132 133 136 void popContextName(); 137 138 147 void throwRTException() throws RecorderException; 148 149 155 void reportError(final Exception ex) throws RecorderException; 156 157 164 void reportError(final Exception ex, final Object info) throws RecorderException; 165 166 172 void reportError(final String msg) throws RecorderException; 173 174 181 void reportError(final String msg, final Object info) throws RecorderException; 182 183 188 void reportWarning(final String msg); 189 190 196 void reportWarning(final String msg, final Object info); 197 198 203 void reportInfo(final String msg); 204 205 211 void reportInfo(final String msg, final Object info); 212 } 213 214 | Popular Tags |