View Javadoc
1   /*
2    * Licensed under the GPL License. You may not use this file except in compliance with the License.
3    * You may obtain a copy of the License at
4    *
5    *   https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6    *
7    * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8    * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9    * PURPOSE.
10   */
11  package psiprobe.beans.stats.listeners;
12  
13  /**
14   * The listener interface for receiving statsCollection events. The class that is interested in
15   * processing a statsCollection event implements this interface, and the object created with that
16   * class is registered with a component using the component's {@code addStatsCollectionListener}
17   * method. When the statsCollection event occurs, that object's appropriate method is invoked.
18   */
19  public interface StatsCollectionListener {
20  
21    /**
22     * Stats collected.
23     *
24     * @param sce the sce
25     */
26    void statsCollected(StatsCollectionEvent sce);
27  
28    /**
29     * Checks if is enabled.
30     *
31     * @return true, if is enabled
32     */
33    boolean isEnabled();
34  
35  }