|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.sns.tools.correlator.SourceAgent
|
+--gov.sns.ca.correlator.ChannelAgent
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.
| Nested Class Summary | |
protected class |
ChannelAgent.EventHandler
Handle the monitor events |
protected class |
ChannelAgent.FilteredEventHandler
Handle the Monitor events and filter the events according to the supplied ChannelRecordFilter. |
| Field Summary |
| Fields inherited from class gov.sns.tools.correlator.SourceAgent |
_name, binUpdateProxy, localCenter |
| Constructor Summary | |
ChannelAgent(MessageCenter newLocalCenter,
Channel newChannel,
java.lang.String newName,
RecordFilter recordFilter,
CorrelationTester tester)
Creates new ChannelAgent |
|
| Method Summary | |
boolean |
isActive()
Determine if the channel is actively being monitored. |
boolean |
isEnabled()
Determine if the channel is enabled for correlations. |
protected void |
makeMonitor()
Create a monitor to listen for new channel records. |
protected void |
setupEventHandler(RecordFilter recordFilter)
Setup the event handler to use the specified record filter to filter monitor events for this channel. |
boolean |
startMonitor()
Start monitoring the channel. |
void |
stopMonitor()
Stop monitoring the channel |
| Methods inherited from class gov.sns.tools.correlator.SourceAgent |
binTimespanChanged, correlationFilterChanged, name, postEvent, reset, setBinTimespan, shutdown, sourceAdded, sourceRemoved, willStartMonitoring, willStopMonitoring |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ChannelAgent(MessageCenter newLocalCenter,
Channel newChannel,
java.lang.String newName,
RecordFilter recordFilter,
CorrelationTester tester)
| Method Detail |
protected void setupEventHandler(RecordFilter recordFilter)
setupEventHandler in class SourceAgentrecordFilter - The filter to use for this channel.SourceAgent.postEvent(java.lang.Object, double)public boolean isEnabled()
public boolean isActive()
public boolean startMonitor()
startMonitor in class SourceAgentpublic void stopMonitor()
stopMonitor in class SourceAgentprotected void makeMonitor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||