public abstract class AbstractMonitorView3 extends Object implements MonitorView
| Modifier and Type | Field and Description |
|---|---|
protected LinkedHashMap<String,DisplayChannel> |
data |
CATEGORY| Constructor and Description |
|---|
AbstractMonitorView3() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
disconnect(AgentStatusEvent event)
Called when an agent disconnects from the buses or goes into OFFLINE state.
|
void |
install()
Installs this view, connecting it to the data source.
|
boolean |
isEmpty()
Returns
true if this view has no content to display at the moment. |
protected abstract void |
resetChannels()
Called on EDT whenever channels have been added or removed.
|
void |
statusChanged(AgentStatusEvent event)
Called on status change.
|
void |
uninstall()
Un-installs this view, disconnecting it from the data source.
|
protected void |
update()
Called on EDT at the end of each update, after all DisplayChannel.update(...) methods.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFilter, getFormater, getName, getPanel, setFilter, setFormatter, setNameconnectprotected final LinkedHashMap<String,DisplayChannel> data
protected abstract void resetChannels()
data field.protected void update()
public boolean isEmpty()
MonitorViewtrue if this view has no content to display at the moment.
This can be used report that the view can be closed, for example.
The default implementation returns false.isEmpty in interface MonitorViewpublic final 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 AgentStatusListenerevent - Event.public final 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 AgentStatusListenerevent - Event.public final void statusChanged(AgentStatusEvent event)
AgentStatusListenerstatusChanged in interface AgentStatusListenerevent - event Event.public void install()
MonitorViewinstall in interface MonitorViewpublic void uninstall()
MonitorViewuninstall in interface MonitorViewCopyright © 2019 LSST. All rights reserved.