Class DefaultCounter

  • All Implemented Interfaces:
    Counter

    public class DefaultCounter
    extends java.lang.Object
    implements Counter
    Implementation of the Counter interface that doesn't do anything.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int count  
      private int level  
      private static byte[] message  
      private int[] repeat  
      private int repeat_level  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultCounter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Counter getCounter​(java.lang.Class<?> klass)
      Gets a Counter instance for a specific class.
      private void plusOne()  
      void read​(long l)
      This method gets triggered if a file is read.
      void written​(long l)
      This method gets triggered if a file is written.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • count

        private int count
      • level

        private int level
      • repeat

        private final int[] repeat
      • repeat_level

        private int repeat_level
      • message

        private static byte[] message
    • Constructor Detail

      • DefaultCounter

        public DefaultCounter()
    • Method Detail

      • read

        public void read​(long l)
        Description copied from interface: Counter
        This method gets triggered if a file is read.
        Specified by:
        read in interface Counter
        Parameters:
        l - the length of the file that was written
        See Also:
        Counter.read(long)
      • written

        public void written​(long l)
        Description copied from interface: Counter
        This method gets triggered if a file is written.
        Specified by:
        written in interface Counter
        Parameters:
        l - the length of the file that was written
        See Also:
        Counter.written(long)
      • plusOne

        private void plusOne()