public class AlertViewer extends Object implements AlertListener, PanelListener
onAlert(org.lsst.ccs.gconsole.plugins.alert.AlertEvent) should be called on EDT.| Modifier and Type | Class and Description |
|---|---|
static class |
AlertViewer.Descriptor |
| Constructor and Description |
|---|
AlertViewer(LsstAlertPlugin plugin,
AlertViewer.Descriptor configuration)
Creates an instance of
AlertViewer. |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatTimeStamp(Instant instant) |
static String |
formatTimeStamp(long millis) |
void |
onAlert(AlertEvent event)
Processes an alert event triggered by raised or cleared alerts.
|
void |
process(PanelEvent event) |
void |
update(AlertEvent event) |
public AlertViewer(LsstAlertPlugin plugin, AlertViewer.Descriptor configuration)
AlertViewer.
No GUI panels are constructed and no resources are allocated at this point.plugin - Alert plugin instance that created this viewer.configuration - public void onAlert(AlertEvent event)
AlertListeneronAlert in interface AlertListenerevent - Event to process.public void update(AlertEvent event)
public void process(PanelEvent event)
process in interface PanelListenerpublic static String formatTimeStamp(long millis)
Copyright © 2016 LSST. All rights reserved.