public class BinAgent<RecordType>
extends java.lang.Object
Constructor and Description |
---|
BinAgent(MessageCenter localCenter,
CorrelationTester<RecordType> tester)
Creates new BinAgent
|
Modifier and Type | Method and Description |
---|---|
void |
binTimespanChanged(Correlator<?,RecordType,?> sender,
double newTimespan)
Implement StateNotice interface to listen for change of state
|
void |
correlationFilterChanged(Correlator<?,RecordType,?> sender,
CorrelationFilter<RecordType> newFilter)
Implement StateNotice interface to listen for change of state
|
void |
newEvent(java.lang.String name,
RecordType record,
double timestamp)
Implement BinUpdate interface
|
void |
registerEvents()
Register events for this bin agent
|
void |
reset()
Forget all events
|
void |
resetWithRecord(java.lang.String name,
RecordType record,
double timestamp)
Forget all events and set the timestamp to the supplied one.
|
void |
setTimespan(double timespan)
Set the maximum time span allowed among the records collected.
|
void |
sourceAdded(Correlator<?,RecordType,?> sender,
java.lang.String name,
int newCount)
Implement StateNotice interface to listen for change of state
|
void |
sourceRemoved(Correlator<?,RecordType,?> sender,
java.lang.String name,
int newCount)
Implement StateNotice interface to listen for change of state
|
void |
willStartMonitoring(Correlator<?,RecordType,?> sender)
Implement StateNotice interface to listen for change of state
|
void |
willStopMonitoring(Correlator<?,RecordType,?> sender)
Implement StateNotice interface to listen for change of state
|
public BinAgent(MessageCenter localCenter, CorrelationTester<RecordType> tester)
public void registerEvents()
public void reset()
public void resetWithRecord(java.lang.String name, RecordType record, double timestamp)
public void setTimespan(double timespan)
public void newEvent(java.lang.String name, RecordType record, double timestamp)
public void sourceAdded(Correlator<?,RecordType,?> sender, java.lang.String name, int newCount)
sender
- The correlator to which the source has been added.name
- The name identifying the new source.newCount
- The new number of sources correlated.public void sourceRemoved(Correlator<?,RecordType,?> sender, java.lang.String name, int newCount)
sender
- The correlator from which the source has been removed.name
- The name identifying the new source.newCount
- The new number of sources correlated.public void binTimespanChanged(Correlator<?,RecordType,?> sender, double newTimespan)
sender
- The correlator whose timespan bin has changed.newTimespan
- The new timespan used by the correlator.public void willStopMonitoring(Correlator<?,RecordType,?> sender)
sender
- The correlator that will stop.public void willStartMonitoring(Correlator<?,RecordType,?> sender)
sender
- The correlator that will start.public void correlationFilterChanged(Correlator<?,RecordType,?> sender, CorrelationFilter<RecordType> newFilter)
sender
- The correlator whose correlation filter has changed.newFilter
- The new correlation filter to use.