1 23 24 package com.sun.enterprise.management.ext.logging; 25 26 import java.util.List ; 27 import java.util.Map ; 28 import java.util.ArrayList ; 29 import java.util.Date ; 30 import java.util.Properties ; 31 import java.util.logging.Level ; 32 33 import javax.management.AttributeList ; 34 import javax.management.NotificationEmitter ; 35 36 37 40 interface LogMBeanIntf extends NotificationEmitter 41 { 42 public List getLoggerNames(); 43 44 public List getLoggerNamesUnder( String loggerName ); 45 public String getLogLevel( String loggerName ); 46 public void setLogLevel( String loggerName, String level ); 47 public void setLogLevelForModule( String module, String level ); 48 49 public AttributeList getLogRecordsUsingQuery( 50 String logFilename, 51 Long fromRecord, 52 Boolean next, 53 Boolean forward, 54 Integer requestedCount, 55 Date fromDate, 56 Date toDate, 57 String logLevel, 58 Boolean onlyLevel, 59 List listOfModules, 60 Properties nameValueMap) ; 61 62 public String [] getArchivedLogfiles(); 63 public void rotateNow(); 64 public void rotateAccessLog(); 65 66 public String getLogFilesDirectory(); 67 68 public ArrayList getDiagnosticCausesForMessageId( String messageID ); 69 public ArrayList getDiagnosticChecksForMessageId( String messageID ); 70 public String getDiagnosticURIForMessageId( String messageID ); 71 72 76 public List <Map <String ,Object >> getErrorInformation(); 77 78 82 public Map <String ,Integer > getErrorDistribution( long timeStamp, Level level); 83 84 public void setKeepErrorStatisticsForIntervals(int numberOfIntervals); 85 public int getKeepErrorStatisticsForIntervals(); 86 87 public void setErrorStatisticsIntervalDuration(long minutes); 88 public long getErrorStatisticsIntervalDuration(); 89 90 }; | Popular Tags |