public class NamedWindowTailViewInstance extends ViewSupport implements java.lang.Iterable<EventBean>
NamedWindowService
to consuming statements.EMPTY_VIEW_ARRAY
Constructor and Description |
---|
NamedWindowTailViewInstance(NamedWindowRootViewInstance rootViewInstance,
NamedWindowTailView tailView,
AgentInstanceContext agentInstanceContext) |
Modifier and Type | Method and Description |
---|---|
NamedWindowConsumerView |
addConsumer(NamedWindowConsumerDesc consumerDesc,
boolean isSubselect)
Adds a consuming (selecting) statement to the named window.
|
void |
destroy()
Destroy the view.
|
AgentInstanceContext |
getAgentInstanceContext() |
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains.
|
long |
getNumberOfEvents()
Returns the number of events held.
|
NamedWindowTailView |
getTailView() |
java.util.Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection.
|
void |
removeConsumer(NamedWindowConsumerView namedWindowConsumerView)
Called by the consumer view to indicate it was stopped or destroyed, such that the
consumer can be deregistered and further dispatches disregard this consumer.
|
java.util.Collection<EventBean> |
snapshot(FilterSpecCompiled filter,
java.lang.annotation.Annotation[] annotations)
Returns a snapshot of window contents, thread-safely
|
EventBean[] |
snapshotDelete(FilterSpecCompiled filter,
ExprNode filterExpr,
java.lang.annotation.Annotation[] annotations) |
java.util.Collection<EventBean> |
snapshotNoLock(FilterSpecCompiled filter,
java.lang.annotation.Annotation[] annotations) |
java.util.Collection<EventBean> |
snapshotNoLockWithFilter(FilterSpecCompiled filter,
java.lang.annotation.Annotation[] annotations,
ExprNode filterExpr,
ExprEvaluatorContext exprEvaluatorContext) |
EventBean[] |
snapshotUpdate(FilterSpecCompiled filter,
ExprNode optionalWhereClause,
NamedWindowUpdateHelper updateHelper,
java.lang.annotation.Annotation[] annotations) |
void |
update(EventBean[] newData,
EventBean[] oldData)
Notify that data has been added or removed from the Viewable parent.
|
addView, addView, dumpChildViews, dumpUpdateParams, dumpUpdateParams, findDescendent, findViewIndex, getParent, getViews, hasViews, removeAllViews, removeView, removeView, setParent, updateChildren
public NamedWindowTailViewInstance(NamedWindowRootViewInstance rootViewInstance, NamedWindowTailView tailView, AgentInstanceContext agentInstanceContext)
public void update(EventBean[] newData, EventBean[] oldData)
View
public NamedWindowConsumerView addConsumer(NamedWindowConsumerDesc consumerDesc, boolean isSubselect)
public void removeConsumer(NamedWindowConsumerView namedWindowConsumerView)
namedWindowConsumerView
- is the consumer representative viewpublic 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 java.util.Collection<EventBean> snapshot(FilterSpecCompiled filter, java.lang.annotation.Annotation[] annotations)
filter
- filters if anypublic EventBean[] snapshotUpdate(FilterSpecCompiled filter, ExprNode optionalWhereClause, NamedWindowUpdateHelper updateHelper, java.lang.annotation.Annotation[] annotations)
public EventBean[] snapshotDelete(FilterSpecCompiled filter, ExprNode filterExpr, java.lang.annotation.Annotation[] annotations)
public java.util.Collection<EventBean> snapshotNoLock(FilterSpecCompiled filter, java.lang.annotation.Annotation[] annotations)
public java.util.Collection<EventBean> snapshotNoLockWithFilter(FilterSpecCompiled filter, java.lang.annotation.Annotation[] annotations, ExprNode filterExpr, ExprEvaluatorContext exprEvaluatorContext)
public AgentInstanceContext getAgentInstanceContext()
public void destroy()
public long getNumberOfEvents()
public NamedWindowTailView getTailView()