01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.geronimo.management.geronimo;
17:
18: import java.util.Date;
19:
20: /**
21: * A web container access log manager.
22: *
23: * @version $Rev: 476049 $ $Date: 2006-11-16 20:35:17 -0800 (Thu, 16 Nov 2006) $
24: */
25: public interface WebAccessLog extends Log {
26: /**
27: * Gets the name of all logs used by this system. Typically there
28: * is only one, but specialized cases may use more.
29: *
30: * @return An array of all log names
31: *
32: */
33: String[] getLogNames();
34:
35: /**
36: * Gets the name of all log files used by this log. Typically there
37: * is only one, but specialized cases may use more.
38: *
39: * @param log The name of the log for which to return the specific file names.
40: *
41: * @return An array of all log file names
42: *
43: */
44: String[] getLogFileNames(String log);
45:
46: /**
47: * Searches the log for records matching the specified parameters. The
48: * maximum results returned will be the lesser of 1000 and the
49: * provided maxResults argument.
50: *
51: * @see #MAX_SEARCH_RESULTS
52: */
53: SearchResults getMatchingItems(String logName, String host,
54: String user, String method, String uri, Date startDate,
55: Date endDate, Integer skipResults, Integer maxResults);
56:
57: }
|