1 /*
2  * Zed Attack Proxy (ZAP) and its related class files.
3  *
4  * ZAP is an HTTP/HTTPS proxy for assessing web application security.
5  *
6  * Copyright 2016 The ZAP Development Team
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *     http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 package org.zaproxy.zap.utils;
21 
22 public interface StatsListener {
23 
counterInc(String key)24     public void counterInc(String key);
25 
counterInc(String site, String key)26     public void counterInc(String site, String key);
27 
counterInc(String key, long inc)28     public void counterInc(String key, long inc);
29 
counterInc(String site, String key, long inc)30     public void counterInc(String site, String key, long inc);
31 
counterDec(String key)32     public void counterDec(String key);
33 
counterDec(String site, String key)34     public void counterDec(String site, String key);
35 
counterDec(String key, long dec)36     public void counterDec(String key, long dec);
37 
counterDec(String site, String key, long dec)38     public void counterDec(String site, String key, long dec);
39 
highwaterMarkSet(String key, long value)40     public void highwaterMarkSet(String key, long value);
41 
highwaterMarkSet(String site, String key, long value)42     public void highwaterMarkSet(String site, String key, long value);
43 
lowwaterMarkSet(String key, long value)44     public void lowwaterMarkSet(String key, long value);
45 
lowwaterMarkSet(String site, String key, long value)46     public void lowwaterMarkSet(String site, String key, long value);
47 
allCleared()48     public void allCleared();
49 
allCleared(String site)50     public void allCleared(String site);
51 
cleared(String keyPrefix)52     public void cleared(String keyPrefix);
53 
cleared(String site, String keyPrefix)54     public void cleared(String site, String keyPrefix);
55 }
56