KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > management > geronimo > WebAccessLog


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * 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  */

17 package org.apache.geronimo.management.geronimo;
18
19 import java.util.Date JavaDoc;
20
21 /**
22  * A web container access log manager.
23  *
24  * @version $Rev: 476049 $ $Date: 2006-11-16 23:35:17 -0500 (Thu, 16 Nov 2006) $
25  */

26 public interface WebAccessLog extends Log {
27     /**
28      * Gets the name of all logs used by this system. Typically there
29      * is only one, but specialized cases may use more.
30      *
31      * @return An array of all log names
32      *
33      */

34     String JavaDoc[] getLogNames();
35
36     /**
37      * Gets the name of all log files used by this log. Typically there
38      * is only one, but specialized cases may use more.
39      *
40      * @param log The name of the log for which to return the specific file names.
41      *
42      * @return An array of all log file names
43      *
44      */

45     String JavaDoc[] getLogFileNames(String JavaDoc log);
46
47     /**
48      * Searches the log for records matching the specified parameters. The
49      * maximum results returned will be the lesser of 1000 and the
50      * provided maxResults argument.
51      *
52      * @see #MAX_SEARCH_RESULTS
53      */

54     SearchResults getMatchingItems(String JavaDoc logName, String JavaDoc host, String JavaDoc user, String JavaDoc method,
55                                    String JavaDoc uri, Date JavaDoc startDate, Date JavaDoc endDate,
56                                    Integer JavaDoc skipResults, Integer JavaDoc maxResults);
57
58 }
59
Popular Tags