package org.etsi.common.logging; import java.util.HashMap; import org.etsi.common.logging.LoggingInterface.MessageClass; //TODO: currently not in use public class LoggingStatistics { private HashMap statsMap = new HashMap(); public LoggingStatistics(){ for (MessageClass c : MessageClass.values()){ this.statsMap.put(c, 0); } } public void addOccurence(MessageClass c){ this.statsMap.put(c, this.statsMap.get(c) + 1); } public int getOccurences(MessageClass c){ return this.statsMap.get(c); } }