public class CompoundView extends AbstractMonitorView
filter| Constructor and Description |
|---|
CompoundView(JComponent panel) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,AgentChannel> channels)
Adds channels to display.
|
void |
addView(AbstractMonitorView view) |
void |
addView(MonitorView view,
boolean chainFilters) |
void |
configure(AgentStatusEvent event)
Called when the complete static information on the source agent (including
channels dictionary) becomes available for the first time, and when it changes.
|
protected void |
connect(org.lsst.ccs.bus.data.AgentInfo agent) |
void |
connect(AgentStatusEvent event)
Called when a new agent connects to the buses.
|
protected void |
disconnect(org.lsst.ccs.bus.data.AgentInfo agent) |
void |
disconnect(AgentStatusEvent event)
Called when an agent disconnects from the buses or goes into OFFLINE state.
|
JComponent |
getPanel()
Returns the graphical component maintained by this view.
|
void |
install(AgentStatusAggregator aggregator) |
protected void |
removeChannels(org.lsst.ccs.bus.data.AgentInfo agent,
List<String> paths)
Removes a channels from this view.
|
void |
setFilter(AgentChannelsFilter filter) |
void |
statusChanged(AgentStatusEvent event)
Called on status change.
|
void |
uninstall(AgentStatusAggregator aggregator) |
protected void |
updateChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,Map.Entry<AgentChannel,List<String>>> channels)
Called to notify this view that the specified channels have been updated.
|
getFilter, isChannelListFixed, sendCommand, sendCommandclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, isEmpty, setNamepublic CompoundView(JComponent panel)
public JComponent getPanel()
getPanel in interface MonitorViewgetPanel in class AbstractMonitorViewpublic void setFilter(AgentChannelsFilter filter)
setFilter in interface MonitorViewsetFilter in class AbstractMonitorViewpublic void addView(MonitorView view, boolean chainFilters)
public void addView(AbstractMonitorView view)
public void connect(AgentStatusEvent event)
AgentStatusListener
The event passed to this method does not contain any information on channels
(corresponding methods return empty collections) or a reference to a status message.
The event can only be used to retrieve AgentInfo descriptor and a reference
to the AgentStatusAggregator instance.
The implementation should return quickly. Any blocking operations should be scheduled on a separate thread.
connect in interface AgentStatusListenerconnect in class AbstractMonitorViewevent - Event.public void configure(AgentStatusEvent event)
AgentStatusListener
The event passed to this method contains a list of added channels. Methods accessing lists
of changed and removed channels will return empty collections. Since the configuration event
is not triggered by a status message, getMessage() method returns null.
configure in interface AgentStatusListenerconfigure in class AbstractMonitorViewevent - Event.public void statusChanged(AgentStatusEvent event)
AgentStatusListenerstatusChanged in interface AgentStatusListenerstatusChanged in class AbstractMonitorViewevent - event Event.public void disconnect(AgentStatusEvent event)
AgentStatusListener
The event passed to this method does not contain any information on channels status -
corresponding methods return empty collections. Since the disconnection event might or might not
be triggered by a status message, getMessage() method might return null.
The implementation should return quickly. Any blocking operations should be scheduled on a separate thread.
disconnect in interface AgentStatusListenerdisconnect in class AbstractMonitorViewevent - Event.protected void connect(org.lsst.ccs.bus.data.AgentInfo agent)
connect in class AbstractMonitorViewprotected void disconnect(org.lsst.ccs.bus.data.AgentInfo agent)
disconnect in class AbstractMonitorViewprotected void addChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,AgentChannel> channels)
AbstractMonitorViewaddChannels in class AbstractMonitorViewagent - Source agent.channels - Map of paths to channels.protected void removeChannels(org.lsst.ccs.bus.data.AgentInfo agent,
List<String> paths)
AbstractMonitorViewremoveChannels in class AbstractMonitorViewagent - Source agent.paths - Paths to remove.protected void updateChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,Map.Entry<AgentChannel,List<String>>> channels)
AbstractMonitorViewupdateChannels in class AbstractMonitorViewagent - Source agent.channels - Map of paths to key-value pairs, where the key is as AgentChannel object
and the value is a list of changed attributes.public void install(AgentStatusAggregator aggregator)
public void uninstall(AgentStatusAggregator aggregator)
Copyright © 2017 LSST. All rights reserved.