public class CompoundView extends AbstractMonitorView1
| Modifier and Type | Class and Description |
|---|---|
static class |
CompoundView.Descriptor
JavaBean that contains information required to re-create this view in its current state.
|
static class |
CompoundView.Mode
Enumeration of management modes for child views.
|
descriptor, 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(MonitorView view,
CompoundView.Mode mode) |
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()
Installs this view, connecting it to the data source.
|
protected void |
removeChannels(org.lsst.ccs.bus.data.AgentInfo agent,
List<String> paths)
Removes a channels from this view.
|
void |
restore(MonitorView.Descriptor descriptor)
Restores this view to the state described by the provided descriptor, to the extent possible.
|
CompoundView.Descriptor |
save()
Returns a descriptor that contains information required to re-create this view in its current state.
|
void |
setFilter(AgentChannelsFilter filter)
Sets a channels filter.
|
void |
statusChanged(AgentStatusEvent event)
Called on status change.
|
void |
uninstall()
Un-installs this view, disconnecting it from the data source.
|
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.
|
getDescriptor, getFilter, isChannelListFixedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, isEmpty, setNamepublic CompoundView(JComponent panel)
public JComponent getPanel()
public void setFilter(AgentChannelsFilter filter)
INDEPENDENT and FORWARD modes.setFilter in interface MonitorViewsetFilter in class AbstractMonitorView1filter - Channels filter to be used by this view.public void addView(MonitorView view, CompoundView.Mode mode)
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 AbstractMonitorView1event - 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 necessarily triggered by a status message, getMessage() method returns null.
configure in interface AgentStatusListenerconfigure in class AbstractMonitorView1event - Event.public void statusChanged(AgentStatusEvent event)
AgentStatusListenerstatusChanged in interface AgentStatusListenerstatusChanged in class AbstractMonitorView1event - 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 AbstractMonitorView1event - Event.protected void connect(org.lsst.ccs.bus.data.AgentInfo agent)
connect in class AbstractMonitorView1protected void disconnect(org.lsst.ccs.bus.data.AgentInfo agent)
disconnect in class AbstractMonitorView1protected void addChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,AgentChannel> channels)
AbstractMonitorView1addChannels in class AbstractMonitorView1agent - Source agent.channels - Map of display paths to channels.protected void removeChannels(org.lsst.ccs.bus.data.AgentInfo agent,
List<String> paths)
AbstractMonitorView1removeChannels in class AbstractMonitorView1agent - Source agent.paths - Display paths to remove.protected void updateChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,Map.Entry<AgentChannel,List<String>>> channels)
AbstractMonitorView1updateChannels in class AbstractMonitorView1agent - Source agent.channels - Map of display paths to key-value pairs, where the key is as AgentChannel object
and the value is a list of changed attributes.public void install()
MonitorViewpublic void uninstall()
MonitorViewpublic CompoundView.Descriptor save()
save in interface MonitorViewsave in class AbstractMonitorView1public void restore(MonitorView.Descriptor descriptor)
restore in interface MonitorViewrestore in class AbstractMonitorView1descriptor - View descriptor.Copyright © 2018 LSST. All rights reserved.