org.apache.geronimo.jetty.requestlog
Class JettyLogManagerImpl

java.lang.Object
  extended by org.apache.geronimo.jetty.requestlog.JettyLogManagerImpl
All Implemented Interfaces:
JettyLogManager, org.apache.geronimo.management.geronimo.Log, org.apache.geronimo.management.geronimo.WebAccessLog

public class JettyLogManagerImpl
extends Object
implements JettyLogManager

Jetty implementation of the WebAccessLog management interface.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.geronimo.management.geronimo.Log
org.apache.geronimo.management.geronimo.Log.LogMessage, org.apache.geronimo.management.geronimo.Log.SearchResults
 
Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Fields inherited from interface org.apache.geronimo.management.geronimo.Log
MAX_SEARCH_RESULTS
 
Constructor Summary
JettyLogManagerImpl(org.apache.geronimo.system.serverinfo.ServerInfo serverInfo, Collection logGbeans)
           
 
Method Summary
static org.apache.geronimo.gbean.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.
 org.apache.geronimo.management.geronimo.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 org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

JettyLogManagerImpl

public JettyLogManagerImpl(org.apache.geronimo.system.serverinfo.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 org.apache.geronimo.management.geronimo.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 org.apache.geronimo.management.geronimo.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 org.apache.geronimo.management.geronimo.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 org.apache.geronimo.management.geronimo.WebAccessLog
See Also:
Log.MAX_SEARCH_RESULTS

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2006 Apache Software Foundation. All Rights Reserved.