Coverage Report - org.dozer.stats.StatisticsManager
 
Classes in this File Line Coverage Branch Coverage Complexity
StatisticsManager
N/A
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2013 Dozer Project
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *      http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.dozer.stats;
 17  
 
 18  
 import java.util.Set;
 19  
 
 20  
 /**
 21  
  * Internal interface for managing statistics. Only intended for internal use.
 22  
  *
 23  
  * @author tierney.matt
 24  
  */
 25  
 public interface StatisticsManager {
 26  
 
 27  
   Set<Statistic> getStatistics();
 28  
 
 29  
   long getStatisticValue(StatisticType statisticType);
 30  
 
 31  
   long getStatisticValue(StatisticType statisticType, Object entryKey);
 32  
 
 33  
   void clearAll();
 34  
 
 35  
   Set<StatisticEntry> getStatisticEntries(StatisticType statisticType);
 36  
 
 37  
   Set<StatisticType> getStatisticTypes();
 38  
 
 39  
   boolean isStatisticsEnabled();
 40  
 
 41  
   void setStatisticsEnabled(boolean statisticsEnabled);
 42  
 
 43  
   void logStatistics();
 44  
 
 45  
   Statistic increment(StatisticType statisticType);
 46  
 
 47  
   Statistic increment(StatisticType statisticType, long value);
 48  
 
 49  
   Statistic increment(StatisticType statisticType, Object statisticEntryKey);
 50  
 
 51  
 }