Class ChannelAgent


public class ChannelAgent extends SourceAgent<ChannelTimeRecord>
ChannelAgent manages a single channel. It performs any setup, monitors the channel and it manages a circular buffer of bin agents that gather correlated events.
Author:
tap
  • Constructor Details

  • Method Details

    • setupEventHandler

      protected void setupEventHandler(RecordFilter<ChannelTimeRecord> recordFilter)
      Setup the event handler to use the specified record filter to filter monitor events for this channel.
      Specified by:
      setupEventHandler in class SourceAgent<ChannelTimeRecord>
      Parameters:
      recordFilter - The filter to use for this channel.
      See Also:
    • isEnabled

      public boolean isEnabled()
      Determine if the channel is enabled for correlations.
      Returns:
      true if the channel is enabled for correlations.
    • isActive

      public boolean isActive()
      Determine if the channel is actively being monitored.
      Returns:
      true if the channel is being monitored and false otherwise.
    • startMonitor

      public boolean startMonitor()
      Start monitoring the channel.
      Specified by:
      startMonitor in class SourceAgent<ChannelTimeRecord>
      Returns:
      true if the channel is successfully being monitored and false otherwise.
    • stopMonitor

      public void stopMonitor()
      Stop monitoring the channel
      Specified by:
      stopMonitor in class SourceAgent<ChannelTimeRecord>
    • makeMonitor

      protected void makeMonitor()
      Create a monitor to listen for new channel records.