org.apache.geronimo.tomcat
Class TomcatLogManagerImpl

java.lang.Object
  extended by org.apache.geronimo.tomcat.TomcatLogManagerImpl
All Implemented Interfaces:
Log, WebAccessLog, TomcatLogManager

public class TomcatLogManagerImpl
extends Object
implements TomcatLogManager

Tomcat implementation of the WebAccessLog management interface.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.geronimo.management.geronimo.Log
Log.LogMessage, Log.SearchResults
 
Field Summary
static GBeanInfo GBEAN_INFO
           
 
Fields inherited from interface org.apache.geronimo.management.geronimo.Log
MAX_SEARCH_RESULTS
 
Constructor Summary
TomcatLogManagerImpl(ServerInfo serverInfo, Collection logGbeans)
           
 
Method Summary
static GBeanInfo getGBeanInfo()
           
 String[] getLogFileNames(String logName)
          Gets the names of all log files for this log name.
 String[] getLogNames()
          Gets the name of all logs used by this system.
 Log.SearchResults getMatchingItems(String logName, String host, String user, String method, String uri, Date startDate, Date endDate, Integer skipResults, Integer maxResults)
          Searches the log for records matching the specified parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

TomcatLogManagerImpl

public TomcatLogManagerImpl(ServerInfo serverInfo,
                            Collection logGbeans)
Method Detail

getLogNames

public String[] getLogNames()
Gets the name of all logs used by this system. Typically there is only one, but specialized cases may use more.

Specified by:
getLogNames in interface WebAccessLog
Returns:
An array of all log names

getLogFileNames

public String[] getLogFileNames(String logName)
Gets the names of all log files for this log name.

Specified by:
getLogFileNames in interface WebAccessLog
Parameters:
logName - The name of the log for which to return the specific file names.
Returns:
An array of log file names

getMatchingItems

public Log.SearchResults getMatchingItems(String logName,
                                          String host,
                                          String user,
                                          String method,
                                          String uri,
                                          Date startDate,
                                          Date endDate,
                                          Integer skipResults,
                                          Integer maxResults)
Searches the log for records matching the specified parameters. The maximum results returned will be the lesser of 1000 and the provided maxResults argument.

Specified by:
getMatchingItems in interface WebAccessLog
See Also:
Log.MAX_SEARCH_RESULTS

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.