Class ChainsawEventBatch


  • class ChainsawEventBatch
    extends java.lang.Object
    A container class that contains a group of events split up into branches based on Identifiers
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.util.List<org.apache.log4j.spi.LoggingEvent>> identEventMap  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void addEvent​(java.lang.String ident, org.apache.log4j.spi.LoggingEvent e)  
      (package private) java.util.List<org.apache.log4j.spi.LoggingEvent> entrySet​(java.lang.String identifier)
      Returns a Collection of LoggingEvent objects that are bound to the identifier
      (package private) java.util.Iterator<java.lang.String> identifierIterator()
      Returns an iterator of Identifier strings that this payload contains.
      • Methods inherited from class java.lang.Object

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

      • identEventMap

        private java.util.Map<java.lang.String,​java.util.List<org.apache.log4j.spi.LoggingEvent>> identEventMap
    • Constructor Detail

      • ChainsawEventBatch

        ChainsawEventBatch()
    • Method Detail

      • addEvent

        void addEvent​(java.lang.String ident,
                      org.apache.log4j.spi.LoggingEvent e)
        Parameters:
        ident -
        e -
      • identifierIterator

        java.util.Iterator<java.lang.String> identifierIterator()
        Returns an iterator of Identifier strings that this payload contains.

        The values returned from this iterator can be used to query the

        Returns:
        Iterator
      • entrySet

        java.util.List<org.apache.log4j.spi.LoggingEvent> entrySet​(java.lang.String identifier)
        Returns a Collection of LoggingEvent objects that are bound to the identifier
        Parameters:
        identifier -
        Returns:
        Collection of LoggingEvent instances