gov.sns.ca.correlator
Class ChannelAgent.FilteredEventHandler

java.lang.Object
  |
  +--gov.sns.ca.correlator.ChannelAgent.EventHandler
        |
        +--gov.sns.ca.correlator.ChannelAgent.FilteredEventHandler
All Implemented Interfaces:
IEventSinkValTime
Enclosing class:
ChannelAgent

protected class ChannelAgent.FilteredEventHandler
extends ChannelAgent.EventHandler

Handle the Monitor events and filter the events according to the supplied ChannelRecordFilter.


Constructor Summary
ChannelAgent.FilteredEventHandler(RecordFilter newFilter)
           
 
Method Summary
 void eventValue(ChannelTimeRecord record, Channel channel)
          Implement IEventSinkValTime interface Handle the monitor events for this channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelAgent.FilteredEventHandler

public ChannelAgent.FilteredEventHandler(RecordFilter newFilter)
Method Detail

eventValue

public void eventValue(ChannelTimeRecord record,
                       Channel channel)
Description copied from class: ChannelAgent.EventHandler
Implement IEventSinkValTime interface Handle the monitor events for this channel. When the monitor fires, recycle the oldest bin. Clear all memory of events and assign the timestamp of the record to be the timestamp for the bin. Broadcast the event within the correlation world so that bins of all channel agents (not just this one) are notified of the event.

Specified by:
eventValue in interface IEventSinkValTime
Overrides:
eventValue in class ChannelAgent.EventHandler