question: records an event . concode_field_sep MetricsService metricsService concode_elem_sep EventMetric topologyHostEventMetric concode_elem_sep CoreService coreService concode_elem_sep LinkService linkService concode_elem_sep String FEATURE_LINK_NAME concode_elem_sep EventMetric topologyGraphEventMetric concode_elem_sep EventMetric topologyGraphReasonsEventMetric concode_elem_sep ApplicationId appId concode_elem_sep String FEATURE_HOST_NAME concode_elem_sep HostListener hostListener concode_elem_sep LinkedList<Event> lastEvents concode_elem_sep DeviceListener deviceListener concode_elem_sep String FEATURE_DEVICE_NAME concode_elem_sep String FEATURE_GRAPH_NAME concode_elem_sep Logger log concode_elem_sep DeviceService deviceService concode_elem_sep LinkListener linkListener concode_elem_sep String COMPONENT_NAME concode_elem_sep HostService hostService concode_elem_sep TopologyService topologyService concode_elem_sep int LAST_EVENTS_MAX_N concode_elem_sep TopologyListener topologyListener concode_elem_sep EventMetric topologyDeviceEventMetric concode_elem_sep String FEATURE_GRAPH_REASONS_NAME concode_elem_sep EventMetric topologyLinkEventMetric concode_field_sep List<Event> getEvents concode_elem_sep EventMetric topologyGraphEventMetric concode_elem_sep EventMetric topologyHostEventMetric concode_elem_sep EventMetric topologyGraphReasonsEventMetric concode_elem_sep void registerMetrics concode_elem_sep void removeMetrics concode_elem_sep void clear concode_elem_sep void activate concode_elem_sep void event concode_elem_sep void event concode_elem_sep void event concode_elem_sep void event concode_elem_sep EventMetric topologyDeviceEventMetric concode_elem_sep void deactivate concode_elem_sep EventMetric topologyLinkEventMetric
target: void function ( Event arg0 , EventMetric arg1 ) { synchronized ( lastEvents ) { arg1 . eventReceived ( ) ; while ( lastEvents . size ( ) >= LAST_EVENTS_MAX_N ) { lastEvents . remove ( ) ; } lastEvents . add ( arg0 ) ; } }