public class IntersectView extends ViewSupport implements LastPostObserver, CloneableView, StoppableView, DataWindowView, IntersectViewMarker, ViewDataVisitableContainer
The view is parameterized by two or more data windows. From an external viewpoint, the view retains all events that is in all of the data windows at the same time (an intersection) and removes all events that leave any of the data windows.
EMPTY_VIEW_ARRAY
Constructor and Description |
---|
IntersectView(AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext,
IntersectViewFactory factory,
EventType eventType,
java.util.List<View> viewList)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
View |
cloneView()
Duplicates the view.
|
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains.
|
java.util.Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection.
|
void |
newData(int streamId,
EventBean[] newEvents,
EventBean[] oldEvents)
Receive new and old events from a stream.
|
void |
stopView() |
void |
update(EventBean[] newData,
EventBean[] oldData)
Notify that data has been added or removed from the Viewable parent.
|
void |
visitView(ViewDataVisitor viewDataVisitor) |
static void |
visitViewContained(ViewDataVisitorContained viewDataVisitor,
ViewFactory viewFactory,
View[] views) |
void |
visitViewContainer(ViewDataVisitorContained viewDataVisitor) |
addView, addView, dumpChildViews, dumpUpdateParams, dumpUpdateParams, findDescendent, findViewIndex, getParent, getViews, hasViews, removeAllViews, removeView, removeView, setParent, updateChildren
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addView, getViews, hasViews, removeAllViews, removeView
public IntersectView(AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext, IntersectViewFactory factory, EventType eventType, java.util.List<View> viewList)
factory
- the view factoryeventType
- the parent event typeviewList
- the list of data window viewspublic View cloneView()
CloneableView
Expected to return a same view in initialized state for grouping.
cloneView
in interface CloneableView
public void update(EventBean[] newData, EventBean[] oldData)
View
public EventType getEventType()
EventCollection
getEventType
in interface EventCollection
public java.util.Iterator<EventBean> iterator()
EventCollection
iterator
in interface EventCollection
iterator
in interface java.lang.Iterable<EventBean>
public void newData(int streamId, EventBean[] newEvents, EventBean[] oldEvents)
LastPostObserver
newData
in interface LastPostObserver
streamId
- - the stream number sending the eventsnewEvents
- - new eventsoldEvents
- - old eventspublic void stopView()
stopView
in interface StoppableView
public void visitViewContainer(ViewDataVisitorContained viewDataVisitor)
visitViewContainer
in interface ViewDataVisitableContainer
public void visitView(ViewDataVisitor viewDataVisitor)
visitView
in interface ViewDataVisitable
public static void visitViewContained(ViewDataVisitorContained viewDataVisitor, ViewFactory viewFactory, View[] views)