1 23 24 25 package com.sun.appserv.management.ext.logging; 26 27 import java.util.Collections ; 28 import java.util.Map ; 29 import java.util.Set ; 30 import java.util.List ; 31 import java.util.Date ; 32 33 import java.util.logging.Level ; 34 35 36 42 public interface LogAnalyzer 43 { 44 48 public static final String TIMESTAMP_KEY = "TimeStamp"; 49 50 54 public static final String SEVERE_COUNT_KEY = "SevereCount"; 55 56 60 public static final String WARNING_COUNT_KEY = "WarningCount"; 61 62 66 public static final String MODULE_NAME_KEY = "ModuleName"; 67 68 69 95 public Map <String ,Number >[] getErrorInfo(); 96 97 98 113 public Map <String ,Integer > getErrorDistribution(long timestamp, String level); 114 115 118 public String [] getLoggerNames(); 119 120 123 public String [] getLoggerNamesUnder( String loggerName ); 124 125 130 public void setKeepErrorStatisticsForIntervals(final int numIntervals ); 131 132 135 public int getKeepErrorStatisticsForIntervals(); 136 137 142 public void setErrorStatisticsIntervalMinutes(final long minutes); 143 144 147 public long getErrorStatisticsIntervalMinutes(); 148 } 149 150 151 152 153 154 155 | Popular Tags |