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: */
17: package org.apache.wicket.settings;
18:
19: /**
20: * @author jcompagner
21: */
22: public interface IRequestLoggerSettings {
23: /**
24: * Enable/Disable the request logger.
25: *
26: * @param enable boolean.
27: */
28: void setRequestLoggerEnabled(boolean enable);
29:
30: /**
31: * @return true if the request Logger is enabled. (default false)
32: */
33: boolean isRequestLoggerEnabled();
34:
35: /**
36: * Enable/Disable the recording of the session size
37: * for every request.
38: *
39: * @param record
40: */
41: void setRecordSessionSize(boolean record);
42:
43: /**
44: * @return true if the session size is recorded. (default true)
45: */
46: boolean getRecordSessionSize();
47:
48: /**
49: * Set the window of all the requests that is kept in memory
50: * for viewing. Default is 2000, You can set this to 0 then
51: * only Sessions data is recorded (number of request, total time, latest size)
52: *
53: * @param size
54: */
55: void setRequestsWindowSize(int size);
56:
57: /**
58: * @return The window size of the recorded requests. (default 2000)
59: */
60: int getRequestsWindowSize();
61: }
|