public final class AddPropertyValueView extends ViewSupport implements CloneableView, StoppableView
EMPTY_VIEW_ARRAY
Constructor and Description |
---|
AddPropertyValueView(AgentInstanceViewFactoryChainContext agentInstanceContext,
java.lang.String[] propertyNames,
java.lang.Object mergeValues,
EventType mergedResultEventType)
Constructor.
|
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.lang.String[] |
getPropertyNames()
Returns field name for which to set the merge value for.
|
java.lang.Object |
getPropertyValues()
Returns the value to set for the field.
|
java.util.Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection.
|
void |
setParent(Viewable parent)
Called when the View is added to a Viewable object.
|
void |
stopView() |
java.lang.String |
toString() |
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, updateChildren
public AddPropertyValueView(AgentInstanceViewFactoryChainContext agentInstanceContext, java.lang.String[] propertyNames, java.lang.Object mergeValues, EventType mergedResultEventType)
propertyNames
- is the name of the field that is added to any events received by this view.mergeValues
- is the values of the field that is added to any events received by this view.mergedResultEventType
- is the event type that the merge view reports to it's child viewsagentInstanceContext
- contains required view servicespublic View cloneView()
CloneableView
Expected to return a same view in initialized state for grouping.
cloneView
in interface CloneableView
public void setParent(Viewable parent)
View
setParent
in interface View
setParent
in class ViewSupport
parent
- is the parent that this view is a child ofpublic final java.lang.String[] getPropertyNames()
public final java.lang.Object getPropertyValues()
public final void update(EventBean[] newData, EventBean[] oldData)
View
public final EventType getEventType()
EventCollection
getEventType
in interface EventCollection
public final java.util.Iterator<EventBean> iterator()
EventCollection
iterator
in interface EventCollection
iterator
in interface java.lang.Iterable<EventBean>
public void stopView()
stopView
in interface StoppableView
public final java.lang.String toString()
toString
in class java.lang.Object