com.atlassian.bamboo.event.spi
Class EventStats

java.lang.Object
  extended by com.atlassian.bamboo.event.spi.EventStats

@ThreadSafe
public class EventStats
extends java.lang.Object

Lockless class for tracking statistics from the events system

Since:
4.0

Constructor Summary
EventStats()
           
 
Method Summary
 void dispatch(com.atlassian.event.spi.ListenerInvoker invoker, java.lang.Object event)
           
 java.util.Map<java.lang.String,java.util.concurrent.atomic.AtomicLong> getEventCountsMap()
          Returns a copy of the map where the key is the event name and the value has how many times the event has been dispatched.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventStats

public EventStats()
Method Detail

dispatch

public void dispatch(com.atlassian.event.spi.ListenerInvoker invoker,
                     java.lang.Object event)

getEventCountsMap

public java.util.Map<java.lang.String,java.util.concurrent.atomic.AtomicLong> getEventCountsMap()
Returns a copy of the map where the key is the event name and the value has how many times the event has been dispatched.

Returns:


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.